From 8907b81a657a25c219e0023ce1571a677f6df40f Mon Sep 17 00:00:00 2001 From: Yevhen Fastiuk Date: Sun, 7 May 2023 01:54:39 +0300 Subject: [PATCH] Configure NTP according to extended configuration Signed-off-by: Yevhen Fastiuk --- config/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/main.py b/config/main.py index 24c56cfac0..adc06993b0 100644 --- a/config/main.py +++ b/config/main.py @@ -6546,7 +6546,9 @@ def add_ntp_server(ctx, ntp_ip_address): return else: try: - db.set_entry('NTP_SERVER', ntp_ip_address, {'NULL': 'NULL'}) + db.set_entry('NTP_SERVER', ntp_ip_address, + {'resolve_as': ntp_ip_address, + 'association_type': 'server'}) except ValueError as e: ctx.fail("Invalid ConfigDB. Error: {}".format(e)) click.echo("NTP server {} added to configuration".format(ntp_ip_address))