summaryrefslogtreecommitdiff
path: root/templates-cfg/system
diff options
context:
space:
mode:
authorGaurav Sinha <gaurav.sinha@vyatta.com>2012-08-29 16:30:02 -0700
committerGaurav Sinha <gaurav.sinha@vyatta.com>2012-08-29 16:30:02 -0700
commit7d93877527420cb0f878fa32b39273748fae7498 (patch)
treee45e15e798380f553faeaeda7bcd97a534072fe2 /templates-cfg/system
parent46c2a30d36dd0f6157bd60e506024b24c87f6669 (diff)
downloadvyatta-conntrack-7d93877527420cb0f878fa32b39273748fae7498.tar.gz
vyatta-conntrack-7d93877527420cb0f878fa32b39273748fae7498.zip
Fix 8308, use C version of vyatta-validate-type, also fixing handling negation as per iptables in script
Diffstat (limited to 'templates-cfg/system')
-rw-r--r--templates-cfg/system/conntrack/ignore/rule/node.tag/protocol/node.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates-cfg/system/conntrack/ignore/rule/node.tag/protocol/node.def b/templates-cfg/system/conntrack/ignore/rule/node.tag/protocol/node.def
index 59f23a3..93ae51a 100644
--- a/templates-cfg/system/conntrack/ignore/rule/node.tag/protocol/node.def
+++ b/templates-cfg/system/conntrack/ignore/rule/node.tag/protocol/node.def
@@ -7,7 +7,7 @@ val_help: tcp_udp ; Both TCP and UDP
val_help: all ; All IP protocols
val_help: !<protocol> ; All IP protocols except for the specified name or number (negation)
-syntax:expression: exec "if [ -n \"`/opt/vyatta/sbin/vyatta-validate-type.pl protocol_negate '$VAR(@)'`\" ] \
+syntax:expression: exec "if [ -n \"`/opt/vyatta/sbin/vyatta-validate-type protocol_negate '$VAR(@)'`\" ] \
&& [ \"$VAR(@)\" != 'tcp_udp' ]; then \
echo invalid protocol \"$VAR(@)\" ; \
exit 1 ; \