summaryrefslogtreecommitdiff
path: root/templates-cfg/system
diff options
context:
space:
mode:
authorDeepti Kulkarni <deepti@vyatta.com>2011-12-19 14:57:28 -0800
committerDeepti Kulkarni <deepti@vyatta.com>2011-12-19 14:57:28 -0800
commit38149e2d28cb7b1f8296fbff84d61e5f378f3b89 (patch)
tree062ecbe813df0a1c55dbd29492e56a9ed307978a /templates-cfg/system
parent0b904cdf5341bf183e324478e16b1b73f8b74914 (diff)
downloadvyatta-conntrack-38149e2d28cb7b1f8296fbff84d61e5f378f3b89.tar.gz
vyatta-conntrack-38149e2d28cb7b1f8296fbff84d61e5f378f3b89.zip
Improved validation of command syntax.
Resolved a typo.
Diffstat (limited to 'templates-cfg/system')
-rw-r--r--templates-cfg/system/conntrack/log/node.def34
-rw-r--r--templates-cfg/system/conntrack/log/tcp/update/syn-received/node.def (renamed from templates-cfg/system/conntrack/log/tcp/update/sync-received/node.def)0
2 files changed, 1 insertions, 33 deletions
diff --git a/templates-cfg/system/conntrack/log/node.def b/templates-cfg/system/conntrack/log/node.def
index cb7521a..83a613e 100644
--- a/templates-cfg/system/conntrack/log/node.def
+++ b/templates-cfg/system/conntrack/log/node.def
@@ -1,35 +1,3 @@
help: Log connection tracking events per protocol
priority: 219 # failure at log shouldnt fail conntrack
-end:
-if [[ ${COMMIT_ACTION} != 'DELETE' ]]
-then
- declare -a ARR;
- declare -a EVENTS;
- declare -a STATES;
- eval "ARR=($(cli-shell-api listNodes system conntrack log))";
- if [ "${#ARR[@]}" == "0" ]; then
- echo Protocol must be specified for log;
- exit 1;
- fi
- for var in "${ARR[@]}"
- do
- eval "EVENTS=($(cli-shell-api listNodes system conntrack log $var))";
- if [ "${#EVENTS[@]}" == "0" ]; then
- echo Event must be specified for specified protocol $var;
- exit 1;
- fi
- if [ "$var" == "tcp" ]; then
- for i in "${EVENTS[@]}"
- do
- if [ "$i" == "update" ]; then
- eval "STATES=($(cli-shell-api listNodes system conntrack log $var $i))";
- if [ "${#STATES[@]}" == "0" ]; then
- echo State must be specified for specified protocol-event $var $i;
- exit 1;
- fi
- fi
- done
- fi
- done
-fi
-sudo /opt/vyatta/sbin/vyatta-update-conntrack-log.pl
+end: sudo /opt/vyatta/sbin/vyatta-update-conntrack-log.pl
diff --git a/templates-cfg/system/conntrack/log/tcp/update/sync-received/node.def b/templates-cfg/system/conntrack/log/tcp/update/syn-received/node.def
index 421a675..421a675 100644
--- a/templates-cfg/system/conntrack/log/tcp/update/sync-received/node.def
+++ b/templates-cfg/system/conntrack/log/tcp/update/syn-received/node.def