CLI: Add as 'show ntp' that normal persons understand

This commit is contained in:
Mattias Walström
2024-12-03 16:29:28 +01:00
parent 7334d0e54b
commit 5cafd18b79
3 changed files with 39 additions and 5 deletions
+2 -2
View File
@@ -1073,8 +1073,8 @@ def add_system_ntp(out):
src = {}
line = line.split(',')
src["address"] = line[2]
src["source-mode"] = state_mode_map[line[0]]
src["source-state"] = source_state_map[line[1]]
src["mode"] = state_mode_map[line[0]]
src["state"] = source_state_map[line[1]]
src["stratum"] = int(line[3])
src["poll"] = int(line[4])
source.append(src)