From 808fea5bd586a3699e72f8c8a9043637f34bbef1 Mon Sep 17 00:00:00 2001 From: afourmy Date: Wed, 8 Nov 2017 09:52:57 +0100 Subject: [PATCH] add name default parameter to get_default_instances --- napalm/ios/ios.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/napalm/ios/ios.py b/napalm/ios/ios.py index 525c7b39f..22eef661a 100644 --- a/napalm/ios/ios.py +++ b/napalm/ios/ios.py @@ -2146,7 +2146,7 @@ def traceroute(self, destination, source=C.TRACEROUTE_SOURCE, traceroute_dict['success'] = results return traceroute_dict - def get_network_instances(self): + def get_network_instances(self, name=''): instances = {} sh_vrf_detail = self._send_command('show vrf detail') @@ -2190,7 +2190,7 @@ def get_network_instances(self): 'state': {'route_distinguisher': RD}, 'interfaces': {'interface': interfaces} } - return instances + return instances if not name else instances[name] def get_config(self, retrieve='all'): """Implementation of get_config for IOS.