1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Vyos cleanup

Addresses #17416
This commit is contained in:
Nathaniel Case 2016-09-12 11:19:09 -04:00 committed by GitHub
parent 4e325274d6
commit 2077e32ddd
2 changed files with 3 additions and 3 deletions

View file

@ -262,7 +262,7 @@ class CliBase(object):
def get_config(self, commands):
raise NotImplementedError
def load_config(self, commands):
def load_config(self, commands, **kwargs):
raise NotImplementedError
def save_config(self):

View file

@ -66,10 +66,10 @@ class Cli(CliBase):
response = self.execute(commands)
return response[1:-2]
def load_config(self, config, commit=False, comment=None, save=False):
def load_config(self, config, commit=False, comment=None, save=False, **kwargs):
try:
config.insert(0, 'configure')
response = self.execute(config)
self.execute(config)
except NetworkError:
# discard any changes in case of failure
self.execute(['exit discard'])