summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--interface-templates/redirect/node.def18
-rw-r--r--templates/interfaces/ethernet/node.tag/redirect/node.def18
2 files changed, 18 insertions, 18 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
diff --git a/templates/interfaces/ethernet/node.tag/redirect/node.def b/templates/interfaces/ethernet/node.tag/redirect/node.def
deleted file mode 100644
index 8045de7..0000000
--- a/templates/interfaces/ethernet/node.tag/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 do both redirect and mirror"
-
-commit:expression: $VAR(../traffic-policy/in) == ""; \
- "interface $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(../@)
-delete: /opt/vyatta/sbin/vyatta-qos.pl --delete-action $VAR(../@)