From 19ce73c6057e58a950ffe1db0e2a9977fa08abc7 Mon Sep 17 00:00:00 2001 From: l0crian1 <143656816+l0crian1@users.noreply.github.com> Date: Sat, 4 May 2024 10:39:09 -0400 Subject: op-mode: T6291: add LACP related commands show interfaces bonding lacp detail show interfaces bonding lacp detail show interfaces bonding lacp neighbors Co-authored-by: l0crian1 (cherry picked from commit 0c2bf3192382cffc5ed2dcead3889c332a48820f) --- op-mode-definitions/show-interfaces-bonding.xml.in | 34 +++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) (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 8ca5adb4f..e2950331b 100644 --- a/op-mode-definitions/show-interfaces-bonding.xml.in +++ b/op-mode-definitions/show-interfaces-bonding.xml.in @@ -23,8 +23,27 @@ Show detailed interface information - if [ -f "/proc/net/bonding/$4" ]; then cat "/proc/net/bonding/$4"; else echo "Interface $4 does not exist!"; fi + if [ -f "/proc/net/bonding/$4" ]; then sudo cat "/proc/net/bonding/$4"; else echo "Interface $4 does not exist!"; fi + + + Show LACP related info + + + + + Show LACP details + + sudo ${vyos_op_scripts_dir}/bonding.py show_lacp_detail --interface="$4" + + + + Show LACP Neighbors + + sudo ${vyos_op_scripts_dir}/bonding.py show_lacp_neighbors --interface="$4" + + + Show specified bonding interface information @@ -62,6 +81,19 @@ ${vyos_op_scripts_dir}/interfaces.py show --intf-type=bonding + + + Show LACP related info + + + + + Show LACP details + + sudo ${vyos_op_scripts_dir}/bonding.py show_lacp_detail + + + Show specified bonding interface information -- cgit v1.2.3