summaryrefslogtreecommitdiff
path: root/templates/show/interfaces
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-06-01 08:38:59 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-08-12 22:00:52 -0700
commitd3045ca592c736bc4a56c2a3d77064a84280711c (patch)
tree2658878ec2858006c323d80f0de534e00de4c082 /templates/show/interfaces
parent55a6347ff1f617c0648ad76a64b90fdc91d08516 (diff)
downloadvyatta-op-d3045ca592c736bc4a56c2a3d77064a84280711c.tar.gz
vyatta-op-d3045ca592c736bc4a56c2a3d77064a84280711c.zip
Add 'show interfaces pseudo-ethernet'
Bug 4479 Add operational commands for pseudo-ethernet devices
Diffstat (limited to 'templates/show/interfaces')
-rw-r--r--templates/show/interfaces/pseudo-ethernet/detail/node.def2
-rw-r--r--templates/show/interfaces/pseudo-ethernet/node.def2
-rw-r--r--templates/show/interfaces/pseudo-ethernet/node.tag/brief/node.def2
-rw-r--r--templates/show/interfaces/pseudo-ethernet/node.tag/capture/node.def2
-rw-r--r--templates/show/interfaces/pseudo-ethernet/node.tag/capture/not/node.def1
-rw-r--r--templates/show/interfaces/pseudo-ethernet/node.tag/capture/not/port/node.def1
-rw-r--r--templates/show/interfaces/pseudo-ethernet/node.tag/capture/not/port/node.tag/node.def3
-rw-r--r--templates/show/interfaces/pseudo-ethernet/node.tag/capture/port/node.def1
-rw-r--r--templates/show/interfaces/pseudo-ethernet/node.tag/capture/port/node.tag/node.def3
-rw-r--r--templates/show/interfaces/pseudo-ethernet/node.tag/node.def3
-rw-r--r--templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.def4
-rw-r--r--templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/brief/node.def2
-rw-r--r--templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/capture/node.def2
-rw-r--r--templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/capture/not/node.def1
-rw-r--r--templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/capture/not/port/node.def1
-rw-r--r--templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/capture/not/port/node.tag/node.def3
-rw-r--r--templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/capture/port/node.def1
-rw-r--r--templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/capture/port/node.tag/node.def3
-rw-r--r--templates/show/interfaces/pseudo-ethernet/node.tag/vif/node.tag/node.def3
19 files changed, 40 insertions, 0 deletions
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"