diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-09-13 15:45:01 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-09-13 15:45:01 +0200 |
commit | 7f15ef3d994f4ba6bb7ef7e1c47957a9deb7378f (patch) | |
tree | d5978a2244d9bd08db3dbe4dd28e0a8223bb4780 /op-mode-definitions/show-interfaces-bonding.xml | |
parent | 54c08da5a77e325b024415805fc2586afa1b0e8c (diff) | |
download | vyos-1x-7f15ef3d994f4ba6bb7ef7e1c47957a9deb7378f.tar.gz vyos-1x-7f15ef3d994f4ba6bb7ef7e1c47957a9deb7378f.zip |
bonding: T2878: new op-mode command: show interfaces bonding bond0 detail
vyos@vyos:~$ show interfaces bonding bond5 detail
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
Bonding Mode: IEEE 802.3ad Dynamic link aggregation
Transmit Hash Policy: layer2 (0)
MII Status: down
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
802.3ad info
LACP rate: slow
Min links: 0
Aggregator selection policy (ad_select): stable
Slave Interface: eth1
MII Status: down
Speed: Unknown
Duplex: Unknown
Link Failure Count: 0
Permanent HW addr: 00:50:56:bf:ef:aa
Slave queue ID: 0
Aggregator ID: 1
Actor Churn State: churned
Partner Churn State: churned
Actor Churned Count: 1
Partner Churned Count: 1
Slave Interface: eth2
MII Status: down
Speed: Unknown
Duplex: Unknown
Link Failure Count: 0
Permanent HW addr: 00:50:56:bf:19:26
Slave queue ID: 0
Aggregator ID: 2
Actor Churn State: churned
Partner Churn State: churned
Actor Churned Count: 1
Partner Churned Count: 1
Diffstat (limited to 'op-mode-definitions/show-interfaces-bonding.xml')
-rw-r--r-- | op-mode-definitions/show-interfaces-bonding.xml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/op-mode-definitions/show-interfaces-bonding.xml b/op-mode-definitions/show-interfaces-bonding.xml index 568b215af..c1c76b059 100644 --- a/op-mode-definitions/show-interfaces-bonding.xml +++ b/op-mode-definitions/show-interfaces-bonding.xml @@ -19,6 +19,12 @@ </properties> <command>${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief</command> </leafNode> + <leafNode name="detail"> + <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> + </leafNode> <tagNode name="vif"> <properties> <help>Show specified virtual network interface (vif) information</help> |