summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-09-14 19:03:27 +0200
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2023-09-14 17:04:37 +0000
commit7009ef08a00658eea67f1080711fa28e603a5b3a (patch)
treebd3d7cd1fdb64b6d50581816e0ba5640b07b4e73
parent9db289a02892cd4dc02e8233c699428a6febc64f (diff)
downloadvyos-1x-7009ef08a00658eea67f1080711fa28e603a5b3a.tar.gz
vyos-1x-7009ef08a00658eea67f1080711fa28e603a5b3a.zip
T5582: make "force ntp synchronisation" command VRF aware
(cherry picked from commit c27b0ca1816bc9fcbb88b05ae3193d765b798d81)
-rw-r--r--op-mode-definitions/ntp.xml.in11
1 files changed, 11 insertions, 0 deletions
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 @@
<properties>
<help>Force NTP time synchronization</help>
</properties>
+ <children>
+ <tagNode name="vrf">
+ <properties>
+ <help>Force NTP time synchronization in given VRF</help>
+ <completionHelp>
+ <path>vrf name</path>
+ </completionHelp>
+ </properties>
+ <command>sudo ip vrf exec $5 chronyc makestep</command>
+ </tagNode>
+ </children>
<command>sudo chronyc makestep</command>
</node>
</children>