From 1a4251f99e5d157f18608b4680274ed45cbfb98b Mon Sep 17 00:00:00 2001 From: NGUYEN Duy Cuong Date: Mon, 8 Mar 2021 23:59:07 +0800 Subject: [PATCH] Add verification to NOT upgrade BIOS for C93180YC-FX3S Cisco Nexus C93180YC-FX3S comes with BIOS 01.03, which if left alone will trigger an BIOS "upgrade" (actually a down- grade since 01.03 is newer than other 9.3.x) --- nx-os/poap/poap.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nx-os/poap/poap.py b/nx-os/poap/poap.py index 9865b840..d374495b 100755 --- a/nx-os/poap/poap.py +++ b/nx-os/poap/poap.py @@ -2041,6 +2041,13 @@ def is_bios_upgrade_needed(): except: poap_log("Could not find chassis family.") + try: + chassis_out = cli("show version") + if "C93180YC-FX3S" in chassis_out: + last_upgrade_bios = 1 + except: + poap_log("Could not find chassis family.") + poap_log("Comparing present BIOS version %d with base version %d" % (bios_number, last_upgrade_bios)) if bios_number < last_upgrade_bios: poap_log("Bios needs to be upgraded as switch is "