get_bgp_neighbors doesnt seem to work on IOSXE for BGP neighbors in a VRF as isn't able to pick up the peers. If I try with neighbors in the default IPv4 address-family it works fine.
Is this meant to work, haven't been able to find information in the documentation about it. From the cmds NAPALM runs neighbors are seen in "show bgp all summary" but not in "show bgp ipv4 unicast neighbors" so wasn't sure if what I am seeing is a limitation and the expected outcome.
Any BGP configuration with neighbors in different VRF address families. I haven't tried with a different version of code yet, just wanted to make sure that this is meant to be supported first.
Error Traceback
(Paste the complete traceback of the exception between quotes below)
In [1]: from napalm import get_network_driver
...: driver1 = get_network_driver('ios')
...: device1 = driver1('10.10.108.17', 'admin', 'ansible')
...: device1.open()
In [2]: device1.get_bgp_neighbors()
Out[2]:
{'global': {'router_id': '10.10.108.17',
'peers': {'1.1.1.1': {'local_as': 65002,
'remote_as': 66111,
'remote_id': '0.0.0.0',
'is_up': False,
'is_enabled': True,
'description': '',
'uptime': -1,
'address_family': {'ipv4': {'received_prefixes': -1,
'accepted_prefixes': -1,
'sent_prefixes': -1}}}}}}
In [3]:
DC1-CSR-XNET1#show bgp all summary
For address family: IPv4 Unicast
BGP router identifier 10.10.108.17, local AS number 65002
BGP table version is 1, main routing table version 1
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
1.1.1.1 4 66111 0 0 1 0 0 never Idle
For address family: VPNv4 Unicast
BGP router identifier 10.10.108.17, local AS number 65002
BGP table version is 6, main routing table version 6
5 network entries using 1280 bytes of memory
5 path entries using 680 bytes of memory
3/3 BGP path/bestpath attribute entries using 888 bytes of memory
2 BGP AS-PATH entries using 48 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 2896 total bytes of memory
BGP activity 5/0 prefixes, 5/0 paths, scan interval 60 secs
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
172.16.101.2 4 901 475 482 6 0 0 00:24:30 1
172.16.201.2 4 12076 475 481 6 0 0 00:24:30 3
192.168.12.6 4 65001 491 481 6 0 0 00:24:28 0
192.168.12.10 4 65001 471 463 6 0 0 00:23:28 0
Description of Issue/Question
get_bgp_neighbors doesnt seem to work on IOSXE for BGP neighbors in a VRF as isn't able to pick up the peers. If I try with neighbors in the default IPv4 address-family it works fine.
Is this meant to work, haven't been able to find information in the documentation about it. From the cmds NAPALM runs neighbors are seen in "show bgp all summary" but not in "show bgp ipv4 unicast neighbors" so wasn't sure if what I am seeing is a limitation and the expected outcome.
Did you follow the steps from https://github.com/napalm-automation/napalm#faq
(Place an
x
between the square brackets where applicable)Setup
napalm version
(Paste verbatim output from
pip freeze | grep napalm
between quotes below)Network operating system version
(Paste verbatim output from
show version
- or equivalent - between quotes below)Steps to Reproduce the Issue
Any BGP configuration with neighbors in different VRF address families. I haven't tried with a different version of code yet, just wanted to make sure that this is meant to be supported first.
Error Traceback
(Paste the complete traceback of the exception between quotes below)