diff --git a/sa/profiles/SKS/SKS/profile.py b/sa/profiles/SKS/SKS/profile.py index c54426926d93690d44e9388ab02e3002d7bc8e07..538396be5951ae175204e63f9b3781628a9cd99f 100644 --- a/sa/profiles/SKS/SKS/profile.py +++ b/sa/profiles/SKS/SKS/profile.py @@ -130,10 +130,13 @@ class Profile(BaseProfile): return cls.INTERFACE_TYPES.get(name[:2].lower()) rx_e1 = re.compile(r"e1 unit-1|!") + rx_snmp = re.compile(r"snmp-server community 7 (\w+) ") def cleaned_config(self, cfg): cfg = super().cleaned_config(cfg) search = self.rx_e1.search(cfg) if search: cfg = cfg[search.span()[0] :] + # SKS-16E1-IP-ES-L + cfg = self.rx_snmp.sub("snmp-server community 7 XXXXX ", cfg) return cfg