diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2009-04-16 17:33:36 -0700 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2009-04-16 17:33:36 -0700 |
commit | 517b8adad4edfbbf42d58ab1243f743979a91e1e (patch) | |
tree | 0e7fe73df7f5f5520896a7e825410905e0f97df0 | |
parent | a0e27381785effb795e67d4eeb37b9e3b0a1bf9a (diff) | |
download | vyatta-cfg-system-517b8adad4edfbbf42d58ab1243f743979a91e1e.tar.gz vyatta-cfg-system-517b8adad4edfbbf42d58ab1243f743979a91e1e.zip |
add default-policy node for zones. can be set to drop or reject
remove extraneous arguments in function calls
-rw-r--r-- | templates/zone-policy/zone/node.tag/default-policy/node.def | 22 |
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(@)" |