mirror of
https://opendev.org/x/pyghmi
synced 2025-01-15 04:07:48 +00:00
Support setting BMC hostname in redfish
Provide write access to this currently read only property. Change-Id: I4e4fb7dc836e6657add73205ec2a95977111ffe1
This commit is contained in:
parent
5860b3796a
commit
142ff10cb2
@ -996,6 +996,10 @@ class Command(object):
|
||||
netcfg = self._do_web_request(self._bmcnicurl)
|
||||
return netcfg['HostName']
|
||||
|
||||
def set_hostname(self, hostname):
|
||||
self._do_web_request(self._bmcnicurl,
|
||||
{'HostName': hostname}, 'PATCH')
|
||||
|
||||
def get_firmware(self, components=()):
|
||||
try:
|
||||
for firminfo in self.oem.get_firmware_inventory(components):
|
||||
|
Loading…
x
Reference in New Issue
Block a user