diff --git a/sa/profiles/Juniper/JUNOS/confdb/normalizer.py b/sa/profiles/Juniper/JUNOS/confdb/normalizer.py index 0420e28a718bcc3a47fcf7695cda2a452f066f32..399092ddb0a80ce75287314b1d287ac9eec50c47 100644 --- a/sa/profiles/Juniper/JUNOS/confdb/normalizer.py +++ b/sa/profiles/Juniper/JUNOS/confdb/normalizer.py @@ -134,3 +134,13 @@ class JunOSNormalizer(BaseNormalizer): yield self.make_forwarding_instance_description( instance=tokens[1], description=" ".join(tokens[3:]) ) + + @match("system", "ntp") + def normalize_timesource(self, tokens): + yield self.make_clock_source(source="ntp") + + @match("system", "ntp", "server", ANY) + @match("system", "ntp", "server", ANY, ANY) + @match("system", "ntp", "server", ANY, ANY, ANY, ANY, ANY) + def normalize_ntp_server(self, tokens): + yield self.make_ntp_server_address(name=tokens[3], address=tokens[3])