ansible-collections/cisco.ios

asdot does not support under bgp local_as command

nimaazizibabani opened this issue · 2 comments

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/python@3.10/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

no luck with

I have the same issue