diff --git a/device/alibaba/x86_64-alibaba_as13-32h-cl-r0/plugins/fwmgrutil.py b/device/alibaba/x86_64-alibaba_as13-32h-cl-r0/plugins/fwmgrutil.py index f4de3f6dccb1..c1fb40cebfb8 100644 --- a/device/alibaba/x86_64-alibaba_as13-32h-cl-r0/plugins/fwmgrutil.py +++ b/device/alibaba/x86_64-alibaba_as13-32h-cl-r0/plugins/fwmgrutil.py @@ -268,7 +268,8 @@ def firmware_upgrade(self, fw_type, fw_path, fw_extra=None): flash = fw_extra_str if fw_extra_str in [ "master", "slave", "both"] else "both" if fw_extra_str == "pingpong": - flash = "master" if current_bmc == "slave" else "slave" + # flash = "master" if current_bmc == "slave" else "slave" + flash = "slave" json_data["flash"] = flash # Install BMC @@ -290,6 +291,7 @@ def firmware_upgrade(self, fw_type, fw_path, fw_extra=None): r = requests.post(self.bmc_info_url, json=json_data) if r.status_code == 200 and 'success' in r.json().get('result'): if fw_extra_str == "pingpong": + flash = "master" if current_bmc == "slave" else "slave" self.__update_fw_upgrade_logger( "bmc_upgrade", "switch to boot from %s" % flash) self.set_bmc_boot_flash(flash) diff --git a/device/alibaba/x86_64-alibaba_as13-48f8h-cl-r0/plugins/fwmgrutil.py b/device/alibaba/x86_64-alibaba_as13-48f8h-cl-r0/plugins/fwmgrutil.py index 5b373689e2a7..80d2b960b37f 100644 --- a/device/alibaba/x86_64-alibaba_as13-48f8h-cl-r0/plugins/fwmgrutil.py +++ b/device/alibaba/x86_64-alibaba_as13-48f8h-cl-r0/plugins/fwmgrutil.py @@ -268,7 +268,8 @@ def firmware_upgrade(self, fw_type, fw_path, fw_extra=None): flash = fw_extra_str if fw_extra_str in [ "master", "slave", "both"] else "both" if fw_extra_str == "pingpong": - flash = "master" if current_bmc == "slave" else "slave" + #flash = "master" if current_bmc == "slave" else "slave" + flash = "slave" json_data["flash"] = flash # Install BMC @@ -290,6 +291,7 @@ def firmware_upgrade(self, fw_type, fw_path, fw_extra=None): r = requests.post(self.bmc_info_url, json=json_data) if r.status_code == 200 and 'success' in r.json().get('result'): if fw_extra_str == "pingpong": + flash = "master" if current_bmc == "slave" else "slave" self.__update_fw_upgrade_logger( "bmc_upgrade", "switch to boot from %s" % flash) self.set_bmc_boot_flash(flash) diff --git a/device/alibaba/x86_64-alibaba_as23-128h-cl-r0/plugins/fwmgrutil.py b/device/alibaba/x86_64-alibaba_as23-128h-cl-r0/plugins/fwmgrutil.py index 67f212aedac3..619aa7b173f3 100644 --- a/device/alibaba/x86_64-alibaba_as23-128h-cl-r0/plugins/fwmgrutil.py +++ b/device/alibaba/x86_64-alibaba_as23-128h-cl-r0/plugins/fwmgrutil.py @@ -268,7 +268,8 @@ def firmware_upgrade(self, fw_type, fw_path, fw_extra=None): flash = fw_extra_str if fw_extra_str in [ "master", "slave", "both"] else "both" if fw_extra_str == "pingpong": - flash = "master" if current_bmc == "slave" else "slave" + #flash = "master" if current_bmc == "slave" else "slave" + flash = "slave" json_data["flash"] = flash # Install BMC @@ -290,6 +291,7 @@ def firmware_upgrade(self, fw_type, fw_path, fw_extra=None): r = requests.post(self.bmc_info_url, json=json_data) if r.status_code == 200 and 'success' in r.json().get('result'): if fw_extra_str == "pingpong": + flash = "master" if current_bmc == "slave" else "slave" self.__update_fw_upgrade_logger( "bmc_upgrade", "switch to boot from %s" % flash) self.set_bmc_boot_flash(flash)