Make the 'not found' regex case sensitive (#27100)

Turns out in some commands, like 'sh bgp summary' a line containing
'Not found' can be shown as a column.
This causes those commands to error out with RC=1 .

Fixes #26577
pull/27147/head
Ricardo Carrillo Cruz 7 years ago committed by Matt Davis
parent f58a0cb2b9
commit 857726e6b1

@ -41,7 +41,7 @@ class TerminalModule(TerminalBase):
re.compile(br"invalid input", re.I), re.compile(br"invalid input", re.I),
re.compile(br"(?:incomplete|ambiguous) command", re.I), re.compile(br"(?:incomplete|ambiguous) command", re.I),
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.compile(br"'[^']' +returned error code: ?\d+"), re.compile(br"'[^']' +returned error code: ?\d+"),
] ]

Loading…
Cancel
Save