summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dhcpv6.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-02-17 12:19:41 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-02-17 12:20:18 -0300
commitbd942860594ecf3383ac39eb203ce3c73d4c59d2 (patch)
tree7ffb7c827a3ee470ee74569b1431e5564c6439d2 /usr/local/www/services_dhcpv6.php
parent547f1e6554bb5798f8db5d63708ea3cf46ea3b19 (diff)
downloadpfsense-bd942860594ecf3383ac39eb203ce3c73d4c59d2.zip
pfsense-bd942860594ecf3383ac39eb203ce3c73d4c59d2.tar.gz
Use correct parameter (bootfile-url) to configure netboot on DHCPdv6, it fixes #3421
Diffstat (limited to 'usr/local/www/services_dhcpv6.php')
-rw-r--r--usr/local/www/services_dhcpv6.php27
1 files changed, 7 insertions, 20 deletions
diff --git a/usr/local/www/services_dhcpv6.php b/usr/local/www/services_dhcpv6.php
index b123e12..e9e9b8d 100644
--- a/usr/local/www/services_dhcpv6.php
+++ b/usr/local/www/services_dhcpv6.php
@@ -117,9 +117,7 @@ if (is_array($config['dhcpdv6'][$if])){
$pconfig['tftp'] = $config['dhcpdv6'][$if]['tftp'];
$pconfig['ldap'] = $config['dhcpdv6'][$if]['ldap'];
$pconfig['netboot'] = isset($config['dhcpdv6'][$if]['netboot']);
- $pconfig['nextserver'] = $config['dhcpdv6'][$if]['nextserver'];
- $pconfig['filename'] = $config['dhcpdv6'][$if]['filename'];
- $pconfig['rootpath'] = $config['dhcpdv6'][$if]['rootpath'];
+ $pconfig['bootfile_url'] = $config['dhcpdv6'][$if]['bootfile_url'];
$pconfig['netmask'] = $config['dhcpdv6'][$if]['netmask'];
$pconfig['numberoptions'] = $config['dhcpdv6'][$if]['numberoptions'];
$pconfig['dhcpv6leaseinlocaltime'] = $config['dhcpdv6'][$if]['dhcpv6leaseinlocaltime'];
@@ -216,8 +214,8 @@ if ($_POST) {
$input_errors[] = gettext("A valid domain name must be specified for the DNS domain.");
if ($_POST['tftp'] && !is_ipaddr($_POST['tftp']) && !is_domain($_POST['tftp']) && !is_URL($_POST['tftp']))
$input_errors[] = gettext("A valid IPv6 address or hostname must be specified for the TFTP server.");
- if (($_POST['nextserver'] && !is_ipaddrv6($_POST['nextserver'])))
- $input_errors[] = gettext("A valid IPv6 address must be specified for the network boot server.");
+ if (($_POST['bootfile_url'] && !is_URL($_POST['bootfile_url'])))
+ $input_errors[] = gettext("A valid URL must be specified for the network bootfile.");
// Disallow a range that includes the virtualip
if (is_array($config['virtualip']['vip'])) {
@@ -316,9 +314,7 @@ if ($_POST) {
$config['dhcpdv6'][$if]['tftp'] = $_POST['tftp'];
$config['dhcpdv6'][$if]['ldap'] = $_POST['ldap'];
$config['dhcpdv6'][$if]['netboot'] = ($_POST['netboot']) ? true : false;
- $config['dhcpdv6'][$if]['nextserver'] = $_POST['nextserver'];
- $config['dhcpdv6'][$if]['filename'] = $_POST['filename'];
- $config['dhcpdv6'][$if]['rootpath'] = $_POST['rootpath'];
+ $config['dhcpdv6'][$if]['bootfile_url'] = $_POST['bootfile_url'];
$config['dhcpdv6'][$if]['dhcpv6leaseinlocaltime'] = $_POST['dhcpv6leaseinlocaltime'];
// Handle the custom options rowhelper
@@ -416,9 +412,7 @@ include("head.inc");
//document.iform.tftp.disabled = endis;
document.iform.ldap.disabled = endis;
document.iform.netboot.disabled = endis;
- document.iform.nextserver.disabled = endis;
- document.iform.filename.disabled = endis;
- document.iform.rootpath.disabled = endis;
+ document.iform.bootfile_url.disabled = endis;
}
function show_shownumbervalue() {
@@ -753,15 +747,8 @@ display_top_tabs($tab_array);
<input valign="middle" type="checkbox" value="yes" name="netboot" id="netboot" <?php if($pconfig['netboot']) echo " checked"; ?>>&nbsp;
<b><?=gettext("Enables network booting.");?></b>
<p>
- <?=gettext("Enter the IP of the"); ?> <b><?=gettext("next-server"); ?></b>
- <input name="nextserver" type="text" class="formfld unknown" id="nextserver" size="28" value="<?=htmlspecialchars($pconfig['nextserver']);?>">
- <?=gettext("and the filename");?>
- <input name="filename" type="text" class="formfld unknown" id="filename" size="28" value="<?=htmlspecialchars($pconfig['filename']);?>"><br>
- <?=gettext("Note: You need both a filename and a boot server configured for this to work!");?>
- <p>
- <?=gettext("Enter the"); ?> <b><?=gettext("root-path"); ?></b>-<?=gettext("string");?>
- <input name="rootpath" type="text" class="formfld unknown" id="rootpath" size="90" value="<?=htmlspecialchars($pconfig['rootpath']);?>"><br>
- <?=gettext("Note: string-format: iscsi:(servername):(protocol):(port):(LUN):targetname");?>
+ <?=gettext("Enter the Bootfile URL");?>
+ <input name="bootfile_url" type="text" class="formfld unknown" id="bootfile_url" size="28" value="<?=htmlspecialchars($pconfig['bootfile_url']);?>">
</div>
</td>
</tr>
OpenPOWER on IntegriCloud