@@ -723,44 +723,46 @@ def edit(self, hardware_id, userdata=None, hostname=None, domain=None,
723723
724724 return self .hardware .editObject (obj , id = hardware_id )
725725
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 ):
732732 """Update hardware firmware.
733733
734734 This will cause the server to be unavailable for ~20 minutes.
735+ https://sldn.softlayer.com/reference/services/SoftLayer_Hardware_Server/createFirmwareUpdateTransaction/
735736
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.
738738 :param bool ipmi: Update the ipmi firmware.
739739 :param bool raid_controller: Update the raid controller firmware.
740740 :param bool bios: Update the bios firmware.
741741 :param bool hard_drive: Update the hard drive firmware.
742+ :param bool network: Update the network card firmware
742743
743744 Example::
744745
745746 # Check the servers active transactions to see progress
746747 result = mgr.update_firmware(hardware_id=1234)
747748 """
748749
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+ )
751754
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 ,):
757759 """Reflash hardware firmware.
758760
759761 This will cause the server to be unavailable for ~60 minutes.
760762 The firmware will not be upgraded but rather reflashed to the version installed.
763+ https://sldn.softlayer.com/reference/services/SoftLayer_Hardware_Server/createFirmwareReflashTransaction/
761764
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.
764766 :param bool ipmi: Reflash the ipmi firmware.
765767 :param bool raid_controller: Reflash the raid controller firmware.
766768 :param bool bios: Reflash the bios firmware.
0 commit comments