Skip to content

asdot does not support under bgp local_as command #1096

Open
@nimaazizibabani

Description

@nimaazizibabani
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions