summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorslioch <slioch@eng-140.vyatta.com>2009-07-07 16:23:06 -0700
committerslioch <slioch@eng-140.vyatta.com>2009-07-07 16:23:06 -0700
commitc2bc1925a2e95b09875291ab1e5a66702aab4d38 (patch)
tree04c52dbd812e7bd5db91180cf9bb3efa34cb29fe /templates
parent06bdaabb0c82916f21a261d12b451a8ad1185d83 (diff)
downloadvyatta-wanloadbalance-c2bc1925a2e95b09875291ab1e5a66702aab4d38.tar.gz
vyatta-wanloadbalance-c2bc1925a2e95b09875291ab1e5a66702aab4d38.zip
fix for bug 4649 and 4248. needs documentation.
Diffstat (limited to 'templates')
-rw-r--r--templates/clear/wan-load-balance/connections/node.def10
-rw-r--r--templates/clear/wan-load-balance/node.def0
-rw-r--r--templates/clear/wan-load-balance/process/node.def6
3 files changed, 16 insertions, 0 deletions
diff --git a/templates/clear/wan-load-balance/connections/node.def b/templates/clear/wan-load-balance/connections/node.def
new file mode 100644
index 0000000..ee88ca9
--- /dev/null
+++ b/templates/clear/wan-load-balance/connections/node.def
@@ -0,0 +1,10 @@
+help: Flush connections
+run: if [ -f /var/load-balance/wlb.out ] ; then
+ conntrack -F
+ conntrack -F expect
+ else
+ echo WAN load balancing is not configured
+ fi
+
+
+
diff --git a/templates/clear/wan-load-balance/node.def b/templates/clear/wan-load-balance/node.def
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/templates/clear/wan-load-balance/node.def
diff --git a/templates/clear/wan-load-balance/process/node.def b/templates/clear/wan-load-balance/process/node.def
new file mode 100644
index 0000000..0c8380f
--- /dev/null
+++ b/templates/clear/wan-load-balance/process/node.def
@@ -0,0 +1,6 @@
+help: Restart wan-load-balance process
+run: if [ -f /var/load-balance/wlb.out ] ; then
+ /opt/vyatta/sbin/vyatta-wanloadbalance.init restart /var/load-balance/wlb.conf 2>/dev/null
+ else
+ echo WAN load balancing is not configured
+ fi