summaryrefslogtreecommitdiff
path: root/op-mode-definitions/show-bridge.xml.in
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2022-07-26 17:40:31 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2022-07-26 17:40:31 +0000
commit97e0e0eb3ddc1645be3ee255cd7a17fa4b9c1e80 (patch)
tree2818dd9616f7415008a7819b7611e44e07e6465e /op-mode-definitions/show-bridge.xml.in
parente72795a11fe1ab79aade677a09f6f0f716421e86 (diff)
downloadvyos-1x-97e0e0eb3ddc1645be3ee255cd7a17fa4b9c1e80.tar.gz
vyos-1x-97e0e0eb3ddc1645be3ee255cd7a17fa4b9c1e80.zip
bridge: T4569: Extend bridge.py for op-mode
Extend bridge.py op-mode script, allow next commands to use own op-mode functions Add: show bridge vlan show bridge brX fdb show bridge brX mdb
Diffstat (limited to 'op-mode-definitions/show-bridge.xml.in')
-rw-r--r--op-mode-definitions/show-bridge.xml.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/op-mode-definitions/show-bridge.xml.in b/op-mode-definitions/show-bridge.xml.in
index 8b857888b..dd2a28931 100644
--- a/op-mode-definitions/show-bridge.xml.in
+++ b/op-mode-definitions/show-bridge.xml.in
@@ -11,7 +11,7 @@
<properties>
<help>View the VLAN filter settings of the bridge</help>
</properties>
- <command>bridge -c vlan show</command>
+ <command>${vyos_op_scripts_dir}/bridge.py show_vlan</command>
</leafNode>
</children>
</node>
@@ -34,13 +34,13 @@
<properties>
<help>Displays the multicast group database for the bridge</help>
</properties>
- <command>bridge -c mdb show dev $3</command>
+ <command>${vyos_op_scripts_dir}/bridge.py show_mdb --interface=$3</command>
</leafNode>
<leafNode name="fdb">
<properties>
<help>Show the forwarding database of the bridge</help>
</properties>
- <command>bridge -c fdb show br $3</command>
+ <command>${vyos_op_scripts_dir}/bridge.py show_fdb --interface=$3</command>
</leafNode>
</children>
</tagNode>