Merge pull request #17651 from skg-net/bugfix
Fix to handle the prompt on saving startup config
This commit is contained in:
commit
662008115b
1 changed files with 4 additions and 1 deletions
|
@ -123,7 +123,10 @@ class Cli(CliBase):
|
|||
|
||||
|
||||
def save_config(self):
|
||||
self.execute(['copy running-config startup-config'])
|
||||
cmdlist = list()
|
||||
cmd = 'copy running-config startup-config'
|
||||
cmdlist.append(Command(cmd, prompt=self.WARNING_PROMPTS_RE, response='yes'))
|
||||
self.execute(cmdlist)
|
||||
|
||||
|
||||
Cli = register_transport('cli', default=True)(Cli)
|
||||
|
|
Loading…
Reference in a new issue