diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-06-27 11:12:05 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-06-27 11:14:12 +0200 |
commit | 09efa0550dd169e30a851513781b611dd84e9c79 (patch) | |
tree | 8420086b1b50ed5f60822222d3b83edf3c38cf55 /op-mode-definitions | |
parent | d34cd9572dd6285b92d3e0f8f80dc109a674c205 (diff) | |
download | vyos-1x-09efa0550dd169e30a851513781b611dd84e9c79.tar.gz vyos-1x-09efa0550dd169e30a851513781b611dd84e9c79.zip |
op-mode: bond: T2546: implement "show interface bond * slaves" command
Add implementation with XML and Python.
Diffstat (limited to 'op-mode-definitions')
-rw-r--r-- | op-mode-definitions/show-interfaces-bonding.xml.in | 12 |
1 files changed, 12 insertions, 0 deletions
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 @@ </properties> <command>if [ -f "/proc/net/bonding/$4" ]; then cat "/proc/net/bonding/$4"; else echo "Interface $4 does not exist!"; fi</command> </leafNode> + <leafNode name="slaves"> + <properties> + <help>Show specified bonding interface information</help> + </properties> + <command>${vyos_op_scripts_dir}/show-bond.py --interface "$4"</command> + </leafNode> <tagNode name="vif"> <properties> <help>Show specified virtual network interface (vif) information</help> @@ -62,6 +68,12 @@ </properties> <command>${vyos_op_scripts_dir}/show_interfaces.py --intf-type=bonding --action=show</command> </leafNode> + <leafNode name="slaves"> + <properties> + <help>Show specified bonding interface information</help> + </properties> + <command>${vyos_op_scripts_dir}/show-bond.py --slaves</command> + </leafNode> </children> </node> </children> |