summaryrefslogtreecommitdiff
path: root/interface-templates/mirror
diff options
context:
space:
mode:
Diffstat (limited to 'interface-templates/mirror')
-rw-r--r--interface-templates/mirror/node.def3
1 files changed, 3 insertions, 0 deletions
diff --git a/interface-templates/mirror/node.def b/interface-templates/mirror/node.def
index cbb3bde..f19ae06 100644
--- a/interface-templates/mirror/node.def
+++ b/interface-templates/mirror/node.def
@@ -2,6 +2,9 @@ type: txt
help: Set incoming packet mirroring destination
allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --skip=$IFNAME --show=all
+syntax: $VAR(@) != $VAR(../@) ;\
+ "interface $VAR(../@): mirroring to same interface not allowed"
+
syntax: /opt/vyatta/sbin/vyatta-interfaces.pl --dev=$IFNAME --check=all
commit:expression: $VAR(../redirect) == ""; \