From db593954f7889a7486bed3f6e920548784d8a9bf Mon Sep 17 00:00:00 2001 From: jack9603301 Date: Thu, 8 Jul 2021 00:47:34 +0800 Subject: op-mode: brctl: T3667: Using `bridge` command structure instead of `brctl` --- op-mode-definitions/show-bridge.xml.in | 28 ++++++++++++++--------- op-mode-definitions/show-interfaces-bridge.xml.in | 6 ----- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/op-mode-definitions/show-bridge.xml.in b/op-mode-definitions/show-bridge.xml.in index 78c350e44..9bb8f137c 100644 --- a/op-mode-definitions/show-bridge.xml.in +++ b/op-mode-definitions/show-bridge.xml.in @@ -6,7 +6,13 @@ Show bridging information - /sbin/brctl show + bridge -c link show + + + + View the VLAN filter settings of the bridge + + bridge -c vlan show @@ -15,25 +21,25 @@ - /sbin/brctl show $3 + bridge -c link show br $3 - + - Show bridge Media Access Control (MAC) address table + Displays the multicast group database for the bridge - /sbin/brctl showmacs $3 + bridge -c fdb show br $3 - + - Show bridge spanning tree information + Show the forwarding database of the bridge - /sbin/brctl showstp $3 + bridge -c fdb show br $3 - + - Show the forwarding database of the bridge + View the VLAN filter settings of the bridge - /usr/sbin/bridge -c fdb show br $3 + bridge -c vlan show br $3 diff --git a/op-mode-definitions/show-interfaces-bridge.xml.in b/op-mode-definitions/show-interfaces-bridge.xml.in index cc4b248b6..85fde95b5 100644 --- a/op-mode-definitions/show-interfaces-bridge.xml.in +++ b/op-mode-definitions/show-interfaces-bridge.xml.in @@ -33,12 +33,6 @@ ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=bridge --action=show - - - View the VLAN filter settings of the bridge - - /usr/sbin/bridge -c vlan show - -- cgit v1.2.3