summaryrefslogtreecommitdiff
path: root/op-mode-definitions/ntp.xml.in
blob: ca0e5db08f814442ca8e5dca4dcd25ab1d6c220f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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>