summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2007-12-16 14:59:42 -0800
committerStig Thormodsrud <stig@vyatta.com>2007-12-16 14:59:42 -0800
commit3b0f0b581c00c7466c36392c89f6edfac5e7e5f1 (patch)
tree191f2031b6f0803ddea3288c5074aa7e86a82711
parentce1a828a723bd24472f17b27d3ebd9cdcaa2d28e (diff)
downloadvyatta-op-3b0f0b581c00c7466c36392c89f6edfac5e7e5f1.tar.gz
vyatta-op-3b0f0b581c00c7466c36392c89f6edfac5e7e5f1.zip
Add ethernet bridging show commands.
-rw-r--r--templates/show/bridge/node.def2
-rw-r--r--templates/show/bridge/node.tag/macs/node.def2
-rw-r--r--templates/show/bridge/node.tag/node.def5
-rw-r--r--templates/show/bridge/node.tag/spanning-tree/node.def2
4 files changed, 11 insertions, 0 deletions
diff --git a/templates/show/bridge/node.def b/templates/show/bridge/node.def
new file mode 100644
index 0000000..45761f1
--- /dev/null
+++ b/templates/show/bridge/node.def
@@ -0,0 +1,2 @@
+help: "Show bridging information"
+run: sudo brctl show
diff --git a/templates/show/bridge/node.tag/macs/node.def b/templates/show/bridge/node.tag/macs/node.def
new file mode 100644
index 0000000..4f44832
--- /dev/null
+++ b/templates/show/bridge/node.tag/macs/node.def
@@ -0,0 +1,2 @@
+help: Show bridge MAC table"
+run: sudo brctl showmacs $3
diff --git a/templates/show/bridge/node.tag/node.def b/templates/show/bridge/node.tag/node.def
new file mode 100644
index 0000000..d439a03
--- /dev/null
+++ b/templates/show/bridge/node.tag/node.def
@@ -0,0 +1,5 @@
+help: Show bridge information for a given bridge
+allowed: local -a array ;
+ array=( /sys/class/net/br* ) ;
+ echo -n ${array[@]##*/}
+run: sudo brctl show $3
diff --git a/templates/show/bridge/node.tag/spanning-tree/node.def b/templates/show/bridge/node.tag/spanning-tree/node.def
new file mode 100644
index 0000000..2da87a0
--- /dev/null
+++ b/templates/show/bridge/node.tag/spanning-tree/node.def
@@ -0,0 +1,2 @@
+help: Show bridge spanning tree information"
+run: sudo brctl showstp $3