From 8e5931c94a4ee409424ba092777a1a9ce03768d7 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Wed, 13 Sep 2023 19:10:41 +0100 Subject: op mode: T5582: Add 'force ntp synchronization' --- op-mode-definitions/ntp.xml.in | 38 +++++++++++++++++++++++++++++++++++++ op-mode-definitions/show-ntp.xml.in | 21 -------------------- 2 files changed, 38 insertions(+), 21 deletions(-) create mode 100644 op-mode-definitions/ntp.xml.in delete mode 100644 op-mode-definitions/show-ntp.xml.in (limited to 'op-mode-definitions') 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 @@ + + + + + + + Show peer status of NTP daemon + + ${vyos_op_scripts_dir}/show_ntp.sh --sourcestats + + + + Show parameters about the system clock performance + + ${vyos_op_scripts_dir}/show_ntp.sh --tracking + + + + + + + + + + NTP (Network Time Protocol) operations + + + + + Force NTP time synchronization + + sudo chronyc makestep + + + + + + diff --git a/op-mode-definitions/show-ntp.xml.in b/op-mode-definitions/show-ntp.xml.in deleted file mode 100644 index 0907722af..000000000 --- a/op-mode-definitions/show-ntp.xml.in +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - Show peer status of NTP daemon - - ${vyos_op_scripts_dir}/show_ntp.sh --sourcestats - - - - Show parameters about the system clock performance - - ${vyos_op_scripts_dir}/show_ntp.sh --tracking - - - - - - -- cgit v1.2.3 From c27b0ca1816bc9fcbb88b05ae3193d765b798d81 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Thu, 14 Sep 2023 19:03:27 +0200 Subject: T5582: make "force ntp synchronisation" command VRF aware --- op-mode-definitions/ntp.xml.in | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/ntp.xml.in b/op-mode-definitions/ntp.xml.in index ca0e5db08..b8d0c43ec 100644 --- a/op-mode-definitions/ntp.xml.in +++ b/op-mode-definitions/ntp.xml.in @@ -29,6 +29,17 @@ Force NTP time synchronization + + + + Force NTP time synchronization in given VRF + + vrf name + + + sudo ip vrf exec $5 chronyc makestep + + sudo chronyc makestep -- cgit v1.2.3