<?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}/ntp.py show_sourcestats</command>
        <children>
          <node name="activity">
            <properties>
              <help>Report the number of servers and peers that are online and offline</help>
            </properties>
            <command>${vyos_op_scripts_dir}/ntp.py show_activity</command>
          </node>
          <node name="sources">
            <properties>
              <help>Show information about the current time sources being accessed</help>
            </properties>
            <command>${vyos_op_scripts_dir}/ntp.py show_sources</command>
          </node>
          <node name="system">
            <properties>
              <help>Show parameters about the system clock performance</help>
            </properties>
            <command>${vyos_op_scripts_dir}/ntp.py show_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>
            <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>
      </node>
    </children>
  </node>
</interfaceDefinition>