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
This commit is contained in:
Peter Sprygada 2017-10-23 17:27:58 -04:00 committed by GitHub
parent b004a6373a
commit 905d71d46a

View file

@ -44,7 +44,8 @@ class TerminalModule(TerminalBase):
re.compile(br"connection timed out", re.I), re.compile(br"connection timed out", re.I),
re.compile(br"[^\r\n]+ not found", re.I), re.compile(br"[^\r\n]+ not found", re.I),
re.compile(br"'[^']' +returned error code: ?\d+"), 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): def on_open_shell(self):