summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2012-02-02 09:19:44 -0800
committerJohn Southworth <john.southworth@vyatta.com>2012-02-02 09:19:44 -0800
commit6746d0c45fe4c2435b92863a720e99e90f474ddc (patch)
treea66595527a519f129f74cb7c13182e9d580cf31f /templates
parentf7d2888801399eb54f072173eb2e301c8ef20b09 (diff)
downloadvyatta-cfg-qos-6746d0c45fe4c2435b92863a720e99e90f474ddc.tar.gz
vyatta-cfg-qos-6746d0c45fe4c2435b92863a720e99e90f474ddc.zip
Add vif redirection
Diffstat (limited to 'templates')
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/redirect/node.def19
1 files changed, 19 insertions, 0 deletions
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/redirect/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/redirect/node.def
new file mode 100644
index 0000000..93d7849
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/redirect/node.def
@@ -0,0 +1,19 @@
+type: txt
+help: Incoming packet redirection destination
+allowed: /opt/vyatta/sbin/vyatta-interfaces.pl --show=input
+
+syntax:expression: $VAR(@) != "$VAR(../../@).$VAR(../@)" ;\
+ "interface $VAR(../../@).$VAR(../@): redirect to same interface not allowed"
+val_help: Interface for packet redirection
+
+commit:expression: $VAR(../mirror) == "";\
+ "interface $VAR(../../@).$VAR(../@) : can not do both redirect and mirror"
+
+commit:expression: $VAR(../traffic-policy/in) == ""; \
+ "interface $VAR(../../@).$VAR(../@) : can not use ingress policy and redirect"
+
+commit:expression: exec "/opt/vyatta/sbin/vyatta-interfaces.pl --dev $VAR(@) --check=all"
+
+update: /opt/vyatta/sbin/vyatta-qos.pl --update-action $VAR(../../@).$VAR(../@)
+delete: /opt/vyatta/sbin/vyatta-qos.pl --delete-action $VAR(../../@).$VAR(../@)
+