From c2bc1925a2e95b09875291ab1e5a66702aab4d38 Mon Sep 17 00:00:00 2001 From: slioch Date: Tue, 7 Jul 2009 16:23:06 -0700 Subject: fix for bug 4649 and 4248. needs documentation. --- templates/clear/wan-load-balance/connections/node.def | 10 ++++++++++ templates/clear/wan-load-balance/node.def | 0 templates/clear/wan-load-balance/process/node.def | 6 ++++++ 3 files changed, 16 insertions(+) create mode 100644 templates/clear/wan-load-balance/connections/node.def create mode 100644 templates/clear/wan-load-balance/node.def create mode 100644 templates/clear/wan-load-balance/process/node.def (limited to 'templates') 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 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 -- cgit v1.2.3