Skip to content

Commit

Permalink
add name default parameter to get_default_instances
Browse files Browse the repository at this point in the history
  • Loading branch information
afourmy committed Nov 8, 2017
1 parent 2cd146d commit 808fea5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions napalm/ios/ios.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 808fea5

Please sign in to comment.