fix eos terminal plugin to recognize ospf error message (#32039)

The eos terminal plugin did not correctly catch the error message
returned with trying to configure more than one ospf instance.  This
change updates the terminal plugin to catch that scenario
pull/32104/head
Peter Sprygada 7 years ago committed by GitHub
parent b004a6373a
commit 905d71d46a

@ -44,7 +44,8 @@ class TerminalModule(TerminalBase):
re.compile(br"connection timed out", re.I),
re.compile(br"[^\r\n]+ not found", re.I),
re.compile(br"'[^']' +returned error code: ?\d+"),
re.compile(br"[^\r\n]\/bin\/(?:ba)?sh")
re.compile(br"[^\r\n]\/bin\/(?:ba)?sh"),
re.compile(br"% More than \d+ OSPF instance", re.I)
]
def on_open_shell(self):

Loading…
Cancel
Save