From c5d2d32f705a4ad20282c87d278435fa9ac64746 Mon Sep 17 00:00:00 2001 From: MaksimSmile13 Date: Tue, 27 Aug 2019 17:58:56 +0000 Subject: [PATCH] Merge branch '1083-confdb-juniper-junos-ntp' into 'master' Resolve "ConfDB: Juniper-JUNOS ntp" Closes #1083 See merge request noc/noc!2470 (cherry picked from commit cbebe30de29116b6df00149a03924f135b8a1b36) da9079b2 confdb juniper-junos add ntp 997016f1 confdb juniper-junos add ntp fix 7e386f21 confdb juniper-junos add ntp 15da03d9 confdb juniper-junos. fix2 ntp 25ef2d73 confdb juniper_junos. fix ntp address --- sa/profiles/Juniper/JUNOS/confdb/normalizer.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sa/profiles/Juniper/JUNOS/confdb/normalizer.py b/sa/profiles/Juniper/JUNOS/confdb/normalizer.py index 0420e28a71..399092ddb0 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]) -- GitLab