roll up of updates to vyos shared module

* cleans up method signature
* removes save_config method in favor of super class
pull/17509/head
Peter Sprygada 8 years ago
parent f5cff2ced5
commit 75f1573ed5

@ -96,15 +96,13 @@ class Cli(CliBase):
return diff return diff
def get_config(self, output='config'): def get_config(self, output='text'):
if output not in ['config', 'set']: if output not in ['text', 'set']:
raise ValueError('invalid output format specified') raise ValueError('invalid output format specified')
if output == 'set': if output == 'set':
return self.execute(['show configuration commands'])[0] return self.execute(['show configuration commands'])[0]
else: else:
return self.execute(['show configuration'])[0] return self.execute(['show configuration'])[0]
def save_config(self):
raise NotImplementedError
Cli = register_transport('cli', default=True)(Cli) Cli = register_transport('cli', default=True)(Cli)

Loading…
Cancel
Save