Skip to content
This repository was archived by the owner on Feb 10, 2018. It is now read-only.

Commit 574d5f6

Browse files
Pshem KowalczykPshem Kowalczyk
Pshem Kowalczyk
authored and
Pshem Kowalczyk
committed
junos uses 'table' not 'vrf'
1 parent 9fff442 commit 574d5f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

napalm_junos/junos.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1165,8 +1165,9 @@ def get_route_to(self, destination='', protocol='', vrf=''):
11651165
if protocol and isinstance(destination, py23_compat.string_types):
11661166
rt_kargs['protocol'] = protocol
11671167

1168+
#table is (almost) a vrf
11681169
if vrf:
1169-
rt_kargs['vrf'] = vrf
1170+
rt_kargs['table'] = vrf
11701171

11711172
try:
11721173
routes_table.get(**rt_kargs)

0 commit comments

Comments
 (0)