summaryrefslogtreecommitdiff
path: root/op-mode-definitions/show-interfaces-vxlan.xml.in
blob: 6241361d99133586a7cb416f35576120469ce0eb (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
76
77
78
79
80
81
82
83
84
85
86
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="show">
    <children>
      <node name="interfaces">
        <children>
         <node name="vxlan">
            <properties>
              <help>Show VXLAN interface information</help>
            </properties>
            <command>${vyos_op_scripts_dir}/interfaces.py show_summary --intf-type=vxlan</command>
            <children>
              <leafNode name="detail">
                <properties>
                  <help>Show detailed VXLAN interface information</help>
                </properties>
                <command>${vyos_op_scripts_dir}/interfaces.py show --intf-type=vxlan</command>
              </leafNode>
              <virtualTagNode>
                <properties>
                  <help>Show specified VXLAN interface information</help>
                  <completionHelp>
                    <path>interfaces vxlan</path>
                  </completionHelp>
                </properties>
                <command>${vyos_op_scripts_dir}/interfaces.py show --intf-name="$4" --intf-type=vxlan</command>
                <children>
                  <leafNode name="brief">
                    <properties>
                      <help>Show summary of the specified VXLAN interface information</help>
                    </properties>
                    <command>${vyos_op_scripts_dir}/interfaces.py show_summary --intf-name="$4" --intf-type=vxlan</command>
                  </leafNode>
                  <node name="vlan-to-vni">
                    <properties>
                      <help>Show VLAN to VNI mapping for the specified VXLAN interface</help>
                    </properties>
                    <command>${vyos_op_scripts_dir}/interfaces.py show_vlan_to_vni --intf-name="$4"</command>
                    <children>
                      <tagNode name="vlan">
                        <properties>
                          <help>Show VLAN to VNI mapping for the specified VLAN</help>
                          <completionHelp>
                            <path>interfaces vxlan ${COMP_WORDS[3]} vlan-to-vni</path>
                          </completionHelp>
                        </properties>
                        <command>${vyos_op_scripts_dir}/interfaces.py show_vlan_to_vni --intf-name="$4" --vid="$7"</command>
                        <children>
                          <leafNode name="detail">
                            <properties>
                              <help>Show detailed VLAN to VNI mapping for the specified VLAN</help>
                            </properties>
                            <command>${vyos_op_scripts_dir}/interfaces.py show_vlan_to_vni --intf-name="$4" --vid="$7" --detail</command>
                          </leafNode>
                          <leafNode name="statistics">
                            <properties>
                              <help>Show VLAN to VNI statistics for the specified VLAN</help>
                            </properties>
                            <command>${vyos_op_scripts_dir}/interfaces.py show_vlan_to_vni --intf-name="$4" --vid="$7" --statistics</command>
                          </leafNode>
                        </children>
                      </tagNode>
                      <leafNode name="detail">
                        <properties>
                          <help>Show detailed VLAN to VNI mapping for the specified VXLAN interface</help>
                        </properties>
                        <command>${vyos_op_scripts_dir}/interfaces.py show_vlan_to_vni --intf-name="$4" --detail</command>
                      </leafNode>
                      <leafNode name="statistics">
                        <properties>
                          <help>Show VLAN to VNI statistics for the specified VXLAN interface</help>
                        </properties>
                        <command>${vyos_op_scripts_dir}/interfaces.py show_vlan_to_vni --intf-name="$4" --statistics</command>
                      </leafNode>
                    </children>
                  </node>
                  #include <include/show-interface-type-event-log.xml.i>
                </children>
              </virtualTagNode>
            </children>
          </node>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>