Skip to content

Commit 530274a

Browse files
committed
[ignore] Update Documentation and test case for ndo_port_channel_interface.
1 parent 5016d36 commit 530274a

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

plugins/modules/ndo_port_channel_interface.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
- The list of used Interface IDs.
5656
type: list
5757
elements: str
58+
aliases: [ members ]
5859
interface_policy:
5960
description:
6061
- The name of the Port Channel Interface Setting Policy.
@@ -75,7 +76,7 @@
7576
description:
7677
- The interface ID to which attach a description.
7778
type: str
78-
interface_description:
79+
description:
7980
description:
8081
- The description of the interface.
8182
type: str
@@ -292,7 +293,7 @@ def main():
292293
"description": interface.get("description"),
293294
}
294295
for interface in interface_descriptions
295-
],
296+
],
296297
)
297298
)
298299
match.details["interfaceDescriptions"] = interface_descriptions

tests/integration/targets/ndo_port_channel_interface/tasks/main.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
- cm_create_new_port_channel_interface is changed
9393
- cm_create_new_port_channel_interface.previous == {}
9494
- cm_create_new_port_channel_interface.current.name == "ansible_port_channel_interface"
95+
- cm_create_new_port_channel_interface.current.description == "Ansible Port Channel test"
9596
- cm_create_new_port_channel_interface.current.node == "101"
9697
- cm_create_new_port_channel_interface.current.memberInterfaces == "1/1"
9798
- cm_create_new_port_channel_interface.current.interfaceDescriptions | length == 1
@@ -101,6 +102,7 @@
101102
- nm_create_new_port_channel_interface is changed
102103
- nm_create_new_port_channel_interface.previous == {}
103104
- nm_create_new_port_channel_interface.current.name == "ansible_port_channel_interface"
105+
- nm_create_new_port_channel_interface.current.description == "Ansible Port Channel test"
104106
- nm_create_new_port_channel_interface.current.node == "101"
105107
- nm_create_new_port_channel_interface.current.memberInterfaces == "1/1"
106108
- nm_create_new_port_channel_interface.current.interfaceDescriptions | length == 1
@@ -110,6 +112,7 @@
110112
- nm_create_new_port_channel_interface_again is not changed
111113
- nm_create_new_port_channel_interface_again.previous == nm_create_new_port_channel_interface_again.current
112114
- nm_create_new_port_channel_interface_again.current.name == "ansible_port_channel_interface"
115+
- nm_create_new_port_channel_interface_again.current.description == "Ansible Port Channel test"
113116
- nm_create_new_port_channel_interface_again.current.node == "101"
114117
- nm_create_new_port_channel_interface_again.current.memberInterfaces == "1/1"
115118
- nm_create_new_port_channel_interface_again.current.interfaceDescriptions | length == 1
@@ -145,8 +148,14 @@
145148
register: nm_update_port_channel_interface_name
146149

147150
- name: Update a port channel interface policy
148-
cisco.mso.ndo_port_channel_interface: &update_port_channel_interface_policy
151+
cisco.mso.ndo_port_channel_interface: &update_port_channel_interface_description
149152
<<: *update_port_channel_interface_name
153+
description: Ansible Port Channel test updated
154+
register: nm_update_port_channel_interface_description
155+
156+
- name: Update a port channel interface policy
157+
cisco.mso.ndo_port_channel_interface: &update_port_channel_interface_policy
158+
<<: *update_port_channel_interface_description
150159
interface_policy: Gaspard_Interface_setting_test_2
151160
register: nm_update_port_channel_interface_policy
152161

@@ -195,6 +204,8 @@
195204
- nm_update_port_channel_interface_node_again.current == nm_update_port_channel_interface_node_again.previous
196205
- nm_update_port_channel_interface_name is changed
197206
- nm_update_port_channel_interface_name.current.name == "ansible_port_channel_interface_changed"
207+
- nm_update_port_channel_interface_description is changed
208+
- nm_update_port_channel_interface_description.current.description == "Ansible Port Channel test updated"
198209
- nm_update_port_channel_interface_members is changed
199210
- nm_update_port_channel_interface_members.current.memberInterfaces == "1/1-3"
200211
- nm_update_port_channel_interface_members.current.interfaceDescriptions | length == 1

0 commit comments

Comments
 (0)