mirror of
https://opendev.org/x/pyghmi
synced 2025-02-20 12:30:48 +00:00
Add optical and bios aliases for boot devices
Notably, optical was the canonical output but not a recognized input. 'safe' and 'bios' added by request as well. Change-Id: I061bbc6bce47fcdd2f3b7e9a3d3fb5f74569df15
This commit is contained in:
parent
cc8e5b56ab
commit
7228cd832d
@ -27,15 +27,19 @@ boot_devices = {
|
||||
'network': 4,
|
||||
'pxe': 4,
|
||||
'hd': 8,
|
||||
'safe': 0xc,
|
||||
'cd': 0x14,
|
||||
'cdrom': 0x14,
|
||||
'optical': 0x14,
|
||||
'dvd': 0x14,
|
||||
'floppy': 0x3c,
|
||||
'default': 0x0,
|
||||
'setup': 0x18,
|
||||
'bios': 0x18,
|
||||
'f1': 0x18,
|
||||
1: 'network',
|
||||
2: 'hd',
|
||||
3: 'safe',
|
||||
5: 'optical',
|
||||
6: 'setup',
|
||||
0: 'default'
|
||||
@ -213,9 +217,10 @@ class Command(object):
|
||||
"""Set boot device to use on next reboot
|
||||
|
||||
:param bootdev:
|
||||
*net -- Request network boot
|
||||
*network -- Request network boot
|
||||
*hd -- Boot from hard drive
|
||||
*optical -- boot from CD or DVD drive
|
||||
*safe -- Boot from hard drive, requesting 'safe mode'
|
||||
*optical -- boot from CD/DVD/BD drive
|
||||
*setup -- Boot into setup utility
|
||||
*default -- remove any IPMI directed boot device
|
||||
request
|
||||
|
Loading…
x
Reference in New Issue
Block a user