Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6515,7 +6515,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))
Expand Down