summaryrefslogtreecommitdiff
path: root/op-mode-definitions/monitor-ndp.xml.in
blob: 26d881f1acc70ff9e9db0373ff5e792a489d8c86 (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>Monitor 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</script>
              </completionHelp>
            </properties>
            <children>
              <tagNode name="type">
                <command>sudo ndptool monitor --ifname=$4 --msg-type=$6</command>
                <properties>
                  <help>Monitor specific types of NDP protocols</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 specific types of NDP protocols</help>
              <completionHelp>
                <list>rs ra ns na</list>
              </completionHelp>
            </properties>
          </tagNode>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>