This commit is contained in:
abirami-n 2018-03-05 17:00:37 +05:30 committed by ansibot
parent 6578403288
commit 4021194532

View file

@ -39,14 +39,12 @@ class TerminalModule(TerminalBase):
terminal_stderr_re = [
re.compile(br"% ?Error: (?:(?!\bdoes not exist\b)(?!\balready exists\b)(?!\bHost not found\b)(?!\bnot active\b).)*$"),
re.compile(br"% ?Bad secret"),
re.compile(br"invalid input", re.I),
re.compile(br"Cannot add a dynamic member to a LAG with static members", re.I),
re.compile(br"VLAN ID not found", re.I),
re.compile(br"The maximum number of users have already been created.", re.I),
re.compile(br"Invalid access level. Access level can be either 0, 1 or 15", re.I),
re.compile(br"An invalid interface has been used for this function.", re.I),
re.compile(br"Error:Community does not exist.", re.I),
re.compile(br"Value is out of range.", re.I),
re.compile(br"(\bInterface is part of a port-channel\b)|(\bAn invalid interface has been used for this function\b)"),
re.compile(br"(\bThe maximum number of users have already been created\b)|(\bVLAN ID is out of range\b)|(\bUse '-' for range\b)"),
re.compile(br"(\binvalid input\b)|(\bVLAN ID not found\b)"),
re.compile(br"(\bInvalid access level. Access level can be either 0, 1 or 15\b)|(\bValue is out of range\b)"),
re.compile(br"Cannot add(.+)\s(\S+)"),
re.compile(br"Error:(.+)\s(\S+)"),
re.compile(br"(?:incomplete|ambiguous) command", re.I),
re.compile(br"connection timed out", re.I),
re.compile(br"'[^']' +returned error code: ?\d+"),