summaryrefslogtreecommitdiff
path: root/templates-op/show
diff options
context:
space:
mode:
Diffstat (limited to 'templates-op/show')
-rw-r--r--templates-op/show/zone-policy/node.def2
-rw-r--r--templates-op/show/zone-policy/zone/node.def1
-rw-r--r--templates-op/show/zone-policy/zone/node.tag/node.def5
3 files changed, 8 insertions, 0 deletions
diff --git a/templates-op/show/zone-policy/node.def b/templates-op/show/zone-policy/node.def
new file mode 100644
index 0000000..d29570b
--- /dev/null
+++ b/templates-op/show/zone-policy/node.def
@@ -0,0 +1,2 @@
+help: Show summary of zone policy for a specific zone
+run: /opt/vyatta/bin/vyatta-show-zone.pl
diff --git a/templates-op/show/zone-policy/zone/node.def b/templates-op/show/zone-policy/zone/node.def
new file mode 100644
index 0000000..7925164
--- /dev/null
+++ b/templates-op/show/zone-policy/zone/node.def
@@ -0,0 +1 @@
+help: Show zone policy for a specific zone
diff --git a/templates-op/show/zone-policy/zone/node.tag/node.def b/templates-op/show/zone-policy/zone/node.tag/node.def
new file mode 100644
index 0000000..dc5f404
--- /dev/null
+++ b/templates-op/show/zone-policy/zone/node.tag/node.def
@@ -0,0 +1,5 @@
+help: Show zone policy for a specific zone
+allowed: local -a vals
+ eval "vals=($(cli-shell-api listActiveNodes zone-policy zone))"
+ echo -n '<zone-name>' ${vals[@]}
+run: /opt/vyatta/bin/vyatta-show-zone.pl --zone=$4