Skip to content

Commit c7bb08d

Browse files
committed
Add more subcommands
1 parent cfda803 commit c7bb08d

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

op-mode-definitions/show-interfaces-thunderbolt.xml.in

+37
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,43 @@
1919
</properties>
2020
<command>${vyos_op_scripts_dir}/interfaces.py show_summary --intf-name="$4" --intf-type=thunderbolt</command>
2121
</leafNode>
22+
<node name="physical">
23+
<properties>
24+
<help>Show physical device information for specified thunderbolt interface</help>
25+
</properties>
26+
<command>ethtool --driver "$4"</command>
27+
<children>
28+
<leafNode name="offload">
29+
<properties>
30+
<help>Show physical device offloading capabilities</help>
31+
</properties>
32+
<command>ethtool --show-features "$4" | sed -e 1d -e '/fixed/d' -e 's/^\t*//g' -e 's/://' | column -t -s' '</command>
33+
</leafNode>
34+
</children>
35+
</node>
36+
<leafNode name="statistics">
37+
<properties>
38+
<help>Show physical device statistics for specified thunderbolt interface</help>
39+
</properties>
40+
<command>ethtool --statistics "$4"</command>
41+
</leafNode>
42+
<tagNode name="vif">
43+
<properties>
44+
<help>Show specified virtual network interface (vif) information</help>
45+
<completionHelp>
46+
<path>interfaces thunderbolt ${COMP_WORDS[3]} vif</path>
47+
</completionHelp>
48+
</properties>
49+
<command>${vyos_op_scripts_dir}/interfaces.py show --intf-name="$4.$6" --intf-type=thunderbolt</command>
50+
<children>
51+
<leafNode name="brief">
52+
<properties>
53+
<help>Show summary of specified virtual network interface (vif) information</help>
54+
</properties>
55+
<command>${vyos_op_scripts_dir}/interfaces.py show_summary --intf-name="$4.$6" --intf-type=thunderbolt</command>
56+
</leafNode>
57+
</children>
58+
</tagNode>
2259
</children>
2360
</tagNode>
2461
<node name="thunderbolt">

0 commit comments

Comments
 (0)