Commit 13fbf1eb authored by Andrey Vertiprahov's avatar Andrey Vertiprahov

Merge branch 'fix-cisco-get-lacp' into 'master'

Cisco.IOS.get_lacp_neighbors. Fix rx_sys_id regex.

See merge request noc/noc!3185
parents 6a9a2743 1c8f14b2
......@@ -27,7 +27,7 @@ class Script(BaseScript):
r"Partner's information:(?P<part_info>.+)\n",
re.IGNORECASE | re.DOTALL,
)
rx_sys_id = re.compile(r",(?P<sys_id>\w{4}\.\w{4}\.\w{4})")
rx_sys_id = re.compile(r",\s*(?P<sys_id>\w{4}\.\w{4}\.\w{4})")
def execute(self):
r = []
......@@ -74,7 +74,6 @@ class Script(BaseScript):
}
]
pass
"""
for port in self.split_port_re.split(block):
port_info = self.split_info_re.match(port)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment