diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-06-09 10:51:56 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-06-09 10:51:56 -0700 |
commit | 0eb4bb917c2cdb0c7563e5082a82fae9319da08e (patch) | |
tree | 751c08fccb1cabed9ea18fe97e24711d4fc8cd9c /interface-templates/redirect | |
parent | 0e4f6a846a42796887706e46f82664a46bf706b7 (diff) | |
parent | ded90a0249827911e86c343ad67ae0d2074b6008 (diff) | |
download | vyatta-cfg-qos-0eb4bb917c2cdb0c7563e5082a82fae9319da08e.tar.gz vyatta-cfg-qos-0eb4bb917c2cdb0c7563e5082a82fae9319da08e.zip |
Merge branch 'larkspur' of vm:git/vyatta-cfg-qos into larkspur
Diffstat (limited to 'interface-templates/redirect')
-rw-r--r-- | interface-templates/redirect/node.def | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/interface-templates/redirect/node.def b/interface-templates/redirect/node.def new file mode 100644 index 0000000..e94e8a8 --- /dev/null +++ b/interface-templates/redirect/node.def @@ -0,0 +1,16 @@ +type: txt +help: Set incoming packet redirection destination +allowed: /opt/vyatta/sbin/vyatta-interfaces.pl --skip=$IFNAME --show=all + +syntax: $VAR(@) != $VAR(../@) ;\ + "interface $VAR(../@): redirect to same interface not allowed" + +syntax: /opt/vyatta/sbin/vyatta-interfaces.pl --dev=$IFNAME --check=all + +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" + +end: /opt/vyatta/sbin/vyatta-qos.pl --update-action $IFNAME |