Merge pull request #17510 from privateip/iosxr
clean up iosxr shared module
This commit is contained in:
commit
ebe2400af8
1 changed files with 3 additions and 2 deletions
|
@ -59,7 +59,7 @@ class Cli(CliBase):
|
||||||
|
|
||||||
### Config methods ###
|
### Config methods ###
|
||||||
|
|
||||||
def configure(self, commands, **kwargs):
|
def configure(self, commands):
|
||||||
cmds = ['configure terminal']
|
cmds = ['configure terminal']
|
||||||
if commands[-1] == 'end':
|
if commands[-1] == 'end':
|
||||||
commands.pop()
|
commands.pop()
|
||||||
|
@ -68,7 +68,7 @@ class Cli(CliBase):
|
||||||
responses = self.execute(cmds)
|
responses = self.execute(cmds)
|
||||||
return responses[1:]
|
return responses[1:]
|
||||||
|
|
||||||
def get_config(self, flags=None, **kwargs):
|
def get_config(self, flags=None):
|
||||||
cmd = 'show running-config'
|
cmd = 'show running-config'
|
||||||
if flags:
|
if flags:
|
||||||
if isinstance(flags, list):
|
if isinstance(flags, list):
|
||||||
|
@ -106,6 +106,7 @@ class Cli(CliBase):
|
||||||
self.execute(['abort'])
|
self.execute(['abort'])
|
||||||
diff = None
|
diff = None
|
||||||
raise
|
raise
|
||||||
|
|
||||||
return diff[0]
|
return diff[0]
|
||||||
|
|
||||||
Cli = register_transport('cli', default=True)(Cli)
|
Cli = register_transport('cli', default=True)(Cli)
|
||||||
|
|
Loading…
Reference in a new issue