summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/zone-policy/zone/node.tag/default-policy/node.def22
1 files changed, 22 insertions, 0 deletions
diff --git a/templates/zone-policy/zone/node.tag/default-policy/node.def b/templates/zone-policy/zone/node.tag/default-policy/node.def
new file mode 100644
index 00000000..9a965fb8
--- /dev/null
+++ b/templates/zone-policy/zone/node.tag/default-policy/node.def
@@ -0,0 +1,22 @@
+type: txt
+
+help: Set zone default-policy
+
+default: "drop"
+
+syntax:expression: $VAR(@) in "drop", "reject";
+ "default-policy must be either drop or reject"
+
+comp_help: possible completions:
+ drop Drop silently (default)
+ reject Drop and notify source
+
+create: /opt/vyatta/sbin/vyatta-zone.pl \
+ --action=set-default-policy \
+ --zone-name="$VAR(../@)" \
+ --default-policy="$VAR(@)"
+
+update: /opt/vyatta/sbin/vyatta-zone.pl \
+ --action=set-default-policy \
+ --zone-name="$VAR(../@)" \
+ --default-policy="$VAR(@)"