From e1aab88d15f0edb6e95c61851fbdb2d72b664aae Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 5 Jun 2020 23:10:25 +0200 Subject: op-mode: ethernet: T2546: add vif subcommand --- op-mode-definitions/show-interfaces-ethernet.xml | 36 ++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/op-mode-definitions/show-interfaces-ethernet.xml b/op-mode-definitions/show-interfaces-ethernet.xml index 63afe8248..675636929 100644 --- a/op-mode-definitions/show-interfaces-ethernet.xml +++ b/op-mode-definitions/show-interfaces-ethernet.xml @@ -12,6 +12,12 @@ + + + Show summary of the specified ethernet interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief + Show physical device information for specified ethernet interface @@ -38,8 +44,38 @@ /sbin/ethtool -m "$4" + + + Show specified virtual network interface (vif) information + + interfaces ethernet ${COMP_WORDS[3]} vif + + + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4.$6" + + + + Show summary of specified virtual network interface (vif) information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4.$6" --action=show-brief + + + + + + Show ethernet interface information + + + + + Show detailed ethernet interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=ethernet --action=show + + + -- cgit v1.2.3