From d3045ca592c736bc4a56c2a3d77064a84280711c Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 1 Jun 2009 08:38:59 -0700 Subject: Add 'show interfaces pseudo-ethernet' Bug 4479 Add operational commands for pseudo-ethernet devices --- templates/show/interfaces/pseudo-ethernet/detail/node.def | 2 ++ templates/show/interfaces/pseudo-ethernet/node.def | 2 ++ templates/show/interfaces/pseudo-ethernet/node.tag/brief/node.def | 2 ++ templates/show/interfaces/pseudo-ethernet/node.tag/capture/node.def | 2 ++ .../show/interfaces/pseudo-ethernet/node.tag/capture/not/node.def | 1 + .../interfaces/pseudo-ethernet/node.tag/capture/not/port/node.def | 1 + .../pseudo-ethernet/node.tag/capture/not/port/node.tag/node.def | 3 +++ .../show/interfaces/pseudo-ethernet/node.tag/capture/port/node.def | 1 + .../pseudo-ethernet/node.tag/capture/port/node.tag/node.def | 3 +++ templates/show/interfaces/pseudo-ethernet/node.tag/node.def | 3 +++ templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.def | 4 ++++ .../interfaces/pseudo-ethernet/node.tag/vif/node.tag/brief/node.def | 2 ++ .../interfaces/pseudo-ethernet/node.tag/vif/node.tag/capture/node.def | 2 ++ .../pseudo-ethernet/node.tag/vif/node.tag/capture/not/node.def | 1 + .../pseudo-ethernet/node.tag/vif/node.tag/capture/not/port/node.def | 1 + .../node.tag/vif/node.tag/capture/not/port/node.tag/node.def | 3 +++ .../pseudo-ethernet/node.tag/vif/node.tag/capture/port/node.def | 1 + .../node.tag/vif/node.tag/capture/port/node.tag/node.def | 3 +++ .../show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/node.def | 3 +++ 19 files changed, 40 insertions(+) create mode 100644 templates/show/interfaces/pseudo-ethernet/detail/node.def create mode 100644 templates/show/interfaces/pseudo-ethernet/node.def create mode 100644 templates/show/interfaces/pseudo-ethernet/node.tag/brief/node.def create mode 100644 templates/show/interfaces/pseudo-ethernet/node.tag/capture/node.def create mode 100644 templates/show/interfaces/pseudo-ethernet/node.tag/capture/not/node.def create mode 100644 templates/show/interfaces/pseudo-ethernet/node.tag/capture/not/port/node.def create mode 100644 templates/show/interfaces/pseudo-ethernet/node.tag/capture/not/port/node.tag/node.def create mode 100644 templates/show/interfaces/pseudo-ethernet/node.tag/capture/port/node.def create mode 100644 templates/show/interfaces/pseudo-ethernet/node.tag/capture/port/node.tag/node.def create mode 100644 templates/show/interfaces/pseudo-ethernet/node.tag/node.def create mode 100644 templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.def create mode 100644 templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/brief/node.def create mode 100644 templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/capture/node.def create mode 100644 templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/capture/not/node.def create mode 100644 templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/capture/not/port/node.def create mode 100644 templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/capture/not/port/node.tag/node.def create mode 100644 templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/capture/port/node.def create mode 100644 templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/capture/port/node.tag/node.def create mode 100644 templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/node.def (limited to 'templates/show/interfaces') diff --git a/templates/show/interfaces/pseudo-ethernet/detail/node.def b/templates/show/interfaces/pseudo-ethernet/detail/node.def new file mode 100644 index 0000000..c61c773 --- /dev/null +++ b/templates/show/interfaces/pseudo-ethernet/detail/node.def @@ -0,0 +1,2 @@ +help: Show detailed pseudo ethernet interface information +run: ${vyatta_bindir}/vyatta-show-interfaces.pl --intf-type=pseudo-ethernet --action=show diff --git a/templates/show/interfaces/pseudo-ethernet/node.def b/templates/show/interfaces/pseudo-ethernet/node.def new file mode 100644 index 0000000..995e490 --- /dev/null +++ b/templates/show/interfaces/pseudo-ethernet/node.def @@ -0,0 +1,2 @@ +help: Show pseudo-ethernet interface information +run: ${vyatta_bindir}/vyatta-show-interfaces.pl --intf-type=pseudo-ethernet --action=show-brief diff --git a/templates/show/interfaces/pseudo-ethernet/node.tag/brief/node.def b/templates/show/interfaces/pseudo-ethernet/node.tag/brief/node.def new file mode 100644 index 0000000..d7a572a --- /dev/null +++ b/templates/show/interfaces/pseudo-ethernet/node.tag/brief/node.def @@ -0,0 +1,2 @@ +help: Show summary of the specified pseudo ethernet interface information +run: ${vyatta_bindir}/vyatta-show-interfaces.pl --intf="$4" --action=show-brief diff --git a/templates/show/interfaces/pseudo-ethernet/node.tag/capture/node.def b/templates/show/interfaces/pseudo-ethernet/node.tag/capture/node.def new file mode 100644 index 0000000..8f1be5e --- /dev/null +++ b/templates/show/interfaces/pseudo-ethernet/node.tag/capture/node.def @@ -0,0 +1,2 @@ +help: Show captured traffic on specified pseudo ethernet interface +run: /opt/vyatta/bin/vyatta-tshark-interface-port.pl "$4" diff --git a/templates/show/interfaces/pseudo-ethernet/node.tag/capture/not/node.def b/templates/show/interfaces/pseudo-ethernet/node.tag/capture/not/node.def new file mode 100644 index 0000000..a5ef553 --- /dev/null +++ b/templates/show/interfaces/pseudo-ethernet/node.tag/capture/not/node.def @@ -0,0 +1 @@ +help: Show captured traffic excluding the specified pseudo ethernet interface port diff --git a/templates/show/interfaces/pseudo-ethernet/node.tag/capture/not/port/node.def b/templates/show/interfaces/pseudo-ethernet/node.tag/capture/not/port/node.def new file mode 100644 index 0000000..a5ef553 --- /dev/null +++ b/templates/show/interfaces/pseudo-ethernet/node.tag/capture/not/port/node.def @@ -0,0 +1 @@ +help: Show captured traffic excluding the specified pseudo ethernet interface port diff --git a/templates/show/interfaces/pseudo-ethernet/node.tag/capture/not/port/node.tag/node.def b/templates/show/interfaces/pseudo-ethernet/node.tag/capture/not/port/node.tag/node.def new file mode 100644 index 0000000..3a2b44e --- /dev/null +++ b/templates/show/interfaces/pseudo-ethernet/node.tag/capture/not/port/node.tag/node.def @@ -0,0 +1,3 @@ +help: Show captured traffic excluding the specified pseudo ethernet interface port +run: /opt/vyatta/bin/vyatta-tshark-interface-port.pl "$4" "$8" 1 +allowed: echo -n '<1-65535>' diff --git a/templates/show/interfaces/pseudo-ethernet/node.tag/capture/port/node.def b/templates/show/interfaces/pseudo-ethernet/node.tag/capture/port/node.def new file mode 100644 index 0000000..efbe90e --- /dev/null +++ b/templates/show/interfaces/pseudo-ethernet/node.tag/capture/port/node.def @@ -0,0 +1 @@ +help: Show captured traffic on specified pseudo ethernet interface port diff --git a/templates/show/interfaces/pseudo-ethernet/node.tag/capture/port/node.tag/node.def b/templates/show/interfaces/pseudo-ethernet/node.tag/capture/port/node.tag/node.def new file mode 100644 index 0000000..d5e357e --- /dev/null +++ b/templates/show/interfaces/pseudo-ethernet/node.tag/capture/port/node.tag/node.def @@ -0,0 +1,3 @@ +help: Show captured traffic on specified pseudo ethernet interface port +run: /opt/vyatta/bin/vyatta-tshark-interface-port.pl "$4" "$7" 0 +allowed: echo -n '<1-65535>' diff --git a/templates/show/interfaces/pseudo-ethernet/node.tag/node.def b/templates/show/interfaces/pseudo-ethernet/node.tag/node.def new file mode 100644 index 0000000..1b986fb --- /dev/null +++ b/templates/show/interfaces/pseudo-ethernet/node.tag/node.def @@ -0,0 +1,3 @@ +help: Show specified pseudo ethernet interface information +allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show pseudo-ethernet +run: ${vyatta_bindir}/vyatta-show-interfaces.pl --intf="$4" diff --git a/templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.def b/templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.def new file mode 100644 index 0000000..2b74427 --- /dev/null +++ b/templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.def @@ -0,0 +1,4 @@ +help: Show specified virtual network interface (vif) information +run: tput setaf ${COLOR_RED:-1} ; + echo error: need to supply vif # ; + tput op diff --git a/templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/brief/node.def b/templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/brief/node.def new file mode 100644 index 0000000..7aa871e --- /dev/null +++ b/templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/brief/node.def @@ -0,0 +1,2 @@ +help: Show summary of specified virtual network interface (vif) information +run: ${vyatta_bindir}/vyatta-show-interfaces.pl --intf="$4.$6" --action=show-brief diff --git a/templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/capture/node.def b/templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/capture/node.def new file mode 100644 index 0000000..621c784 --- /dev/null +++ b/templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/capture/node.def @@ -0,0 +1,2 @@ +help: Show captured traffic on specified pseudo ethernet virtual interface +run: /opt/vyatta/bin/vyatta-tshark-interface-port.pl "$4.$6" diff --git a/templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/capture/not/node.def b/templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/capture/not/node.def new file mode 100644 index 0000000..90982d0 --- /dev/null +++ b/templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/capture/not/node.def @@ -0,0 +1 @@ +help: Show captured traffic excluding the specified pseudo ethernet virtual interface port diff --git a/templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/capture/not/port/node.def b/templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/capture/not/port/node.def new file mode 100644 index 0000000..90982d0 --- /dev/null +++ b/templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/capture/not/port/node.def @@ -0,0 +1 @@ +help: Show captured traffic excluding the specified pseudo ethernet virtual interface port diff --git a/templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/capture/not/port/node.tag/node.def b/templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/capture/not/port/node.tag/node.def new file mode 100644 index 0000000..dcc85b0 --- /dev/null +++ b/templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/capture/not/port/node.tag/node.def @@ -0,0 +1,3 @@ +help: Show captured traffic excluding the specified pseudo ethernet interface port +run: /opt/vyatta/bin/vyatta-tshark-interface-port.pl "$4.$6" "${10}" 1 +allowed: echo -n '<1-65535>' diff --git a/templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/capture/port/node.def b/templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/capture/port/node.def new file mode 100644 index 0000000..f988ea2 --- /dev/null +++ b/templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/capture/port/node.def @@ -0,0 +1 @@ +help: Show captured traffic on specified pseudo ethernet virtual interface port diff --git a/templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/capture/port/node.tag/node.def b/templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/capture/port/node.tag/node.def new file mode 100644 index 0000000..2c19c88 --- /dev/null +++ b/templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/capture/port/node.tag/node.def @@ -0,0 +1,3 @@ +help: Show captured traffic on specified pseudo ethernet virtual interface port +run: /opt/vyatta/bin/vyatta-tshark-interface-port.pl "$4.$6" "$9" 0 +allowed: echo -n '<1-65535>' diff --git a/templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/node.def b/templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/node.def new file mode 100644 index 0000000..0a50960 --- /dev/null +++ b/templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/node.def @@ -0,0 +1,3 @@ +help: Show specified virtual network interface (vif) information +allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show pseudo-ethernet --vif $4 +run: ${vyatta_bindir}/vyatta-show-interfaces.pl --intf="$4.$6" -- cgit v1.2.3