diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-21 16:48:05 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-21 16:48:05 -0700 |
commit | 3a6ba18b5430ee3506f4d1de54ceb4b63e08695c (patch) | |
tree | 55c5ee039a910df34c85cb4bbfef9bcdbebfedfa /interface-templates/redirect | |
parent | df6fea4a8fb0a0c8391db4e40d752ca4e4cf87e4 (diff) | |
download | vyatta-cfg-qos-3a6ba18b5430ee3506f4d1de54ceb4b63e08695c.tar.gz vyatta-cfg-qos-3a6ba18b5430ee3506f4d1de54ceb4b63e08695c.zip |
Only allow redirect and mirror on ethernet devices
For simplicity only allow mirror/redirect templates
to exist on ethernet device.
Diffstat (limited to 'interface-templates/redirect')
-rw-r--r-- | interface-templates/redirect/node.def | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/interface-templates/redirect/node.def b/interface-templates/redirect/node.def deleted file mode 100644 index c836662..0000000 --- a/interface-templates/redirect/node.def +++ /dev/null @@ -1,18 +0,0 @@ -type: txt -help: Incoming packet redirection destination -allowed: /opt/vyatta/sbin/vyatta-interfaces.pl --show=input - -syntax:expression: $VAR(@) != $VAR(../@) ;\ - "interface $VAR(../@): redirect to same interface not allowed" -val_help: Interface for packet redirection - -commit:expression: $VAR(../mirror) == "";\ - "interface $VAR(../@) : can not redirect and mirror on $IFNAME" - -commit:expression: $VAR(../traffic-policy/in) == ""; \ - "interface $VAR(../@) : can not use ingress policy and redirect on $IFNAME" - -commit:expression: exec "/opt/vyatta/sbin/vyatta-interfaces.pl --dev $VAR(@) --check=all" - -update: /opt/vyatta/sbin/vyatta-qos.pl --update-action $IFNAME -delete: /opt/vyatta/sbin/vyatta-qos.pl --delete-action $IFNAME |