diff options
author | Bill Marquette <billm@pfsense.org> | 2008-09-07 04:55:56 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2008-09-07 04:55:56 +0000 |
commit | 3615234313508ce8d8cfabcbb785c7b9f786a738 (patch) | |
tree | 6d2dc72f4522e7d59538b6a2df0de1eb971f8c80 | |
parent | 5bc3bf281174b4e38c450fc0cd8ca1ce0230adfb (diff) | |
download | pfsense-3615234313508ce8d8cfabcbb785c7b9f786a738.zip pfsense-3615234313508ce8d8cfabcbb785c7b9f786a738.tar.gz |
Remove references to lbpool - this is no longer in use in 1.3
Not sure what the correct input validation is here (possibly nothing), but
this is definitely not it.
-rwxr-xr-x | usr/local/www/interfaces.php | 23 | ||||
-rwxr-xr-x | usr/local/www/interfaces_wan.php | 23 |
2 files changed, 0 insertions, 46 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 53befbc..8d84087 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -220,29 +220,6 @@ n already exists."; unlink_if_exists(CRON_PPPOE_CMD_FILE); } - if($_POST['gateway'] and $pconfig['gateway'] <> $_POST['gateway']) { - /* enumerate slbd gateways and make sure we are not creating a route loop */ - if(is_array($config['load_balancer']['lbpool'])) { - foreach($config['load_balancer']['lbpool'] as $lbpool) { - if($lbpool['type'] == "gateway") { - foreach ((array) $lbpool['servers'] as $server) { - $svr = split("\|", $server); - if($svr[1] == $pconfig['gateway']) { - $_POST['gateway'] = $pconfig['gateway']; - $input_errors[] = "Cannot change {$svr[1]} gateway. It is currently referenced by the load balancer pools."; - } - } - } - } - foreach($config['filter']['rule'] as $rule) { - if($rule['gateway'] == $pconfig['gateway']) { - $_POST['gateway'] = $pconfig['gateway']; - $input_errors[] = "Cannot change {$svr[1]} gateway. It is currently referenced by the filter rules via policy based routing."; - } - } - } - } - /* input validation */ if ($_POST['type'] == "Static") { if ($if == "wan") { diff --git a/usr/local/www/interfaces_wan.php b/usr/local/www/interfaces_wan.php index 53befbc..8d84087 100755 --- a/usr/local/www/interfaces_wan.php +++ b/usr/local/www/interfaces_wan.php @@ -220,29 +220,6 @@ n already exists."; unlink_if_exists(CRON_PPPOE_CMD_FILE); } - if($_POST['gateway'] and $pconfig['gateway'] <> $_POST['gateway']) { - /* enumerate slbd gateways and make sure we are not creating a route loop */ - if(is_array($config['load_balancer']['lbpool'])) { - foreach($config['load_balancer']['lbpool'] as $lbpool) { - if($lbpool['type'] == "gateway") { - foreach ((array) $lbpool['servers'] as $server) { - $svr = split("\|", $server); - if($svr[1] == $pconfig['gateway']) { - $_POST['gateway'] = $pconfig['gateway']; - $input_errors[] = "Cannot change {$svr[1]} gateway. It is currently referenced by the load balancer pools."; - } - } - } - } - foreach($config['filter']['rule'] as $rule) { - if($rule['gateway'] == $pconfig['gateway']) { - $_POST['gateway'] = $pconfig['gateway']; - $input_errors[] = "Cannot change {$svr[1]} gateway. It is currently referenced by the filter rules via policy based routing."; - } - } - } - } - /* input validation */ if ($_POST['type'] == "Static") { if ($if == "wan") { |