From 94c04c21fb1afeee33e88a660afa7230fe1a37bb Mon Sep 17 00:00:00 2001 From: Gaurav Talreja Date: Mon, 24 Jul 2023 15:25:18 +0530 Subject: [PATCH] Add pxe_loader to Host (#966) Signed-off-by: Gaurav Talreja (cherry picked from commit e6f15ec01e4ab70920d71ac217c7cf7a19ad8bd4) --- nailgun/entities.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/nailgun/entities.py b/nailgun/entities.py index f3d2a582..f0d5e06b 100644 --- a/nailgun/entities.py +++ b/nailgun/entities.py @@ -3707,6 +3707,25 @@ def __init__(self, server_config=None, **kwargs): 'traces_status': entity_fields.IntegerField(min_val=-1, max_val=2), 'traces_status_label': entity_fields.StringField(), 'uuid': entity_fields.StringField(), + 'pxe_loader': entity_fields.StringField( + choices=( + 'PXELinux BIOS', + 'PXELinux UEFI', + 'Grub UEFI', + 'Grub2 BIOS' + 'Grub2 ELF' + 'Grub2 UEFI' + 'Grub2 UEFI SecureBoot' + 'Grub2 UEFI HTTP' + 'Grub2 UEFI HTTPS' + 'Grub2 UEFI HTTPS SecureBoot' + 'iPXE Embedded' + 'iPXE UEFI HTTP' + 'iPXE Chain BIOS' + 'iPXE Chain UEFI', + ), + default='PXELinux BIOS', + ), } self._owner_type = None # actual ``owner_type`` value self._meta = {'api_path': 'api/v2/hosts'}