summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/show/input-policy/adsl/node.def2
-rw-r--r--templates/show/input-policy/adsl/node.tag/node.def6
-rw-r--r--templates/show/input-policy/bonding/node.def2
-rw-r--r--templates/show/input-policy/bonding/node.tag/node.def3
-rw-r--r--templates/show/input-policy/ethernet/node.def2
-rw-r--r--templates/show/input-policy/ethernet/node.tag/node.def3
-rw-r--r--templates/show/input-policy/input/node.def2
-rw-r--r--templates/show/input-policy/input/node.tag/node.def3
-rw-r--r--templates/show/input-policy/node.def2
-rw-r--r--templates/show/input-policy/pppoe/node.def2
-rw-r--r--templates/show/input-policy/pppoe/node.tag/node.def3
-rw-r--r--templates/show/input-policy/pseudo-ethernet/node.def2
-rw-r--r--templates/show/input-policy/serial/node.def2
-rw-r--r--templates/show/input-policy/serial/node.tag/node.def6
-rw-r--r--templates/show/input-policy/tunnel/node.def2
-rw-r--r--templates/show/input-policy/wireless/node.def2
-rw-r--r--templates/show/input-policy/wireless/node.tag/node.def3
17 files changed, 47 insertions, 0 deletions
diff --git a/templates/show/input-policy/adsl/node.def b/templates/show/input-policy/adsl/node.def
new file mode 100644
index 0000000..8a1cd8c
--- /dev/null
+++ b/templates/show/input-policy/adsl/node.def
@@ -0,0 +1,2 @@
+help: Show adsl input-policy information
+run: ${vyatta_bindir}/show-input-policy.pl --type=adsl
diff --git a/templates/show/input-policy/adsl/node.tag/node.def b/templates/show/input-policy/adsl/node.tag/node.def
new file mode 100644
index 0000000..af1473f
--- /dev/null
+++ b/templates/show/input-policy/adsl/node.tag/node.def
@@ -0,0 +1,6 @@
+help: Show specified adsl interface information
+allowed:
+ local -a array ;
+ array=( /sys/class/net/adsl* ) ;
+ echo -n ${array[@]##*/}
+run: ${vyatta_bindir}/show-input-policy.pl "$4"
diff --git a/templates/show/input-policy/bonding/node.def b/templates/show/input-policy/bonding/node.def
new file mode 100644
index 0000000..6af91c0
--- /dev/null
+++ b/templates/show/input-policy/bonding/node.def
@@ -0,0 +1,2 @@
+help: Show bonding input-policy information
+run: ${vyatta_bindir}/show-input-policy.pl --type=bonding
diff --git a/templates/show/input-policy/bonding/node.tag/node.def b/templates/show/input-policy/bonding/node.tag/node.def
new file mode 100644
index 0000000..23138fe
--- /dev/null
+++ b/templates/show/input-policy/bonding/node.tag/node.def
@@ -0,0 +1,3 @@
+help: Show specified bonding interface information
+allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show=bonding
+run: ${vyatta_bindir}/show-input-policy.pl "$4"
diff --git a/templates/show/input-policy/ethernet/node.def b/templates/show/input-policy/ethernet/node.def
new file mode 100644
index 0000000..f8f400e
--- /dev/null
+++ b/templates/show/input-policy/ethernet/node.def
@@ -0,0 +1,2 @@
+help: Show ethernet input-policy information
+run: ${vyatta_bindir}/show-input-policy.pl --type=ethernet
diff --git a/templates/show/input-policy/ethernet/node.tag/node.def b/templates/show/input-policy/ethernet/node.tag/node.def
new file mode 100644
index 0000000..c9df0f9
--- /dev/null
+++ b/templates/show/input-policy/ethernet/node.tag/node.def
@@ -0,0 +1,3 @@
+help: Show specified ethernet interface information
+allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show=ethernet
+run: ${vyatta_bindir}/show-input-policy.pl "$4"
diff --git a/templates/show/input-policy/input/node.def b/templates/show/input-policy/input/node.def
new file mode 100644
index 0000000..d1daf52
--- /dev/null
+++ b/templates/show/input-policy/input/node.def
@@ -0,0 +1,2 @@
+help: Show input input-policy information
+run: ${vyatta_bindir}/show-input-policy.pl --type=input
diff --git a/templates/show/input-policy/input/node.tag/node.def b/templates/show/input-policy/input/node.tag/node.def
new file mode 100644
index 0000000..05afd76
--- /dev/null
+++ b/templates/show/input-policy/input/node.tag/node.def
@@ -0,0 +1,3 @@
+help: Show specified input interface information
+allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show=input
+run: ${vyatta_bindir}/show-input-policy.pl "$4"
diff --git a/templates/show/input-policy/node.def b/templates/show/input-policy/node.def
new file mode 100644
index 0000000..410e1d6
--- /dev/null
+++ b/templates/show/input-policy/node.def
@@ -0,0 +1,2 @@
+help: Show ethernet input-policy information
+run: ${vyatta_bindir}/show-input-policy.pl --brief
diff --git a/templates/show/input-policy/pppoe/node.def b/templates/show/input-policy/pppoe/node.def
new file mode 100644
index 0000000..5f02564
--- /dev/null
+++ b/templates/show/input-policy/pppoe/node.def
@@ -0,0 +1,2 @@
+help: Show pppoe interface input-policy information
+run: ${vyatta_bindir}/show-input-policy.pl --type=pppoe
diff --git a/templates/show/input-policy/pppoe/node.tag/node.def b/templates/show/input-policy/pppoe/node.tag/node.def
new file mode 100644
index 0000000..67a0eae
--- /dev/null
+++ b/templates/show/input-policy/pppoe/node.tag/node.def
@@ -0,0 +1,3 @@
+help: Show specified pppoe interface information
+allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show=pppoe
+run: ${vyatta_bindir}/show-input-policy.pl "$4"
diff --git a/templates/show/input-policy/pseudo-ethernet/node.def b/templates/show/input-policy/pseudo-ethernet/node.def
new file mode 100644
index 0000000..05ec8c9
--- /dev/null
+++ b/templates/show/input-policy/pseudo-ethernet/node.def
@@ -0,0 +1,2 @@
+help: Show tunnel input-policy information
+run: ${vyatta_bindir}/show-input-policy.pl --type=pseudo-ethernet
diff --git a/templates/show/input-policy/serial/node.def b/templates/show/input-policy/serial/node.def
new file mode 100644
index 0000000..93d7188
--- /dev/null
+++ b/templates/show/input-policy/serial/node.def
@@ -0,0 +1,2 @@
+help: Show serial input-policy information
+run: ${vyatta_bindir}/show-input-policy.pl --type=serial
diff --git a/templates/show/input-policy/serial/node.tag/node.def b/templates/show/input-policy/serial/node.tag/node.def
new file mode 100644
index 0000000..36fde57
--- /dev/null
+++ b/templates/show/input-policy/serial/node.tag/node.def
@@ -0,0 +1,6 @@
+help: Show specified adsl interface information
+allowed:
+ local -a array ;
+ array=( /sys/class/net/wan* ) ;
+ echo -n ${array[@]##*/}
+run: ${vyatta_bindir}/show-input-policy.pl "$4"
diff --git a/templates/show/input-policy/tunnel/node.def b/templates/show/input-policy/tunnel/node.def
new file mode 100644
index 0000000..69965f2
--- /dev/null
+++ b/templates/show/input-policy/tunnel/node.def
@@ -0,0 +1,2 @@
+help: Show tunnel input-policy information
+run: ${vyatta_bindir}/show-input-policy.pl --type=tunnel
diff --git a/templates/show/input-policy/wireless/node.def b/templates/show/input-policy/wireless/node.def
new file mode 100644
index 0000000..521848a
--- /dev/null
+++ b/templates/show/input-policy/wireless/node.def
@@ -0,0 +1,2 @@
+help: Show wireless input-policy information
+run: ${vyatta_bindir}/show-input-policy.pl --type=wireless
diff --git a/templates/show/input-policy/wireless/node.tag/node.def b/templates/show/input-policy/wireless/node.tag/node.def
new file mode 100644
index 0000000..8e4170c
--- /dev/null
+++ b/templates/show/input-policy/wireless/node.tag/node.def
@@ -0,0 +1,3 @@
+help: Show specified wireless interface information
+allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show=wireless
+run: ${vyatta_bindir}/show-input-policy.pl "$4"