diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2012-02-07 14:23:19 -0800 |
---|---|---|
committer | Stephen Hemminger <shemminger@vyatta.com> | 2012-02-07 14:23:19 -0800 |
commit | 02cdaf7deff30e8852866d427192f03e5440f05f (patch) | |
tree | 756a7c982bf87f07d3711a99ddd201e5ff1ed04c /interface-templates | |
parent | b50faaa99e2f42ec5da2c9ec640cc28824a0ac8d (diff) | |
download | vyatta-cfg-qos-02cdaf7deff30e8852866d427192f03e5440f05f.tar.gz vyatta-cfg-qos-02cdaf7deff30e8852866d427192f03e5440f05f.zip |
Allow redirect on all interfaces
Bug 7771
Allow QoS redirect on all interfaces (vlan, bonding, bridge, etc).
Diffstat (limited to 'interface-templates')
-rw-r--r-- | interface-templates/redirect/node.def | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/interface-templates/redirect/node.def b/interface-templates/redirect/node.def new file mode 100644 index 0000000..50788ca --- /dev/null +++ b/interface-templates/redirect/node.def @@ -0,0 +1,18 @@ +type: txt +help: Incoming packet redirection destination +allowed: /opt/vyatta/sbin/vyatta-interfaces.pl --show=input + +syntax:expression: $VAR(@) != $IFNAME ;\ + "interface $IFNAME: redirect to same interface not allowed" +val_help: Interface for packet redirection + +commit:expression: $VAR(../mirror) == "";\ + "interface $IFNAME : can not do both redirect and mirror" + +commit:expression: $VAR(../traffic-policy/in) == ""; \ + "interface $IFNAME : can not use ingress policy and redirect" + +commit:expression: exec "/opt/vyatta/sbin/vyatta-interfaces.pl --dev $IFNAME --check=all" + +update: /opt/vyatta/sbin/vyatta-qos.pl --update-action $IFNAME +delete: /opt/vyatta/sbin/vyatta-qos.pl --delete-action $IFNAME |