summaryrefslogtreecommitdiff
path: root/interface-templates/mirror/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'interface-templates/mirror/node.def')
-rw-r--r--interface-templates/mirror/node.def15
1 files changed, 15 insertions, 0 deletions
diff --git a/interface-templates/mirror/node.def b/interface-templates/mirror/node.def
new file mode 100644
index 0000000..cbb3bde
--- /dev/null
+++ b/interface-templates/mirror/node.def
@@ -0,0 +1,15 @@
+type: txt
+help: Set incoming packet mirroring destination
+allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --skip=$IFNAME --show=all
+
+syntax: /opt/vyatta/sbin/vyatta-interfaces.pl --dev=$IFNAME --check=all
+
+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"
+
+end: /opt/vyatta/sbin/vyatta-qos.pl --update-action $IFNAME
+
+