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