summaryrefslogtreecommitdiff
path: root/op-mode-definitions/ntp.xml.in
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2023-09-13 19:10:41 +0100
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2023-09-14 17:04:36 +0000
commit9db289a02892cd4dc02e8233c699428a6febc64f (patch)
treed411aacb8ef4357a6c8a6e75f83bc74a4eaa2d26 /op-mode-definitions/ntp.xml.in
parented3c1137d65c30629263fa62e4cc9ea2817b9d0c (diff)
downloadvyos-1x-9db289a02892cd4dc02e8233c699428a6febc64f.tar.gz
vyos-1x-9db289a02892cd4dc02e8233c699428a6febc64f.zip
op mode: T5582: Add 'force ntp synchronization'
(cherry picked from commit 8e5931c94a4ee409424ba092777a1a9ce03768d7)
Diffstat (limited to 'op-mode-definitions/ntp.xml.in')
-rw-r--r--op-mode-definitions/ntp.xml.in38
1 files changed, 38 insertions, 0 deletions
diff --git a/op-mode-definitions/ntp.xml.in b/op-mode-definitions/ntp.xml.in
new file mode 100644
index 000000000..ca0e5db08
--- /dev/null
+++ b/op-mode-definitions/ntp.xml.in
@@ -0,0 +1,38 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="show">
+ <children>
+ <node name="ntp">
+ <properties>
+ <help>Show peer status of NTP daemon</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/show_ntp.sh --sourcestats</command>
+ <children>
+ <node name="system">
+ <properties>
+ <help>Show parameters about the system clock performance</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/show_ntp.sh --tracking</command>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+ <node name="force">
+ <children>
+ <node name="ntp">
+ <properties>
+ <help>NTP (Network Time Protocol) operations</help>
+ </properties>
+ <children>
+ <node name="synchronization">
+ <properties>
+ <help>Force NTP time synchronization</help>
+ </properties>
+ <command>sudo chronyc makestep</command>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>