mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fixes iosxr configure method to commit the changes
The iosxr configure method did not send the commit command to active the changes after pushed to the remote device. This change address that problem
This commit is contained in:
parent
e4b0690ef3
commit
bb630f52ff
1 changed files with 3 additions and 0 deletions
|
@ -69,7 +69,10 @@ class Cli(CliBase):
|
||||||
|
|
||||||
def configure(self, commands, **kwargs):
|
def configure(self, commands, **kwargs):
|
||||||
cmds = ['configure terminal']
|
cmds = ['configure terminal']
|
||||||
|
if commands[-1] == 'end':
|
||||||
|
commands.pop()
|
||||||
cmds.extend(to_list(commands))
|
cmds.extend(to_list(commands))
|
||||||
|
cmds.extend(['commit', 'end'])
|
||||||
responses = self.execute(cmds)
|
responses = self.execute(cmds)
|
||||||
return responses[1:]
|
return responses[1:]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue