Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cisco.nxos.nxos_interfaces module fabric_forwarding_anycast_gateway: true does not work #887

Open
Ernestas-S opened this issue Aug 20, 2024 · 1 comment
Assignees

Comments

@Ernestas-S
Copy link

SUMMARY

cisco.nxos.nxos_interfaces module is not configuring the following cli command at all:
add fabric forwarding mode anycast gateway

Tested it on 6 different devices, with NX-OS, and then instead had to write our own cli to configure this command:
`

    - name: Ensure "ip arp timeout" is configured # add fabric forwarding mode anycast gateway
      cisco.nxos.nxos_config:
        lines: "ip arp timeout 300"
        parents: "interface Vlan9999"
      with_subelements:
<redacted>
      loop_control:
        label: <redacted>

    - name: Ensure "fabric forwarding mode anycast-gateway" is configured
      cisco.nxos.nxos_config:
        lines: 
                - "fabric forwarding mode anycast-gateway"
                - "no shutdown"
        parents: "interface Vlan9999"
      with_subelements:
<redacted>
      loop_control:
        label: <redacted>

`

ISSUE TYPE
  • Bug Report
COMPONENT NAME

the awx-ee uses the following collection version: cisco.nxos:9.2.0

ANSIBLE VERSION
core 2.14.0.dev0
COLLECTION VERSION
cisco.nxos:9.2.0
CONFIGURATION

OS / ENVIRONMENT

The target device output:
"ansible_net_python_version": "3.8.12",
"ansible_net_system": "nxos",

STEPS TO REPRODUCE

By trying to run the following task

    - name: Task that does not work correctly
      cisco.nxos.nxos_interfaces:
        config:
        - name: "Vlan999"
          enabled: true
          description: <redacted>
          mtu: "9999"
          fabric_forwarding_anycast_gateway: true
      with_subelements:
<redacted>
      loop_control:
        label: <redacted>
EXPECTED RESULTS

I expect that the commands that were send to be executed are executed, as said they are true, however, when checking the nx-os device 'show running config' they are missing:
changed: true
commands:

  • interface Vlan9999
  • description
  • no shutdown
  • mtu 9999
  • fabric forwarding mode anycast-gateway
ACTUAL RESULTS

The actual configuration is like this in the nx-os device 'show running config':

  • interface Vlan9999
  • description
  • mtu 9999
@KB-perByte KB-perByte self-assigned this Aug 21, 2024
@Ernestas-S
Copy link
Author

Update on this issue, I tested the task "Task that does not work correctly" based on quay.io/ansible/awx-ee:24.6.1 execution environment (Full code of EE I created is available here: https://github.com/Ernestas-S/create-custom-ee-for-awx). And was running this task on the same device and after each run, I would do rollback to backup config on the NX-OS device, using the cli command 'rollback running-config file backup'. and what I noticed, is it that 3 times in a row it applies 'fabric forwarding mode anycast-gateway' and then 3 launches after it would not apply it 'fabric forwarding mode anycast-gateway', example output from cli command 'show running-config':
interface Vlan9999 description no shutdown mtu 9999 fabric forwarding mode anycast-gateway

and other 3 times:
interface Vlan9999 description no shutdown mtu 9999

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants