mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-27 04:41:26 -07:00
Fix junos terminal regex for cluster srx devices (#53006)
* Fix junos terminal regex for cluster srx devices Fixes #50726 * Modify junos terminal regex to match for string `{primary:node0}` which is also part of the prompt. * Modify network_cli connection plugin to ignore multiple prompt matched lines. * Fix review comment
This commit is contained in:
parent
be3fe8f364
commit
7a36c7ae2e
2 changed files with 8 additions and 3 deletions
|
@ -32,7 +32,7 @@ display = Display()
|
|||
class TerminalModule(TerminalBase):
|
||||
|
||||
terminal_stdout_re = [
|
||||
re.compile(br"[\r\n]?[\w@+\-\.:\/\[\]]+[>#%] ?$"),
|
||||
re.compile(br"({primary:node\d+})?[\r\n]?[\w@+\-\.:\/\[\]]+[>#%] ?$"),
|
||||
]
|
||||
|
||||
terminal_stderr_re = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue