summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-31 22:01:07 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-31 22:01:07 +0000
commit8df78737c90fb93526b41263d183e2bb06547aba (patch)
tree69a5a78ac3668d469fdfa16ae561b1f226d4f1fe /usr
parent8a12d8de457b3026ba6e1f0afe6999fd3a5cacc0 (diff)
downloadpfsense-8df78737c90fb93526b41263d183e2bb06547aba.zip
pfsense-8df78737c90fb93526b41263d183e2bb06547aba.tar.gz
Add and honour sitedown slbd field
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/load_balancer_virtual_server_edit.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/usr/local/www/load_balancer_virtual_server_edit.php b/usr/local/www/load_balancer_virtual_server_edit.php
index c793bff..ec720af 100755
--- a/usr/local/www/load_balancer_virtual_server_edit.php
+++ b/usr/local/www/load_balancer_virtual_server_edit.php
@@ -47,6 +47,7 @@ if (isset($id) && $a_vs[$id]) {
$pconfig['pool'] = $a_vs[$id]['pool'];
$pconfig['desc'] = $a_vs[$id]['desc'];
$pconfig['name'] = $a_vs[$id]['name'];
+ $pconfig['sitedown'] = $a_vs[$id]['sitedown'];
}
if ($_POST) {
@@ -66,6 +67,7 @@ if ($_POST) {
$vsent['desc'] = $_POST['desc'];
$vsent['pool'] = $_POST['pool'];
$vsent['port'] = $_POST['port'];
+ $vsent['sitedown'] = $_POST['sitedown'];
$vsent['ipaddr'] = $_POST['ipaddr'];
if (isset($id) && $a_vs[$id])
@@ -133,6 +135,13 @@ include("head.inc");
</td>
</tr>
<tr align="left">
+ <td width="22%" valign="top" class="vncellreq">Pool Down Server</td>
+ <td width="78%" class="vtable" colspan="2">
+ <input name="ipaddr" type="text" <?if(isset($pconfig['sitedown'])) echo "value=\"{$pconfig['sitedown']}\"";?> size="16" maxlength="16">
+ <br>NOTE: This is the server that clients will be redirected to if *ALL* servers in the pool are offline.
+ </td>
+ </tr>
+ <tr align="left">
<td align="left" valign="bottom">
<input name="Submit" type="submit" class="formbtn" value="Submit">
<?php if (isset($id) && $a_vs[$id]): ?>
OpenPOWER on IntegriCloud