From b570c69425e361271cb7558533249659542772d5 Mon Sep 17 00:00:00 2001 From: Dmitry Luhtionov Date: Fri, 3 Apr 2020 12:36:56 +0300 Subject: [PATCH] Fix Juniper.JUNOS.get_interfaces script --- sa/profiles/Juniper/JUNOS/get_interfaces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sa/profiles/Juniper/JUNOS/get_interfaces.py b/sa/profiles/Juniper/JUNOS/get_interfaces.py index becf4eef33..10b1252403 100644 --- a/sa/profiles/Juniper/JUNOS/get_interfaces.py +++ b/sa/profiles/Juniper/JUNOS/get_interfaces.py @@ -32,7 +32,7 @@ class Script(BaseScript): TIMEOUT = 240 BULK = False - rx_phys = re.compile(r"\S+\sinterface:\s(?P\S+)\s*,\s", re.MULTILINE) + rx_phys = re.compile(r"\S+\sinterface:\s(?P\S+)(?: \(\S+, \S+\))?\s*, ", re.MULTILINE) rx_phy_name = re.compile( r"^Physical interface: (?P\S+)" r"( \(\S+, \S+\))?( \(Extended Port)?\s*, " -- GitLab