Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changelogs/fragments/lacp_interfaces.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- "lacp_interfaces - Fixed the notation of the lacp suspend individual command in the del_attribs function"
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def del_attribs(self, obj):
if "vpc" in obj:
commands.append("no lacp vpn-convergence")
if "suspend_individual" in obj:
commands.append("lacp suspend_individual")
commands.append("lacp suspend-individual")
if "mode" in obj:
commands.append("no lacp mode " + obj["mode"])
if "max" in obj:
Expand Down
11 changes: 11 additions & 0 deletions tests/unit/modules/network/nxos/test_nxos_lacp_interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def test_lacp_mode_parse(self):
switchport trunk native vlan 5
switchport trunk allowed vlan 10
no lacp graceful-convergence
no lacp suspend-individual
""",
)
self.get_resource_connection_facts.return_value = {self.SHOW_CMD: existing}
Expand All @@ -103,6 +104,16 @@ def test_lacp_mode_parse(self):
"lacp suspend-individual",
]

deleted = [
"interface port-channel1",
"lacp graceful-convergence",
"lacp suspend-individual",
]

playbook["state"] = "merged"
set_module_args(playbook, ignore_provider_arg)
self.execute_module(changed=True, commands=merged)

playbook["state"] = "deleted"
set_module_args(playbook, ignore_provider_arg)
self.execute_module(changed=True, commands=deleted)
Loading