diff options
author | Christian Breunig <christian@breunig.cc> | 2024-05-04 18:09:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-04 18:09:19 +0200 |
commit | bc713d36a2d4d69226b625c3da6e2e2d6ce6b4ae (patch) | |
tree | 888fe48f87d158a4f5ce4270f1e71bbdb75549d6 /op-mode-definitions | |
parent | bc44c9d1d21b31c4b27ad997f174ec7994f046fa (diff) | |
parent | 19ce73c6057e58a950ffe1db0e2a9977fa08abc7 (diff) | |
download | vyos-1x-bc713d36a2d4d69226b625c3da6e2e2d6ce6b4ae.tar.gz vyos-1x-bc713d36a2d4d69226b625c3da6e2e2d6ce6b4ae.zip |
Merge pull request #3406 from vyos/mergify/bp/sagitta/pr-3389
T6291: Add LACP related op commands (backport #3389)
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> |