Fix to handle the prompt on saving startup config

pull/17651/head
Senthil Kumar Ganesan 8 years ago
parent 42a2875b83
commit 081730851c

@ -123,7 +123,10 @@ class Cli(CliBase):
def save_config(self): 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) Cli = register_transport('cli', default=True)(Cli)

Loading…
Cancel
Save