Commit 8ef10a8e authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Merge branch 'eltex-mes24-snmp' into 'master'

Eltex.MES24xx.get_interfaces. Prefer SNMP use for MES 14xx/24xx

See merge request !5449
parents d2a0bf18 b0ec5305
Pipeline #32151 passed with stages
in 73 minutes and 57 seconds
......@@ -96,3 +96,9 @@ class Script(BaseScript):
i["subinterfaces"][0]["ipv4_addresses"] = [match.group("ip")]
break
return [{"interfaces": interfaces}]
def execute(self, **kwargs):
if self.is_mes14_24:
# Model 14XX/24XX
self.always_prefer = "S"
return super().execute()
......@@ -42,6 +42,12 @@ class Profile(BaseProfile):
("hints", "interfaces", "defaults", "admin-status", False),
]
matchers = {
"is_mes14_24": {"platform": {"$regex": "MES-?[12]4.."}},
}
# snmp_rate_limit = {"is_mes14_24": 4}
INTERFACE_TYPES = {
"te": "physical", # tengigabitethernet
"gi": "physical", # gigabitethernet
......
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