summaryrefslogtreecommitdiff
path: root/interface-templates
diff options
context:
space:
mode:
Diffstat (limited to 'interface-templates')
-rw-r--r--interface-templates/mirror/node.def6
-rw-r--r--interface-templates/redirect/node.def6
2 files changed, 6 insertions, 6 deletions
diff --git a/interface-templates/mirror/node.def b/interface-templates/mirror/node.def
index f19ae06..65246e9 100644
--- a/interface-templates/mirror/node.def
+++ b/interface-templates/mirror/node.def
@@ -1,11 +1,11 @@
type: txt
help: Set incoming packet mirroring destination
-allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --skip=$IFNAME --show=all
+allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show=ethernet
-syntax: $VAR(@) != $VAR(../@) ;\
+syntax:expression: $VAR(@) != $VAR(../@) ;\
"interface $VAR(../@): mirroring to same interface not allowed"
-syntax: /opt/vyatta/sbin/vyatta-interfaces.pl --dev=$IFNAME --check=all
+syntax:expression: exec "/opt/vyatta/sbin/vyatta-interfaces.pl --dev $VAR(@) --check=all"
commit:expression: $VAR(../redirect) == ""; \
"interface $VAR(../@) : can not redirect and mirror on $IFNAME"
diff --git a/interface-templates/redirect/node.def b/interface-templates/redirect/node.def
index e94e8a8..49dd6e1 100644
--- a/interface-templates/redirect/node.def
+++ b/interface-templates/redirect/node.def
@@ -1,11 +1,11 @@
type: txt
help: Set incoming packet redirection destination
-allowed: /opt/vyatta/sbin/vyatta-interfaces.pl --skip=$IFNAME --show=all
+allowed: /opt/vyatta/sbin/vyatta-interfaces.pl --show=input
-syntax: $VAR(@) != $VAR(../@) ;\
+syntax:expression: $VAR(@) != $VAR(../@) ;\
"interface $VAR(../@): redirect to same interface not allowed"
-syntax: /opt/vyatta/sbin/vyatta-interfaces.pl --dev=$IFNAME --check=all
+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"