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

Commit

Permalink
junos uses 'table' not 'vrf'
Browse files Browse the repository at this point in the history
  • Loading branch information
Pshem Kowalczyk authored and Pshem Kowalczyk committed May 30, 2017
1 parent 9fff442 commit 574d5f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion napalm_junos/junos.py
Original file line number Diff line number Diff line change
Expand Up @@ -1165,8 +1165,9 @@ def get_route_to(self, destination='', protocol='', vrf=''):
if protocol and isinstance(destination, py23_compat.string_types):
rt_kargs['protocol'] = protocol

#table is (almost) a vrf
if vrf:
rt_kargs['vrf'] = vrf
rt_kargs['table'] = vrf

try:
routes_table.get(**rt_kargs)
Expand Down

0 comments on commit 574d5f6

Please sign in to comment.