-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
When using state: overridden
ensure the following behavior is clearly documented.
- When
config: []
is empty all interfaces across all devices in the fabric will be defaulted or deleted - When
config:
is NOT empty interfaces will only be defaulted or deleted if another interface on that device is being managed.
Example 1:
This will default or remove all interfaces on all fabric devices
- name: Remove Unmanaged Fabric Interfaces in Nexus Dashboard
cisco.dcnm.dcnm_interface:
fabric: nac-msd-fabric1
state: overridden
deploy: false
config: []
Example 2:
This will default or remove all interfaces on 10.15.34.13
only except Ethernet1/11
. All other interfaces on other devices remain untouched.
- name: Remove Unmanaged Fabric Interfaces in Nexus Dashboard
cisco.dcnm.dcnm_interface:
fabric: nac-msd-fabric1
state: overridden
deploy: false
config:
- deploy: false
name: Ethernet1/11
profile:
admin_state: false
allowed_vlans: none
bpdu_guard: false
cmds: ''
description: PC11 Member Interface 1/11 Latest
duplex: auto
mode: trunk
mtu: default
native_vlan: ''
port_type_fast: false
speed: auto
switch:
- 10.15.34.13
type: eth
Metadata
Metadata
Assignees
Labels
No labels