Skip to content

Addition of L4l7 device modules (DCNE-334) #739

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

shrsr
Copy link
Collaborator

@shrsr shrsr commented Apr 10, 2025

No description provided.

@shrsr shrsr added the jira-sync Sync this issue to Jira label Apr 10, 2025
@github-actions github-actions bot changed the title Addition of L4l7 device modules Addition of L4l7 device modules (DCNE-334) Apr 10, 2025
aliases: [ concrete_device, concrete_device_name ]
vcenter_name:
description:
- The virtual center name on which the device is hosted in the L4-L7 device cluster.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the virtual center referring to? is this VMware VCenter?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Likely because vCenter is a product that solely belongs to VMware?

@shrsr shrsr requested a review from akinross April 11, 2025 17:18
akinross
akinross previously approved these changes Apr 14, 2025
Copy link
Collaborator

@akinross akinross left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

anvitha-jain
anvitha-jain previously approved these changes Apr 14, 2025
Copy link
Collaborator

@anvitha-jain anvitha-jain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

gmicol
gmicol previously approved these changes Apr 18, 2025
Copy link
Collaborator

@gmicol gmicol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines 48 to 53
path_ep:
description:
- The path to the physical interface.
- For single ports, this is the port name, e.g. "eth1/15".
- For Port-channels and vPCs, this is the Interface Policy Group name.
type: str
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would move path_ep as an alias and have interface as the main attribute and interface_name and interface_policy_group and interface_policy_group_name as additional aliases.

DOCUMENTATION = r"""
---
module: aci_l4l7_concrete_interface_attach
short_description: Manage L4-L7 Concrete Interface Attach (vns:RsCIfAttN)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
short_description: Manage L4-L7 Concrete Interface Attach (vns:RsCIfAttN)
short_description: Manage L4-L7 Concrete Interface Attachment (vns:RsCIfAttN)

module: aci_l4l7_device
short_description: Manage L4-L7 Devices (vns:LDevVip)
description:
- Manage Layer 4-7 (L4-L7) Devices.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Manage Layer 4-7 (L4-L7) Devices.
- Manage Layer 4 to Layer 7 (L4-L7) Devices.

- The APIC defaults to C(single) when unset during creation.
type: str
choices: [ multi, single ]
dev_type:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

swap attribute and aliases

type: str
choices: [ physical, virtual ]
aliases: [ device_type ]
func_type:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

swap attribute and aliases

dev_type: physical
svc_type: adc
trunking: false
prom_mode: true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
prom_mode: true
promiscuous_mode: true

module: aci_l4l7_logical_interface
short_description: Manage L4-L7 Logical Interface (vns:LIf)
description:
- Manage Layer 4-7 (L4-L7) Logical Interfaces.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Manage Layer 4-7 (L4-L7) Logical Interfaces.
- Manage Layer 4 to Layer 7 (L4-L7) Logical Interfaces.

module: aci_l4l7_concrete_interface_attach
short_description: Manage L4-L7 Concrete Interface Attach (vns:RsCIfAttN)
description:
- Manage Layer 4-7 (L4-L7) Concrete Interface Attachment to Logical Interfaces.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Manage Layer 4-7 (L4-L7) Concrete Interface Attachment to Logical Interfaces.
- Manage Layer 4 to Layer 7 (L4-L7) Concrete Interface Attachment to Logical Interfaces.

module: aci_l4l7_concrete_interface
short_description: Manage L4-L7 Concrete Interfaces (vns:CIf)
description:
- Manage Layer 4-7 (L4-L7) Concrete Interfaces.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Manage Layer 4-7 (L4-L7) Concrete Interfaces.
- Manage Layer 4 to Layer 7 (L4-L7) Concrete Interfaces.

module: aci_l4l7_concrete_device
short_description: Manage L4-L7 Concrete Devices (vns:CDev)
description:
- Manage Layer 4-7 (L4-L7) Concrete Devices.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Manage Layer 4-7 (L4-L7) Concrete Devices.
- Manage Layer 4 to Layer 7 (L4-L7) Concrete Devices.

@shrsr shrsr requested a review from lhercot April 22, 2025 16:03
akinross
akinross previously approved these changes Apr 23, 2025
Copy link
Collaborator

@akinross akinross left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

delegate_to: localhost

- name: Query a concrete interface
cisco.aci.aci_l4l7_service_graph_template:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cisco.aci.aci_l4l7_service_graph_template:
cisco.aci.aci_l4l7_concrete_interface:

register: query_result

- name: Query all concrete interfaces
cisco.aci.aci_l4l7_service_graph_template:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cisco.aci.aci_l4l7_service_graph_template:
cisco.aci.aci_l4l7_concrete_interface:

#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright: (c) 2025, Tim Cragg (@timcragg)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

your name in modules

description: More information about the internal APIC class B(vns:CDev)
link: https://developer.cisco.com/docs/apic-mim-ref/
author:
- Tim Cragg (@timcragg)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

your name in modules

@@ -0,0 +1,196 @@
# Test code for the ACI modules
# Copyright: (c) 2025, Tim Cragg (@timcragg)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

your name in modules tests


DOCUMENTATION = r"""
---
module: aci_l4l7_concrete_interface_attach
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not name the module with full name?

Suggested change
module: aci_l4l7_concrete_interface_attach
module: aci_l4l7_concrete_interface_attachment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira-sync Sync this issue to Jira
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants