Interface module without "no switchport"
cardosocristian opened this issue · 0 comments
cardosocristian commented
SUMMARY
On Nexus 9k switches above version 9, the ethernet interface by default comes in switchport mode, checking the interface modules, l2_interface and l3_interface, I did not find a way to disable the switchport to put the IP on the ethernet interface, which ends up generating an error right away to configure IP on the interface
ISSUE TYPE
- Bug Report
COMPONENT NAME
cisco.nxos.nxos_interfaces module
cisco.nxos.nxos_l2_interfaces module
cisco.nxos.nxos_l3_interfaces module
##### ANSIBLE VERSION
ansible [core 2.14.9]
config file = /home/ansible-cisco/.ansible.cfg
configured module search path = ['/home/ansible-cisco/my_modules']
ansible python module location = /usr/lib/python3.9/site-packages/ansible
ansible collection location = /home/ansible-cisco/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible
python version = 3.9.18 (main, Jan 4 2024, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] (/usr/bin/python3)
jinja version = 3.1.2
libyaml = True
##### COLLECTION VERSION
# /home/ansible-cisco/.ansible/collections/ansible_collections
Collection Version
----------------- -------
ansible.netcommon 6.0.0
ansible.utils 4.0.0
cisco.ios 7.0.0
cisco.nxos 7.0.0
OS / ENVIRONMENT
Cisco NXOS 9.3 and 10.2F
STEPS TO REPRODUCE
Run any of the interface modules
EXPECTED RESULTS
Have the switchport line removed from the port
ACTUAL RESULTS
switchport is not removed from the ethernet port currently