mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-30 12:59:09 -07:00
Merge pull request #17265 from privateip/iosxr
fixes iosxr configure method to commit the changes
This commit is contained in:
commit
4b679ffd84
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…
Add table
Add a link
Reference in a new issue