summaryrefslogtreecommitdiff
path: root/op-mode-definitions/monitor-ntp.xml
blob: e25eccf3a18c687c99d51db4d01d8e0992b040d6 (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
39
40
41
42
43
44
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="monitor">
    <children>
      <node name="ndp">
        <properties>
          <help>Monitors the NDP information received by the router through the device</help>
        </properties>
        <command>sudo ndptool monitor</command>
        <children>
          <tagNode name="interface">
            <command>sudo ndptool monitor --ifname=$4</command>
            <properties>
              <help>Monitor ndp protocol on specified interface</help>
              <completionHelp>
                <script>${vyos_completion_dir}/list_interfaces.py</script>
              </completionHelp>
            </properties>
            <children>
              <tagNode name="type">
                <command>sudo ndptool monitor --ifname=$4 --msg-type=$6</command>
                <properties>
                  <help>Monitor ndp protocol on specified interface</help>
                  <completionHelp>
                    <list>rs ra ns na</list>
                  </completionHelp>
                </properties>
              </tagNode>
            </children>
          </tagNode>
          <tagNode name="type">
            <command>sudo ndptool monitor --msg-type=$4</command>
            <properties>
              <help>Monitor ndp protocol on specified interface</help>
              <completionHelp>
                <list>rs ra ns na</list>
              </completionHelp>
            </properties>
          </tagNode>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>