cisco.nxos.nxos_l2_interfaces: Missing mode
svestenik opened this issue · 1 comments
svestenik commented
SUMMARY
When running playbook with task that uses cisco.nxos.nxos_l2_interfaces, inventory gathering fails if one of the interfaces involved is in QinQ mode.
ISSUE TYPE
- Bug Report
"msg": "value of mode must be one of: access, trunk, fex-fabric, fabricpath, got: dot1q-tunnel found in config"
COMPONENT NAME
Missing mode. Currently present modes are :
"access"
"trunk"
"fex-fabric"
"fabricpath"
If port is configured as QinQ port, execution fails. Example cisco port config taken from Nexus 9000 series switch:
interface Ethernet1/21
switchport
switchport mode dot1q-tunnel
ANSIBLE VERSION
ansible [core 2.13.5]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.9/site-packages/ansible
ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
executable location = /bin/ansible
python version = 3.9.13 (main, Jun 24 2022, 15:32:51) [GCC 8.5.0 20210514 (Red Hat 8.5.0-13)]
jinja version = 3.1.2
libyaml = True
COLLECTION VERSION
# /root/.ansible/collections/ansible_collections
Collection Version
---------- -------
cisco.nxos 4.0.1
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
edvinaskairys commented
yes, same here: getting this value of mode must be one of: delay, got: trunk found in config