summaryrefslogtreecommitdiff
path: root/op-mode-definitions/show-interfaces.xml.in
blob: 2d94080c748843405ad7843f4f3f06b5932c198b (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="show">
    <children>
      <node name="interfaces">
        <properties>
          <help>Show network interface information</help>
        </properties>
        <command>${vyos_op_scripts_dir}/interfaces.py show_summary_extended</command>
        <children>
          <leafNode name="counters">
            <properties>
              <help>Show network interface counters</help>
            </properties>
            <command>${vyos_op_scripts_dir}/interfaces.py show_counters</command>
          </leafNode>
          <leafNode name="detail">
            <properties>
              <help>Show detailed information of all interfaces</help>
            </properties>
            <command>${vyos_op_scripts_dir}/interfaces.py show</command>
          </leafNode>
          <leafNode name="summary">
            <properties>
              <help>Show summary information of all interfaces</help>
            </properties>
            <command>${vyos_op_scripts_dir}/interfaces.py show_summary</command>
          </leafNode>
          <tagNode name="kernel">
            <properties>
              <completionHelp>
                <script>ip -j link show | jq -r '.[].ifname'</script>
              </completionHelp>
            </properties>
            <command>${vyos_op_scripts_dir}/interfaces.py show_kernel --intf-name=$4</command>
            <children>
              <leafNode name="detail">
                <properties>
                  <help>Show system interface in JSON format</help>
                </properties>
                <command>${vyos_op_scripts_dir}/interfaces.py show_kernel --intf-name=$4 --detail</command>
              </leafNode>
              <leafNode name="json">
                <properties>
                  <help>Show system interface in JSON format</help>
                </properties>
                <command>${vyos_op_scripts_dir}/interfaces.py show_kernel --intf-name=$4 --raw</command>
              </leafNode>
            </children>
          </tagNode>
          <node name="kernel">
            <properties>
              <help>Show all interfaces on this system</help>
            </properties>
            <command>${vyos_op_scripts_dir}/interfaces.py show_kernel</command>
            <children>
              <leafNode name="detail">
                <properties>
                  <help>Show system interface in JSON format</help>
                </properties>
                <command>${vyos_op_scripts_dir}/interfaces.py show_kernel --detail</command>
              </leafNode>
              <leafNode name="json">
                <properties>
                  <help>Show all interfaces in JSON format</help>
                </properties>
                <command>${vyos_op_scripts_dir}/interfaces.py show_kernel --raw</command>
              </leafNode>
            </children>
          </node>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>