Skip to content

Documentation: Clarify state overridden behavior for dcnm_interface module #515

@mikewiebe

Description

@mikewiebe

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions