code: def activate_firmware_and_wait(self, rollback_override=None,
                                     timeout=2, interval=1):
          
          try:
              self.activate_firmware(rollback_override)
          except CompletionCodeError as e:
              if e.cc == CC_LONG_DURATION_CMD_IN_PROGRESS:
                  self.wait_for_long_duration_command(
                              constants.CMDID_HPM_ACTIVATE_FIRMWARE,
                              timeout, interval)
              else:
                  raise HpmError('activate_firmware CC=0x%02x' % e.cc)
          except IpmiTimeoutError:
              # controller is in reset and flashed new firmware
              pass
docs: Activate the new uploaded firmware and wait for
              long running command.