From 09efa0550dd169e30a851513781b611dd84e9c79 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 27 Jun 2021 11:12:05 +0200 Subject: op-mode: bond: T2546: implement "show interface bond * slaves" command Add implementation with XML and Python. --- op-mode-definitions/show-interfaces-bonding.xml.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/show-interfaces-bonding.xml.in b/op-mode-definitions/show-interfaces-bonding.xml.in index f6d9b3508..08ce78296 100644 --- a/op-mode-definitions/show-interfaces-bonding.xml.in +++ b/op-mode-definitions/show-interfaces-bonding.xml.in @@ -25,6 +25,12 @@ if [ -f "/proc/net/bonding/$4" ]; then cat "/proc/net/bonding/$4"; else echo "Interface $4 does not exist!"; fi + + + Show specified bonding interface information + + ${vyos_op_scripts_dir}/show-bond.py --interface "$4" + Show specified virtual network interface (vif) information @@ -62,6 +68,12 @@ ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=bonding --action=show + + + Show specified bonding interface information + + ${vyos_op_scripts_dir}/show-bond.py --slaves + -- cgit v1.2.3