diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2007-12-16 14:59:42 -0800 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2007-12-16 14:59:42 -0800 |
commit | 3b0f0b581c00c7466c36392c89f6edfac5e7e5f1 (patch) | |
tree | 191f2031b6f0803ddea3288c5074aa7e86a82711 | |
parent | ce1a828a723bd24472f17b27d3ebd9cdcaa2d28e (diff) | |
download | vyatta-op-3b0f0b581c00c7466c36392c89f6edfac5e7e5f1.tar.gz vyatta-op-3b0f0b581c00c7466c36392c89f6edfac5e7e5f1.zip |
Add ethernet bridging show commands.
-rw-r--r-- | templates/show/bridge/node.def | 2 | ||||
-rw-r--r-- | templates/show/bridge/node.tag/macs/node.def | 2 | ||||
-rw-r--r-- | templates/show/bridge/node.tag/node.def | 5 | ||||
-rw-r--r-- | templates/show/bridge/node.tag/spanning-tree/node.def | 2 |
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 |