diff options
author | l0crian1 <143656816+l0crian1@users.noreply.github.com> | 2024-05-04 10:39:09 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-04 16:39:09 +0200 |
commit | 0c2bf3192382cffc5ed2dcead3889c332a48820f (patch) | |
tree | 05004ded07bd664fcbbe88cd236e6f6c5661df26 /op-mode-definitions | |
parent | 2159dfdd138412b5d0af89a6c3adfdabf901b65b (diff) | |
download | vyos-1x-0c2bf3192382cffc5ed2dcead3889c332a48820f.tar.gz vyos-1x-0c2bf3192382cffc5ed2dcead3889c332a48820f.zip |
op-mode: T6291: add LACP related commands
show interfaces bonding lacp detail
show interfaces bonding <bondif> lacp detail
show interfaces bonding <bondif> lacp neighbors
Co-authored-by: l0crian1 <ryan.claridge13@gmail.com>
Diffstat (limited to 'op-mode-definitions')
-rw-r--r-- | op-mode-definitions/show-interfaces-bonding.xml.in | 34 |
1 files changed, 33 insertions, 1 deletions
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 @@ <properties> <help>Show detailed interface information</help> </properties> - <command>if [ -f "/proc/net/bonding/$4" ]; then cat "/proc/net/bonding/$4"; else echo "Interface $4 does not exist!"; fi</command> + <command>if [ -f "/proc/net/bonding/$4" ]; then sudo cat "/proc/net/bonding/$4"; else echo "Interface $4 does not exist!"; fi</command> </leafNode> + <node name="lacp"> + <properties> + <help>Show LACP related info</help> + </properties> + <children> + <leafNode name="detail"> + <properties> + <help>Show LACP details</help> + </properties> + <command>sudo ${vyos_op_scripts_dir}/bonding.py show_lacp_detail --interface="$4" </command> + </leafNode> + <leafNode name="neighbors"> + <properties> + <help>Show LACP Neighbors</help> + </properties> + <command>sudo ${vyos_op_scripts_dir}/bonding.py show_lacp_neighbors --interface="$4"</command> + </leafNode> + </children> + </node> <leafNode name="slaves"> <properties> <help>Show specified bonding interface information</help> @@ -62,6 +81,19 @@ </properties> <command>${vyos_op_scripts_dir}/interfaces.py show --intf-type=bonding</command> </leafNode> + <node name="lacp"> + <properties> + <help>Show LACP related info</help> + </properties> + <children> + <leafNode name="detail"> + <properties> + <help>Show LACP details</help> + </properties> + <command>sudo ${vyos_op_scripts_dir}/bonding.py show_lacp_detail</command> + </leafNode> + </children> + </node> <leafNode name="slaves"> <properties> <help>Show specified bonding interface information</help> |