@@ -1101,8 +1101,8 @@ def get_mac_address_table(self):
1101
1101
1102
1102
return mac_address_table
1103
1103
1104
- def get_route_to (self , destination = '' , protocol = '' , table = '' ):
1105
- """Return route details to a specific destination, learned from a certain protocol, visible in a particular table."""
1104
+ def get_route_to (self , destination = '' , protocol = '' , vrf = '' ):
1105
+ """Return route details to a specific destination, learned from a certain protocol, visible in a particular vrf ( table) ."""
1106
1106
routes = {}
1107
1107
1108
1108
if not isinstance (destination , py23_compat .string_types ):
@@ -1114,8 +1114,8 @@ def get_route_to(self, destination='', protocol='', table=''):
1114
1114
if protocol == 'connected' :
1115
1115
protocol = 'direct' # this is how is called on JunOS
1116
1116
1117
- if table and not isinstance (table , py23_compat .string_types ):
1118
- raise TypeError ('Please specify a valid table !' )
1117
+ if vrf and not isinstance (vrf , py23_compat .string_types ):
1118
+ raise TypeError ('Please specify a valid vrf !' )
1119
1119
1120
1120
_COMMON_PROTOCOL_FIELDS_ = [
1121
1121
'destination' ,
@@ -1165,8 +1165,8 @@ def get_route_to(self, destination='', protocol='', table=''):
1165
1165
if protocol and isinstance (destination , py23_compat .string_types ):
1166
1166
rt_kargs ['protocol' ] = protocol
1167
1167
1168
- if table :
1169
- rt_kargs ['table ' ] = table
1168
+ if vrf :
1169
+ rt_kargs ['vrf ' ] = vrf
1170
1170
1171
1171
try :
1172
1172
routes_table .get (** rt_kargs )
0 commit comments