Nexus Router BGP - Parser does not parse 'show run bgp' correctly when using VRFs
See original GitHub issuehere is the error that I am getting when I build the BGP with VRF
output = device.parse('show run bgp')
File "src/genie/conf/base/device.py", line 528, in genie.conf.base.device.Device.parse
File "src/genie/conf/base/device.py", line 567, in genie.conf.base.device.Device._get_parser_output
File "src/genie/conf/base/device.py", line 565, in genie.conf.base.device.Device._get_parser_output
File "src/genie/metaparser/_metaparser.py", line 342, in genie.metaparser._metaparser.MetaParser.parse
File "src/genie/metaparser/_metaparser.py", line 322, in genie.metaparser._metaparser.MetaParser.parse
File "src/genie/metaparser/util/schemaengine.py", line 419, in genie.metaparser.util.schemaengine.Schema.validate
genie.metaparser.util.exceptions.SchemaMissingKeyError: Missing keys: [['bgp', 'instance', 'default', 'vrf', 'default', 'isolate'], ['bgp', 'instance', 'default', 'vrf', 'default', 'flush_routes'], ['bgp', 'instance', 'default', 'vrf', 'default', 'fast_external_fallover'], ['bgp', 'instance', 'default', 'vrf', 'default', 'enforce_first_as'], ['bgp', 'instance', 'default', 'vrf', 'default', 'log_neighbor_changes'], ['bgp', 'instance', 'default', 'vrf', 'default', 'graceful_restart']]
BGP Configuration
!Command: show running-config bgp
!Running configuration last done at: Fri Aug 12 15:04:42 2022
!Time: Fri Aug 12 15:06:52 2022
version 9.3(7) Bios:version 07.68
feature bgp
router bgp 65000
vrf bgptesting
router-id 192.168.1.1
log-neighbor-changes
address-family ipv4 unicast
network 192.168.1.1/32
network 192.168.3.0/24
neighbor 192.168.3.2
remote-as 65001
address-family ipv4 unicast
if I remove the vrf I would get the result back as expected as shown below (snippet), and it uses a default
VRF. However. I am not sure what {instance:default{}}
would be for ? I thought this should represent the VRF ? what’s the difference between instance
and vrf
?
"bgp":
{
"instance":
{
"default":
{
"bgp_id": 65000,
"protocol_shutdown": false,
"vrf":
{
"default": <<<<<<< VRF=default
{
"graceful_restart": true,
"log_neighbor_changes": true,
"router_id": "192.168.1.1",
"enforce_first_as": true,
"fast_external_fallover": true,
"flush_routes": false,
"isolate": false,
"af_name":
{
Issue Analytics
- State:
- Created a year ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Cisco Nexus 9000 Series NX-OS System Routing Messages ...
System routing messages for Cisco Nexus 9000 Series switches running Cisco NX-OS Release 10.2(3)F.
Read more >Cisco NX-OS Graceful Insertion and Removal (GIR)
We have two Nexus (in nx-os mode) in vPC. Doing layer-2 aggregation and layer-3 routing. They use OSPF as iGP and BGP towards...
Read more >4.3.5+1 - IP Fabric Docs - Confluence
Cisco IOS-XR - Fix parsing for the command "show bgp all neighbors" ... tasks/vrf - use 'show ip vrf detail' if 'show vrf...
Read more >Solution: VSP8600 can't establish BGP peer with Cisco Nexus
VSP8600 can't establish BGP peer with Cisco Nexus (IDLE state): #show ip bgp summary vrfids 1-511 ...
Read more >Network Analysis 2. Analysing Network Configuration ...
Analysing Network Configuration Consistency (Sanity check, BGP, Routes) with ... If you run a big network, and it is not fully automated, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Taarini NXOS: version 9.3(7) N9K-C93180YC-EX
Closing this issue