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

asdot does not support under bgp local_as command #1096

Open
nimaazizibabani opened this issue Jul 5, 2024 · 2 comments · May be fixed by #1124
Open

asdot does not support under bgp local_as command #1096

nimaazizibabani opened this issue Jul 5, 2024 · 2 comments · May be fixed by #1124

Comments

@nimaazizibabani
Copy link

nimaazizibabani commented Jul 5, 2024

SUMMARY

"I tried to use the cisco.ios.ios_facts module to retrieve comprehensive BGP information, but I encountered an issue when using ASDOT notation with the local_as command."

fatal: [xxxx]: FAILED! => changed=false 
  msg: 'argument ''number'' is of type <class ''float''> found in ''config -> neighbors -> local_as''. and we were unable to convert to int: <class ''float''> cannot be converted to an int'

this is my config

 router bgp xxxx
 bgp asnotation dot
 bgp log-neighbor-changes
 bgp deterministic-med
 bgp graceful-restart
 no bgp default ipv4-unicast
 neighbor x.x.x.x remote-as 500.65083
 neighbor x.x.x.x local-as 501.65083 no-prepend replace-as
ISSUE TYPE
  • Bug Report
COMPONENT NAME

cisco.ios.ios_facts
- bgp_global

ANSIBLE VERSION
ansible [core 2.16.3]
  config file = 
  configured module search path = 
  ansible python module location = /opt/homebrew/lib/python3.10/site-packages/ansible
  ansible collection location =
  executable location = /opt/homebrew/bin/ansible
  python version = 3.10.13 (main, Aug 24 2023, 12:59:26) [Clang 15.0.0 (clang-1500.0.40.1)] (/opt/homebrew/opt/[email protected]/bin/python3.10)
  jinja version = 3.1.2
  libyaml = True
COLLECTION VERSION
  - name: cisco.ios
    source: https://galaxy.ansible.com
    version: 7.0.0
CONFIGURATION
 router bgp xxxx
 bgp asnotation dot
 bgp log-neighbor-changes
 bgp deterministic-med
 bgp graceful-restart
 no bgp default ipv4-unicast
 neighbor x.x.x.x remote-as 500.65083
 neighbor x.x.x.x local-as 501.65083 no-prepend replace-as
OS / ENVIRONMENT

cisco ios (Version 17.09.05)
C9500-24Y4C

STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS

@nimaazizibabani
Copy link
Author

no luck with

@bl1nkbl1nk
Copy link

I have the same issue

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

Successfully merging a pull request may close this issue.

2 participants