From 3c0f6959bded299614560f315098455cd8b8ac71 Mon Sep 17 00:00:00 2001 From: Mohit Mehta Date: Wed, 3 Jun 2009 14:24:29 -0700 Subject: change default-policy to default-action for zones --- .../zone/node.tag/default-action/node.def | 22 ++++++++++++++++++++++ .../zone/node.tag/default-policy/node.def | 22 ---------------------- 2 files changed, 22 insertions(+), 22 deletions(-) create mode 100644 templates/zone-policy/zone/node.tag/default-action/node.def delete mode 100644 templates/zone-policy/zone/node.tag/default-policy/node.def (limited to 'templates') diff --git a/templates/zone-policy/zone/node.tag/default-action/node.def b/templates/zone-policy/zone/node.tag/default-action/node.def new file mode 100644 index 00000000..01714098 --- /dev/null +++ b/templates/zone-policy/zone/node.tag/default-action/node.def @@ -0,0 +1,22 @@ +type: txt + +help: Set default-action for traffic coming into this zone + +default: "drop" + +syntax:expression: $VAR(@) in "drop", "reject"; + "default-action 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(@)" diff --git a/templates/zone-policy/zone/node.tag/default-policy/node.def b/templates/zone-policy/zone/node.tag/default-policy/node.def deleted file mode 100644 index 9a965fb8..00000000 --- a/templates/zone-policy/zone/node.tag/default-policy/node.def +++ /dev/null @@ -1,22 +0,0 @@ -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