summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2009-12-18 21:37:15 +0100
committerSeth Mos <seth.mos@xs4all.nl>2009-12-18 21:37:15 +0100
commitacae946b0d56cfc8ca29a88b08a691e584fde302 (patch)
treeb22f906e28839474e89236fc3e02f43fdb89d859
parent035a5e013f87478d4c4bbabbe04930e265da52ca (diff)
downloadpfsense-acae946b0d56cfc8ca29a88b08a691e584fde302.zip
pfsense-acae946b0d56cfc8ca29a88b08a691e584fde302.tar.gz
Make sure that the upgraded load balancer configuration reflects the new gateway names
-rw-r--r--etc/inc/upgrade_config.inc2
-rwxr-xr-xusr/local/www/system_gateway_groups_edit.php2
2 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc
index 694f0a3..4c6ad24 100644
--- a/etc/inc/upgrade_config.inc
+++ b/etc/inc/upgrade_config.inc
@@ -1547,6 +1547,8 @@ function upgrade_053_to_054() {
foreach($lbpool['servers'] as $member) {
$split = split("\|", $member);
$interface = $split[0];
+ /* on a upgraded configuration we automatically append _GW */
+ $interface = strtoupper($interface) . "_GW";
$monitor = $split[1];
/* on failover increment tier. Else always assign 1 */
if($lbpool['behaviour'] == "failover") {
diff --git a/usr/local/www/system_gateway_groups_edit.php b/usr/local/www/system_gateway_groups_edit.php
index 974dc75..57aaf97 100755
--- a/usr/local/www/system_gateway_groups_edit.php
+++ b/usr/local/www/system_gateway_groups_edit.php
@@ -180,7 +180,7 @@ include("head.inc");
echo "<option value='3' $selected[3] >Tier 3</option>";
echo "<option value='4' $selected[4] >Tier 4</option>";
echo "<option value='5' $selected[5] >Tier 5</option>";
- echo "</select> <strong>{$gateway['descr']}</strong><br/>";
+ echo "</select> <strong>{$name} - {$gateway['descr']}</strong><br/>";
}
?>
<br/><span class="vexpl">
OpenPOWER on IntegriCloud