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_bgp_global - local as number is not gather #858

Open
jorgenspange opened this issue May 14, 2024 · 1 comment
Open

cisco.nxos.nxos_bgp_global - local as number is not gather #858

jorgenspange opened this issue May 14, 2024 · 1 comment
Assignees

Comments

@jorgenspange
Copy link

SUMMARY

When gathering or applying config with cisco.nxos.nxos_bgp_global, the local as-number attribute is not gathered.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

cisco.nxos.nxos_bgp_global

ANSIBLE VERSION
ansible [core 2.16.6]
  config file = /Users/jorgenspange/Documents/git/ansible-network-automation/ansible.cfg
  configured module search path = ['/Users/jorgenspange/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /opt/homebrew/Cellar/ansible/9.5.1_1/libexec/lib/python3.12/site-packages/ansible
  ansible collection location = /Users/jorgenspange/.ansible/collections:/usr/share/ansible/collections
  executable location = /opt/homebrew/bin/ansible
  python version = 3.12.3 (main, Apr  9 2024, 08:09:14) [Clang 15.0.0 (clang-1500.3.9.4)] (/opt/homebrew/Cellar/ansible/9.5.1_1/libexec/bin/python)
  jinja version = 3.1.4
  libyaml = True

COLLECTION VERSION

# /Users/jorgenspange/.ansible/collections/ansible_collections
Collection Version
---------- -------
cisco.nxos 8.0.0

CONFIGURATION

ANSIBLE_COW_PATH(/Users/jorgenspange/Documents/git/ansible-network-automation/ansible.cfg) = /opt/homebrew/bin/cowsay
ANSIBLE_COW_SELECTION(/Users/jorgenspange/Documents/git/ansible-network-automation/ansible.cfg) = small
ANSIBLE_NOCOWS(/Users/jorgenspange/Documents/git/ansible-network-automation/ansible.cfg) = False
ANSIBLE_PIPELINING(/Users/jorgenspange/Documents/git/ansible-network-automation/ansible.cfg) = True
CONFIG_FILE() = /Users/jorgenspange/Documents/git/ansible-network-automation/ansible.cfg
DEFAULT_FORKS(/Users/jorgenspange/Documents/git/ansible-network-automation/ansible.cfg) = 10
DEFAULT_GATHERING(/Users/jorgenspange/Documents/git/ansible-network-automation/ansible.cfg) = smart
DEFAULT_HOST_LIST(/Users/jorgenspange/Documents/git/ansible-network-automation/ansible.cfg) = ['/Users/jorgenspange/Documents/git/ansible-network-automation/inventory/S-TEST']
DEFAULT_ROLES_PATH(/Users/jorgenspange/Documents/git/ansible-network-automation/ansible.cfg) = ['/Users/jorgenspange/Documents/git/ansible-network-automation/roles']
DEFAULT_STDOUT_CALLBACK(/Users/jorgenspange/Documents/git/ansible-network-automation/ansible.cfg) = yaml
DEFAULT_TIMEOUT(/Users/jorgenspange/Documents/git/ansible-network-automation/ansible.cfg) = 120
DEFAULT_VAULT_PASSWORD_FILE(/Users/jorgenspange/Documents/git/ansible-network-automation/ansible.cfg) = /Users/jorgenspange/Documents/git/ansible-network-automation/.secret/vault_pass.txt
DISPLAY_SKIPPED_HOSTS(/Users/jorgenspange/Documents/git/ansible-network-automation/ansible.cfg) = False
HOST_KEY_CHECKING(/Users/jorgenspange/Documents/git/ansible-network-automation/ansible.cfg) = False

OS / ENVIRONMENT

Macbook Pro 2021 M1 - Sonoma 14.4.1

STEPS TO REPRODUCE

Here is the configuration in my switch:

nexus93180yc-fx# show run sect bgp
show running-config | section bgp
feature bgp
router bgp 123
  router-id 1.1.1.1
  vrf bgp_vrf
    address-family ipv4 unicast
      network 13.33.33.37/32
    neighbor 192.168.1.1
      remote-as 65000
      local-as 65024 no-prepend replace-as
      address-family ipv4 unicast

Here is what is gathered:

ok: [nexus93180yc-fx] =>
  msg:
  - changed: false
    failed: false
    gathered:
      as_number: '123'
      router_id: 1.1.1.1
      vrfs:
      - neighbors:
        - neighbor_address: 192.168.1.1
          remote_as: '65000'
        vrf: bgp_vrf

Should also be able to specify "no-prepend replace-as" in the local-as attribute.

@jorgenspange
Copy link
Author

@NilashishC Any progress here?

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