@@ -723,44 +723,46 @@ def edit(self, hardware_id, userdata=None, hostname=None, domain=None,
723
723
724
724
return self .hardware .editObject (obj , id = hardware_id )
725
725
726
- def update_firmware (self ,
727
- hardware_id ,
728
- ipmi = True ,
729
- raid_controller = True ,
730
- bios = True ,
731
- hard_drive = True ):
726
+ def update_firmware (self , hardware_id : int ,
727
+ ipmi : bool = True ,
728
+ raid_controller : bool = True ,
729
+ bios : bool = True ,
730
+ hard_drive : bool = True ,
731
+ network : bool = True ):
732
732
"""Update hardware firmware.
733
733
734
734
This will cause the server to be unavailable for ~20 minutes.
735
+ https://sldn.softlayer.com/reference/services/SoftLayer_Hardware_Server/createFirmwareUpdateTransaction/
735
736
736
- :param int hardware_id: The ID of the hardware to have its firmware
737
- updated.
737
+ :param int hardware_id: The ID of the hardware to have its firmware updated.
738
738
:param bool ipmi: Update the ipmi firmware.
739
739
:param bool raid_controller: Update the raid controller firmware.
740
740
:param bool bios: Update the bios firmware.
741
741
:param bool hard_drive: Update the hard drive firmware.
742
+ :param bool network: Update the network card firmware
742
743
743
744
Example::
744
745
745
746
# Check the servers active transactions to see progress
746
747
result = mgr.update_firmware(hardware_id=1234)
747
748
"""
748
749
749
- return self .hardware .createFirmwareUpdateTransaction (
750
- bool (ipmi ), bool (raid_controller ), bool (bios ), bool (hard_drive ), id = hardware_id )
750
+ return self .client .call (
751
+ 'SoftLayer_Hardware_Server' , 'createFirmwareUpdateTransaction' ,
752
+ bool (ipmi ), bool (raid_controller ), bool (bios ), bool (hard_drive ), bool (network ), id = hardware_id
753
+ )
751
754
752
- def reflash_firmware (self ,
753
- hardware_id ,
754
- ipmi = True ,
755
- raid_controller = True ,
756
- bios = True ):
755
+ def reflash_firmware (self , hardware_id : int ,
756
+ ipmi : bool = True ,
757
+ raid_controller : bool = True ,
758
+ bios : bool = True ,):
757
759
"""Reflash hardware firmware.
758
760
759
761
This will cause the server to be unavailable for ~60 minutes.
760
762
The firmware will not be upgraded but rather reflashed to the version installed.
763
+ https://sldn.softlayer.com/reference/services/SoftLayer_Hardware_Server/createFirmwareReflashTransaction/
761
764
762
- :param int hardware_id: The ID of the hardware to have its firmware
763
- reflashed.
765
+ :param int hardware_id: The ID of the hardware to have its firmware reflashed.
764
766
:param bool ipmi: Reflash the ipmi firmware.
765
767
:param bool raid_controller: Reflash the raid controller firmware.
766
768
:param bool bios: Reflash the bios firmware.
0 commit comments