allow netcfg to pass kwargs from __call__ to configure() (#17653)

This minor fix allows kwargs to pass from Config __call__ to the underlying
transport instance.
pull/17655/head
Peter Sprygada 8 years ago committed by GitHub
parent 6fc9ffd28e
commit 433a0e1e40

@ -49,9 +49,9 @@ class Config(object):
def __init__(self, connection): def __init__(self, connection):
self.connection = connection self.connection = connection
def __call__(self, commands): def __call__(self, commands, **kwargs):
lines = to_list(commands) lines = to_list(commands)
return self.connection.configure(lines) return self.connection.configure(lines, **kwargs)
def load_config(self, commands, **kwargs): def load_config(self, commands, **kwargs):
commands = to_list(commands) commands = to_list(commands)

Loading…
Cancel
Save