Merge pull request #17651 from skg-net/bugfix

Fix to handle the prompt on saving startup config
pull/17654/head
Peter Sprygada 8 years ago committed by GitHub
commit 662008115b

@ -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…
Cancel
Save