summaryrefslogtreecommitdiff
path: root/op-mode-definitions/show_vpp_interfaces.xml.in
blob: 094a4e1efb5443fea6015ae91cc85658ba60f1a0 (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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="show">
    <children>
      <node name="interfaces">
        <children>
          <node name="vpp">
            <properties>
              <help>Show VPP interface information</help>
            </properties>
            <children>
              <node name="dataplane">
                <properties>
                  <help>Show VPP dataplane interfaces</help>
                </properties>
                <command>sudo ${vyos_op_scripts_dir}/show_vpp_interfaces.py --dataplane</command>
              </node>
              <node name="kernel">
                <properties>
                  <help>Show VPP kernel interfaces</help>
                </properties>
                <command>sudo ${vyos_op_scripts_dir}/show_vpp_interfaces.py --kernel</command>
              </node>
              <tagNode name="hardware">
                <properties>
                  <help>Show detailed statistics for specified VPP interface</help>
                  <completionHelp>
                    <script>sudo ${vyos_completion_dir}/list_vpp_interfaces.py</script>
                  </completionHelp>
                </properties>
                <standalone>
                  <help>Show VPP interfaces detailed statistics</help>
                  <command>sudo ${vyos_op_scripts_dir}/show_vpp_interfaces.py --hardware</command>
                </standalone>
                <command>sudo ${vyos_op_scripts_dir}/show_vpp_interfaces.py --hardware --intf-name="$5"</command>
              </tagNode>
              <node name="bridge">
                <properties>
                  <help>Show VPP bridge information</help>
                </properties>
                <command>${vyos_op_scripts_dir}/vpp.py show_bridge</command>
                <children>
                  <virtualTagNode>
                    <properties>
                      <help>Show bridge information for specified interface</help>
                      <completionHelp>
                        <path>interfaces vpp bridge</path>
                      </completionHelp>
                    </properties>
                    <command>${vyos_op_scripts_dir}/vpp.py show_bridge --ifname=$5</command>
                    <children>
                      <leafNode name="detail">
                        <properties>
                          <help>Show detailed bridge domain information</help>
                        </properties>
                        <command>${vyos_op_scripts_dir}/vpp.py show_bridge_details --ifname=$5</command>
                      </leafNode>
                    </children>
                  </virtualTagNode>
                </children>
              </node>
              <node name="bonding">
                <properties>
                  <help>Show VPP bonding information</help>
                </properties>
                <command>${vyos_op_scripts_dir}/vpp.py show_bond</command>
                <children>
                  <virtualTagNode>
                    <properties>
                      <help>Show bonding information for a specific interface</help>
                      <completionHelp>
                        <path>interfaces vpp bonding</path>
                      </completionHelp>
                    </properties>
                    <command>${vyos_op_scripts_dir}/vpp.py show_bond --ifname=$5</command>
                  </virtualTagNode>
                  <leafNode name="detail">
                    <properties>
                      <help>Show detailed bonding information</help>
                    </properties>
                    <command>${vyos_op_scripts_dir}/vpp.py show_bond_details</command>
                  </leafNode>
                  <node name="lacp">
                    <properties>
                      <help>Show VPP LACP information</help>
                    </properties>
                    <command>${vyos_op_scripts_dir}/vpp.py show_lacp</command>
                    <children>
                      <virtualTagNode>
                        <properties>
                          <help>Show specific interface LACP information</help>
                          <completionHelp>
                            <script>${vyos_completion_dir}/list_interfaces --bondable</script>
                          </completionHelp>
                        </properties>
                        <command>${vyos_op_scripts_dir}/vpp.py show_lacp --ifname=$6</command>
                        <children>
                          <leafNode name="detail">
                            <properties>
                              <help>Show interface LACP details</help>
                            </properties>
                            <command>${vyos_op_scripts_dir}/vpp.py show_lacp_details --ifname=$6</command>
                          </leafNode>
                        </children>
                      </virtualTagNode>
                      <leafNode name="detail">
                        <properties>
                          <help>Show LACP detailed information</help>
                        </properties>
                        <command>${vyos_op_scripts_dir}/vpp.py show_lacp_details</command>
                      </leafNode>
                    </children>
                  </node>
                </children>
              </node>
              <node name="mode">
                <properties>
                  <help>Show mode for all VPP interfaces</help>
                </properties>
                <command>sudo ${vyos_op_scripts_dir}/vpp.py show_mode</command>
              </node>
            </children>
            <command>sudo ${vyos_op_scripts_dir}/show_vpp_interfaces.py --summary</command>
          </node>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>