summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/load-balancing/wan/rule/node.tag/protocol/node.def9
1 files changed, 7 insertions, 2 deletions
diff --git a/templates/load-balancing/wan/rule/node.tag/protocol/node.def b/templates/load-balancing/wan/rule/node.tag/protocol/node.def
index 339b1d1..12c361e 100644
--- a/templates/load-balancing/wan/rule/node.tag/protocol/node.def
+++ b/templates/load-balancing/wan/rule/node.tag/protocol/node.def
@@ -1,4 +1,9 @@
-help: Set protocol
type: txt
+help: Set protocol to match (protocol name in /etc/protocols or protocol number or "all")
default: "all"
-syntax:expression: $VAR(@) in "all", "tcp", "udp", "icmp"; "must be (all, tcp, udp, icmp)"
+syntax:expression: exec "/opt/vyatta/sbin/vyatta-validate-type.pl protocol_negate '$VAR(@)'" ; "invalid protocol \"$VAR(@)\""
+comp_help:Possible completions:
+ <text> An IP protocol name from /etc/protocols (e.g. "tcp" or "udp")
+ <0-255> An IP protocol number
+ all All IP protocols
+ !<protocol> All IP protocols except for the specified name or number (negation)