summaryrefslogtreecommitdiff
path: root/interface-templates/redirect/node.def
blob: ac2ad7e34508ea75227777eb4a05e1478c630bac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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

syntax:expression: exec "/opt/vyatta/sbin/vyatta-interfaces.pl --dev $VAR(@) --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