Skip to content

Commit

Permalink
Add more subcommands
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelgaspar committed Nov 6, 2024
1 parent 557d713 commit c33beab
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions op-mode-definitions/show-interfaces-thunderbolt.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,43 @@
</properties>
<command>${vyos_op_scripts_dir}/interfaces.py show_summary --intf-name="$4" --intf-type=thunderbolt</command>
</leafNode>
<node name="physical">
<properties>
<help>Show physical device information for specified thunderbolt interface</help>
</properties>
<command>ethtool --driver "$4"</command>
<children>
<leafNode name="offload">
<properties>
<help>Show physical device offloading capabilities</help>
</properties>
<command>ethtool --show-features "$4" | sed -e 1d -e '/fixed/d' -e 's/^\t*//g' -e 's/://' | column -t -s' '</command>
</leafNode>
</children>
</node>
<leafNode name="statistics">
<properties>
<help>Show physical device statistics for specified thunderbolt interface</help>
</properties>
<command>ethtool --statistics "$4"</command>
</leafNode>
<tagNode name="vif">
<properties>
<help>Show specified virtual network interface (vif) information</help>
<completionHelp>
<path>interfaces thunderbolt ${COMP_WORDS[3]} vif</path>
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/interfaces.py show --intf-name="$4.$6" --intf-type=thunderbolt</command>
<children>
<leafNode name="brief">
<properties>
<help>Show summary of specified virtual network interface (vif) information</help>
</properties>
<command>${vyos_op_scripts_dir}/interfaces.py show_summary --intf-name="$4.$6" --intf-type=thunderbolt</command>
</leafNode>
</children>
</tagNode>
</children>
</tagNode>
<node name="thunderbolt">
Expand Down

0 comments on commit c33beab

Please sign in to comment.