summaryrefslogtreecommitdiffstats
path: root/modules-available/serversetup-bwlp-ipxe/page.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2019-03-26 13:45:30 +0100
committerSimon Rettberg2019-03-26 13:45:30 +0100
commitd4226999b124951b617d5ecae69f5061bfe0b726 (patch)
treec441e4e319c83029a83fa85d7230bfb5deed6b85 /modules-available/serversetup-bwlp-ipxe/page.inc.php
parentUpdate translations (diff)
downloadslx-admin-d4226999b124951b617d5ecae69f5061bfe0b726.tar.gz
slx-admin-d4226999b124951b617d5ecae69f5061bfe0b726.tar.xz
slx-admin-d4226999b124951b617d5ecae69f5061bfe0b726.zip
[serversetup-bwlp-ipxe] Check for valid IP address before import
Diffstat (limited to 'modules-available/serversetup-bwlp-ipxe/page.inc.php')
-rw-r--r--modules-available/serversetup-bwlp-ipxe/page.inc.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules-available/serversetup-bwlp-ipxe/page.inc.php b/modules-available/serversetup-bwlp-ipxe/page.inc.php
index 9f8aa431..150796a5 100644
--- a/modules-available/serversetup-bwlp-ipxe/page.inc.php
+++ b/modules-available/serversetup-bwlp-ipxe/page.inc.php
@@ -306,6 +306,10 @@ class Page_ServerSetup extends Page
}
if (empty($bootentryTable)) {
+ if (Property::getServerIp() === false || Property::getServerIp() === 'invalid') {
+ Message::addError('no-ip-set');
+ Util::redirect('?do=serversetup&show=address');
+ }
IPxe::importLegacyMenu(true);
$num = IPxe::importSubnetPxeMenus('/srv/openslx/tftp/pxelinux.cfg');
if ($num > 0) {