Has anyone seen a way to use the native Ansible modules for NXOS to configure a Loopback interface in NXOS with an IP address?
I use the nxos_interface module to create loopback0, which works fine.
However, if I use nxos_l3_interface to apply an IPv4 address to the loopback0 interface, that task fails with the output indicating that it failed upon trying to issue a ‘no switchport’ command under the loopback0 interface which is an invalid command in that context.
I’m using 2.5 with the network_cli connection method.
I could drop down to using nxos_config to deal with this but I’m looking for a way to see if this can be done via nxos_l3_interface.
No comments:
Post a Comment