ansible-collections/cisco.nxos

Add mode parameter to cisco.nxos.nxos_interfaces to manage the state of the interface

digitalfiend64 opened this issue · 1 comments

SUMMARY

Add mode parameter to cisco.nxos.nxos_interfaces to manage the state of the interface.

ISSUE TYPE

We have to rely on creating templates to run commands depending if the interface is layer 2 or 3.

COMPONENT NAME

cisco.nxos.nxos_interfaces

ADDITIONAL INFORMATION
- name: Update l3_interfaces
  cisco.nxos.nxos_interfaces:
  config:
  - name: Vlan51
    mode: layer3
  state: merged

- name: Update l2_interfaces
  cisco.nxos.nxos_interfaces:
  config:
  - name: Vlan51
    mode: layer2
  state: merged