summaryrefslogtreecommitdiffstats
path: root/usr/local/www/load_balancer_virtual_server_edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/load_balancer_virtual_server_edit.php')
-rwxr-xr-xusr/local/www/load_balancer_virtual_server_edit.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/usr/local/www/load_balancer_virtual_server_edit.php b/usr/local/www/load_balancer_virtual_server_edit.php
index 417a16c..8e9a613 100755
--- a/usr/local/www/load_balancer_virtual_server_edit.php
+++ b/usr/local/www/load_balancer_virtual_server_edit.php
@@ -46,6 +46,7 @@ if (isset($id) && $a_vs[$id]) {
$pconfig['port'] = $a_vs[$id]['port'];
$pconfig['pool'] = $a_vs[$id]['pool'];
$pconfig['desc'] = $a_vs[$id]['desc'];
+ $pconfig['name'] = $a_vs[$id]['name'];
}
if ($_POST) {
@@ -53,14 +54,15 @@ if ($_POST) {
$pconfig = $_POST;
/* input validation */
- $reqdfields = explode(" ", "ipaddr");
- $reqdfieldsn = explode(",", "IP Address");
+ $reqdfields = explode(" ", "ipaddr name");
+ $reqdfieldsn = explode(",", "IP Address, Name");
do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors);
if (!$input_errors) {
$vsent = array();
+ $vsent['name'] = $_POST['name'];
$vsent['desc'] = $_POST['desc'];
$vsent['pool'] = $_POST['pool'];
$vsent['port'] = $_POST['port'];
@@ -95,6 +97,12 @@ include("head.inc");
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr align="left">
+ <td width="22%" valign="top" class="vncellreq">Name</td>
+ <td width="78%" class="vtable" colspan="2">
+ <input name="name" type="text" <?if(isset($pconfig['name'])) echo "value=\"{$pconfig['name']}\"";?>size="32" maxlength="32">
+ </td>
+ </tr>
+ <tr align="left">
<td width="22%" valign="top" class="vncellreq">Description</td>
<td width="78%" class="vtable" colspan="2">
<input name="desc" type="text" <?if(isset($pconfig['desc'])) echo "value=\"{$pconfig['desc']}\"";?>size="64">
OpenPOWER on IntegriCloud