From b7108f30d68030ad8cec7690fc31152bb72c878c Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 24 May 2013 19:19:21 +0200 Subject: [PATCH] BIO: Remove old stuff. --- webapp/__init__.py | 1 - webapp/handlers_boot.py | 24 ------------------------ 2 files changed, 25 deletions(-) diff --git a/webapp/__init__.py b/webapp/__init__.py index c613ac86..3788e5f6 100644 --- a/webapp/__init__.py +++ b/webapp/__init__.py @@ -181,7 +181,6 @@ class Application(tornado.web.Application): # Configurations (r"/menu.gpxe", MenuGPXEHandler), (r"/menu.cfg", MenuCfgHandler), - (r"/config/([0-9]+)/boot.gpxe", BootGPXEHandler), # Static files (r"/(boot\.png|premenu\.cfg|pxelinux\.0|menu\.c32|vesamenu\.c32)", diff --git a/webapp/handlers_boot.py b/webapp/handlers_boot.py index 5220837f..f56afb88 100644 --- a/webapp/handlers_boot.py +++ b/webapp/handlers_boot.py @@ -128,27 +128,3 @@ class MenuCfgHandler(BootBaseHandler): menu = self._menu_string(self.netboot.get_menu(1)) self.render("netboot/menu.cfg", menu=menu) - - -class BootGPXEHandler(BootBaseHandler): - def get(self, id): - config = self.netboot.get_config(id) - if not config: - raise tornado.web.HTTPError(404, "Configuration with ID '%s' was not found" % id) - - lines = ["#!gpxe", "imgfree",] - - line = "kernel -n img %s" % config.image1 - if line.endswith(".iso"): - line += " iso" - if config.args: - line += " %s" % config.args - lines.append(line) - - if config.image2: - lines.append("initrd -n img %s" % config.image2) - - lines.append("boot img") - - for line in lines: - self.write("%s\n" % line) -- 2.47.2