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:
parent
6fc9ffd28e
commit
433a0e1e40
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue