From c33beab5d5c4fb171a396fbec6da0f6c47d154a0 Mon Sep 17 00:00:00 2001 From: Rafael Antunes Date: Mon, 2 Sep 2024 10:45:17 +0200 Subject: [PATCH] Add more subcommands --- .../show-interfaces-thunderbolt.xml.in | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/op-mode-definitions/show-interfaces-thunderbolt.xml.in b/op-mode-definitions/show-interfaces-thunderbolt.xml.in index af70ab6694..afa4b0fbc4 100644 --- a/op-mode-definitions/show-interfaces-thunderbolt.xml.in +++ b/op-mode-definitions/show-interfaces-thunderbolt.xml.in @@ -19,6 +19,43 @@ ${vyos_op_scripts_dir}/interfaces.py show_summary --intf-name="$4" --intf-type=thunderbolt + + + Show physical device information for specified thunderbolt interface + + ethtool --driver "$4" + + + + Show physical device offloading capabilities + + ethtool --show-features "$4" | sed -e 1d -e '/fixed/d' -e 's/^\t*//g' -e 's/://' | column -t -s' ' + + + + + + Show physical device statistics for specified thunderbolt interface + + ethtool --statistics "$4" + + + + Show specified virtual network interface (vif) information + + interfaces thunderbolt ${COMP_WORDS[3]} vif + + + ${vyos_op_scripts_dir}/interfaces.py show --intf-name="$4.$6" --intf-type=thunderbolt + + + + Show summary of specified virtual network interface (vif) information + + ${vyos_op_scripts_dir}/interfaces.py show_summary --intf-name="$4.$6" --intf-type=thunderbolt + + +