summaryrefslogtreecommitdiff
path: root/templates-op
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2012-01-06 16:10:49 -0800
committerJohn Southworth <john.southworth@vyatta.com>2012-01-06 16:10:49 -0800
commit42d658e0dbe38d9293940624abbf1c881db92454 (patch)
tree686c9828157e010880494943b696454d4a58faf5 /templates-op
parentd671cb3fcaf9eeec6a4d8ff5a95f3c6c72bd2781 (diff)
downloadvyatta-zone-42d658e0dbe38d9293940624abbf1c881db92454.tar.gz
vyatta-zone-42d658e0dbe38d9293940624abbf1c881db92454.zip
Bugfix: 7712 add zone-policy operational mode command
Diffstat (limited to 'templates-op')
-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