summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-06-27 11:12:05 +0200
committerChristian Poessinger <christian@poessinger.com>2021-06-27 11:14:12 +0200
commit09efa0550dd169e30a851513781b611dd84e9c79 (patch)
tree8420086b1b50ed5f60822222d3b83edf3c38cf55 /op-mode-definitions
parentd34cd9572dd6285b92d3e0f8f80dc109a674c205 (diff)
downloadvyos-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.in12
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>