summaryrefslogtreecommitdiff
path: root/op-mode-definitions/show-interfaces-ethernet.xml
blob: 63afe82484ea73cb0ddb855bec1db452ecf0cce4 (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
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="show">
    <children>
      <node name="interfaces">
        <children>
          <tagNode name="ethernet">
            <properties>
              <help>Show ethernet interface information</help>
              <completionHelp>
                <path>interfaces ethernet</path>
              </completionHelp>
            </properties>
            <children>
              <node name="physical">
                <properties>
                  <help>Show physical device information for specified ethernet interface</help>
                </properties>
                <command>/sbin/ethtool "$4"; /sbin/ethtool -i "$4"</command>
                <children>
                  <leafNode name="offload">
                    <properties>
                      <help>Show physical device offloading capabilities</help>
                    </properties>
                    <command>/sbin/ethtool -k "$4"</command>
                  </leafNode>
                </children>
              </node>
              <leafNode name="statistics">
                <properties>
                  <help>Show physical device statistics for specified ethernet interface</help>
                </properties>
                <command>/sbin/ethtool -S "$4"</command>
              </leafNode>
              <leafNode name="transceiver">
                <properties>
                  <help>Show transceiver information from modules (e.g SFP+, QSFP)</help>
                </properties>
                <command>/sbin/ethtool -m "$4"</command>
              </leafNode>
            </children>
          </tagNode>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>