Skip to content

Commit

Permalink
Add pxe_loader to Host (#966)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Talreja <gtalreja@redhat.com>
(cherry picked from commit e6f15ec)
  • Loading branch information
Gauravtalreja1 authored and web-flow committed Jul 24, 2023
1 parent ab472d8 commit 94c04c2
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions nailgun/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'}
Expand Down

0 comments on commit 94c04c2

Please sign in to comment.