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.
This commit is contained in:
Peter Sprygada 2016-09-19 22:27:31 -04:00 committed by GitHub
parent 6fc9ffd28e
commit 433a0e1e40

View file

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