From fa45f095d5925ab990892ac3bb0e8d165eb63b04 Mon Sep 17 00:00:00 2001 From: dprital Date: Thu, 29 Dec 2022 17:36:18 +0000 Subject: [PATCH] [202205] Preserve copp tables through DB migration --- scripts/db_migrator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/db_migrator.py b/scripts/db_migrator.py index 4f3c8e5dc9..69a0b0831b 100755 --- a/scripts/db_migrator.py +++ b/scripts/db_migrator.py @@ -827,7 +827,8 @@ def common_migration_ops(self): new_cfg = {**init_cfg, **curr_cfg} self.configDB.set_entry(init_cfg_table, key, new_cfg) - self.migrate_copp_table() + if self.asic_type != "mellanox": + self.migrate_copp_table() if self.asic_type == "broadcom" and 'Force10-S6100' in self.hwsku: self.migrate_mgmt_ports_on_s6100() else: