Merge pull request #17651 from skg-net/bugfix

Fix to handle the prompt on saving startup config
This commit is contained in:
Peter Sprygada 2016-09-19 21:15:44 -04:00 committed by GitHub
commit 662008115b

View file

@ -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)