summaryrefslogtreecommitdiff
path: root/interface-templates/mirror/node.def
blob: 599cceccfc15bea9c44f765edfe0938540fe1bbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
type: txt
help: Incoming packet mirroring destination
allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show=ethernet

syntax:expression: $VAR(@) != $VAR(../@) ;\
	 "interface $VAR(../@): mirroring to same interface not allowed"
val_help: Interface for packet mirroring

commit:expression: $VAR(../redirect) == ""; \
		   "interface $VAR(../@) : can not redirect and mirror on $IFNAME"

commit:expression: $VAR(../traffic-policy/in) == ""; \
		   "interface $VAR(../@) : can not use ingress policy and mirror on $IFNAME"

commit:expression: exec "/opt/vyatta/sbin/vyatta-interfaces.pl --dev $VAR(@) --check=all"


update: /opt/vyatta/sbin/vyatta-qos.pl --update-action $IFNAME
delete: /opt/vyatta/sbin/vyatta-qos.pl --delete-action $IFNAME