Closed jlixfeld closed 1 year ago
I am slightly confused here -- Do you have a vrf literally named "default" on your router? default
in this output means "no VRF", IE the default routing table. Do newer versions of EOS explicitly list the default VRF in the "show vrf" output?
I can't speak to anything < 4.25.5M
, but on that version, yes default
is in there by... default:
cdv459-9.10:10:40#show vrf
Maximum number of vrfs allowed: 1023
VRF RD Protocols State Interfaces
---------------- --------------- --------------- ------------------- ---------------------------
default <not set> ipv4,ipv6 v4:routing, Ethernet1, Ethernet2,
v6:no routing Ethernet3, Ethernet4,
Ethernet49/1, Ethernet5,
Ethernet50/1, Ethernet52/1,
Ethernet53/1, Ethernet54/1,
Ethernet55/1, Ethernet56/1,
Loopback0
management <not set> ipv4,ipv6 v4:routing, Management1
v6:no routing
cdv459-9.10:10:46#
cdv459-9.10:14:57#show run | i vrf instance
vrf instance management
cdv459-9.10:15:02#
Ack, playing with the above show vrf
, there might be a bug in the TextFSM template as well. :/
@jlixfeld, can you relate what the return value of get_network_instances
when ran against the device in question, and open a new issue if it's not as expected (I suspect default
will have a v6:no
"interface" in it
Description of Issue/Question
Note: Please check https://guides.github.com/features/mastering-markdown/ to see how to properly format your request.
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
Error Traceback
(Paste the complete traceback of the exception between quotes below)
Output for VRF
default
is returned twice byget_route_to()
:The function to get the route - https://github.com/napalm-automation/napalm/blob/cb4845c40017a3e8e3c2b4e57838de2fd31a1348/napalm/eos/eos.py#L1450
... calls
_show_vrf
-https://github.com/napalm-automation/napalm/blob/cb4845c40017a3e8e3c2b4e57838de2fd31a1348/napalm/eos/eos.py#L2121-L2138
which, regardless whether or not
default
is returned by the system, added to the list of VRFs.