Skip to content

Commit

Permalink
[202205] Preserve copp tables through DB migration (#2524) (#2574)
Browse files Browse the repository at this point in the history
- What I did
Preserve COPP table contents through DB migration. (Mellanox only)

- How I did it
Skipped deleting of COPP tables in DB migrator

- How to verify it
Observe COPP table contents are preserved right after reboot
  • Loading branch information
dprital committed Jan 4, 2023
1 parent c9ed09d commit 3cb66b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/db_migrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,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:
Expand Down

0 comments on commit 3cb66b4

Please sign in to comment.