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
This commit is contained in:
Ricardo Carrillo Cruz 2017-07-20 21:33:18 +02:00 committed by Matt Davis
parent f58a0cb2b9
commit 857726e6b1

View file

@ -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+"),
] ]