Commit 22ec3fa7 authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Merge branch 'master' into 'master'

Add types mac addresses: sticky|authen|sec-config for get_mac_address_table Huawei.VRP

See merge request !5305

(cherry picked from commit d1e9dbe5)

f2c0ff32 Add types mac addresses: sticky|authen|sec-config for get_mac_address_table Huawei.VRP
parent e9507fcf
Pipeline #31419 passed with stages
in 24 minutes and 37 seconds
......@@ -22,13 +22,15 @@ class Script(BaseScript):
)
rx_vrp5line = re.compile(
r"^(?P<mac>\S+)\s+(?P<vlan_id>\d+)(?:\s+|/)\-\s+(?:\-\s+)?(?P<interfaces>\S+)\s+"
r"(?P<type>dynamic|static|security)(?:\s+\-)?"
r"(?P<type>dynamic|static|security|sticky|authen|sec-config)(?:\s+\-)?"
)
rx_vrp5_bd_line = re.compile(
r"^(?P<mac>\S+)\s+(?P<vlan_id>\d+)/\-/\-\s+(?P<interfaces>\S+)\s+(?P<type>dynamic|static|security)"
r"^(?P<mac>\S+)\s+(?P<vlan_id>\d+)/\-/\-\s+(?P<interfaces>\S+)\s+"
r"(?P<type>dynamic|static|security|sticky|authen|sec-config)"
)
rx_vrp53line = re.compile(
r"^(?P<mac>\S+)\s+(?P<vlan_id>\d+)\s+(?P<interfaces>\S+)\s+(?P<type>dynamic|static|security)\s+"
r"^(?P<mac>\S+)\s+(?P<vlan_id>\d+)\s+(?P<interfaces>\S+)\s+"
r"(?P<type>dynamic|static|security|sticky|authen|sec-config)\s+"
)
def execute_snmp(self, **kwargs):
......@@ -90,6 +92,9 @@ class Script(BaseScript):
"learned": "D",
"config static": "S",
"security": "S",
"sticky": "S",
"authen": "D",
"sec-config": "S",
}[match.group("type").lower()],
}
]
......
Supports Markdown
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