From 183eb39fcb12f81c2b17de82c762bf2696c4b04f Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 14 Jun 2006 20:33:35 +0000 Subject: Remove static route upon changing monitor ip's. --- usr/local/www/load_balancer_pool_edit.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'usr/local/www/load_balancer_pool_edit.php') diff --git a/usr/local/www/load_balancer_pool_edit.php b/usr/local/www/load_balancer_pool_edit.php index accb501..b51d8e9 100755 --- a/usr/local/www/load_balancer_pool_edit.php +++ b/usr/local/www/load_balancer_pool_edit.php @@ -112,6 +112,9 @@ if ($_POST) { update_if_changed("port", $poolent['port'], $_POST['port']); update_if_changed("servers", $poolent['servers'], $_POST['servers']); update_if_changed("monitor", $poolent['monitor'], $_POST['monitor']); + + /* kill off old static route */ + mwexec("route delete {$_POST['monitorip']}"); if (isset($id) && $a_pool[$id]) { /* modify all virtual servers with this name */ -- cgit v1.1