From c150b8ddf41be3c9429e86df14a67d7bf6887205 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 25 Jul 2008 11:47:07 -0700 Subject: fix for bug 3446. protocol assignment is now identical to firewall. --- templates/load-balancing/wan/rule/node.tag/protocol/node.def | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'templates/load-balancing') 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: + An IP protocol name from /etc/protocols (e.g. "tcp" or "udp") + <0-255> An IP protocol number + all All IP protocols + ! All IP protocols except for the specified name or number (negation) -- cgit v1.2.3