From 517b8adad4edfbbf42d58ab1243f743979a91e1e Mon Sep 17 00:00:00 2001 From: Mohit Mehta Date: Thu, 16 Apr 2009 17:33:36 -0700 Subject: add default-policy node for zones. can be set to drop or reject remove extraneous arguments in function calls --- .../zone/node.tag/default-policy/node.def | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 templates/zone-policy/zone/node.tag/default-policy/node.def 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(@)" -- cgit v1.2.3