summaryrefslogtreecommitdiff
path: root/op-mode-definitions/show-ip.xml.in
blob: d342ac1925b8debbfcb4a15617665921b15bc420 (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
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="show">
    <children>
      <node name="ip">
        <properties>
          <help>Show IPv4 networking information</help>
        </properties>
        <children>
          <node name="neighbors">
            <properties>
              <help>Show IPv4 neighbor (ARP) table</help>
            </properties>
            <command>${vyos_op_scripts_dir}/show_neigh.py --family inet</command>
            <children>
              <tagNode name="interface">
                <properties>
                  <help>Show IPv4 neighbor table for specified interface</help>
                  <completionHelp>
                    <script>${vyos_completion_dir}/list_interfaces.py -b</script>
                  </completionHelp>
                </properties>
                <command>${vyos_op_scripts_dir}/show_neigh.py --family inet --interface "$5"</command>
              </tagNode>
              <tagNode name="state">
                <properties>
                  <help>Show IPv4 neighbors with specified state</help>
                  <completionHelp>
                    <list>reachable stale failed permanent</list>
                  </completionHelp>
                </properties>
                <command>${vyos_op_scripts_dir}/show_neigh.py --family inet --state "$5"</command>
              </tagNode>
            </children>
          </node>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>