From 607435dacba35e7eb76c66ef725aa0f0f45b510f Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 16 Apr 2020 18:36:43 +0500 Subject: [PATCH] Eltex.MES. Add detected platform to profile. --- sa/profiles/Eltex/MES/confdb/normalizer.py | 6 +++++- sa/profiles/Eltex/MES/profile.py | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/sa/profiles/Eltex/MES/confdb/normalizer.py b/sa/profiles/Eltex/MES/confdb/normalizer.py index 940e6d5fa0..622523675b 100644 --- a/sa/profiles/Eltex/MES/confdb/normalizer.py +++ b/sa/profiles/Eltex/MES/confdb/normalizer.py @@ -118,7 +118,11 @@ class MESNormalizer(BaseNormalizer): @match("interface", ANY, "switchport", ANY, "allowed", "vlan", "add", ANY, "untagged") def normalize_switchport_untagged(self, tokens): if_name = self.interface_name(tokens[1]) - yield self.make_switchport_untagged(interface=if_name, unit=if_name, vlan_filter=tokens[7]) + untagged = tokens[7] + if "," in tokens[7]: + # QinQ + untagged = tokens[7].split(",")[0] + yield self.make_switchport_untagged(interface=if_name, unit=if_name, vlan_filter=untagged) @match("interface", ANY, "switchport", ANY, "native", "vlan", ANY) def normalize_switchport_native(self, tokens): diff --git a/sa/profiles/Eltex/MES/profile.py b/sa/profiles/Eltex/MES/profile.py index 2fc1e32aa7..603540e871 100644 --- a/sa/profiles/Eltex/MES/profile.py +++ b/sa/profiles/Eltex/MES/profile.py @@ -80,6 +80,7 @@ class Profile(BaseProfile): "74": "MES-5324", "75": "MES-2124F", "76": "MES-2324", + "77": "MES-2324F", "78": "MES-2324FB", "80": "MES-3324", "81": "MES-3324F", @@ -90,7 +91,9 @@ class Profile(BaseProfile): "92": "MES-2324P", "98": "MES-3508P", "112": "MES-2308R", + "116": "MES-3308F", "120": "MES-3348F", + "136": "MES-5316A", } def get_platform(self, s): -- GitLab