From c56faaf461b6d2bf5010ee6a4ce59cf761329fc0 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 35e5dc27..05dc9ceb 100644 --- a/nailgun/entities.py +++ b/nailgun/entities.py @@ -3899,6 +3899,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'}