From 356459883d65067de01d7bf204354c0f0487262e 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 1396c2b106..1243615d8d 100644 --- a/config/main.py +++ b/config/main.py @@ -6364,7 +6364,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))