From 38ee099953cd8e579ae3878f0fe7181351256066 Mon Sep 17 00:00:00 2001 From: Satellite QE <115476073+Satellite-QE@users.noreply.github.com> Date: Mon, 24 Jul 2023 10:55:11 -0400 Subject: [PATCH] Add pxe_loader to Host (#966) (#970) Signed-off-by: Gaurav Talreja (cherry picked from commit e6f15ec01e4ab70920d71ac217c7cf7a19ad8bd4) Co-authored-by: Gaurav Talreja --- 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'}