You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I´m using pyats to get the interfaces per VRF and in global (default VRF) routing table.
For VRF interfaces information the command device.parse('show vrf all detail') is working and I can get the list of interfaces for each VRF by reading the "interfaces" key for each VRF. It also works when using the command for one particular VRF, like device.parse('show vrf detail')
I will like to get the same list of interfaces as key for default VRF, but when running the device.parse command it gives the following error:
show_vrf_default_detail = device.parse('show vrf default detail')
Traceback (most recent call last):
File "<pyshell#272>", line 1, in
show_vrf_default_detail = device.parse('show vrf default detail')
File "src/genie/conf/base/device.py", line 524, in genie.conf.base.device.Device.parse
File "src/genie/conf/base/device.py", line 551, in genie.conf.base.device.Device._get_parser_output
File "src/genie/metaparser/_metaparser.py", line 312, in genie.metaparser._metaparser.MetaParser.parse
File "src/genie/metaparser/_metaparser.py", line 292, in genie.metaparser._metaparser.MetaParser.parse
File "src/genie/metaparser/util/schemaengine.py", line 415, in genie.metaparser.util.schemaengine.Schema.validate
genie.metaparser.util.exceptions.SchemaMissingKeyError: Missing keys: [['default', 'address_family']]
It seems that it is not working because no "address-family" information is provided in the output of the show command
RP/0/RSP0/CPU0:IOSXR#show vrf default detail
Wed Dec 22 16:08:48.734 ECU
VRF default; RD not set; VPN ID not set
VRF mode: Regular
Description not set
Interfaces:
BVI733
Bundle-Ether100
Bundle-Ether602
Bundle-Ether604
Bundle-Ether605
Bundle-Ether607
Bundle-Ether614
GigabitEthernet0/0/0/16
GigabitEthernet0/0/0/6
Loopback199
Loopback40733
Loopback777
TenGigE0/1/1/1.1003124
Is it possible to include the support for "default" VRF in the parser?
Regards
The text was updated successfully, but these errors were encountered:
Hi
I´m using pyats to get the interfaces per VRF and in global (default VRF) routing table.
For VRF interfaces information the command device.parse('show vrf all detail') is working and I can get the list of interfaces for each VRF by reading the "interfaces" key for each VRF. It also works when using the command for one particular VRF, like device.parse('show vrf detail')
I will like to get the same list of interfaces as key for default VRF, but when running the device.parse command it gives the following error:
It seems that it is not working because no "address-family" information is provided in the output of the show command
RP/0/RSP0/CPU0:IOSXR#show vrf default detail
Wed Dec 22 16:08:48.734 ECU
VRF default; RD not set; VPN ID not set
VRF mode: Regular
Description not set
Interfaces:
BVI733
Bundle-Ether100
Bundle-Ether602
Bundle-Ether604
Bundle-Ether605
Bundle-Ether607
Bundle-Ether614
GigabitEthernet0/0/0/16
GigabitEthernet0/0/0/6
Loopback199
Loopback40733
Loopback777
TenGigE0/1/1/1.1003124
Is it possible to include the support for "default" VRF in the parser?
Regards
The text was updated successfully, but these errors were encountered: