Skip to content

Commit 10a359a

Browse files
[Mellanox] Change mellanox buffer migrator for new SKU Mellanox-SN2700-D40C8S8 (sonic-net#1470)
**- What I did** Change mellanox buffer migrator for new SKU Mellanox-SN2700-D40C8S8 **- How I did it** New SKU Mellanox-SN2700-D40C8S8 will reuse buffer configuration of Mellanox-SN2700-D48C8 **- How to verify it** Run sonic-mgmt qos test and pass
1 parent 38c8e00 commit 10a359a

10 files changed

+5933
-2
lines changed

scripts/mellanox_buffer_migrator.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def __init__(self, configDB):
104104
self.spc2_platforms = ["x86_64-mlnx_msn3700-r0", "x86_64-mlnx_msn3700c-r0"]
105105
self.spc3_platforms = ["x86_64-mlnx_msn4600-r0", "x86_64-mlnx_msn4600c-r0", "x86_64-mlnx_msn4700-r0"]
106106

107-
msftskus = ["Mellanox-SN2700", "Mellanox-SN2700-C28D8", "Mellanox-SN2700-D48C8",
107+
msftskus = ["Mellanox-SN2700", "Mellanox-SN2700-C28D8", "Mellanox-SN2700-D48C8", "Mellanox-SN2700-D40C8S8",
108108
"Mellanox-SN3800-C64", "Mellanox-SN3800-D24C52", "Mellanox-SN3800-D112C8", "Mellanox-SN3800-D28C50"]
109109

110110
self.is_msft_sku = self.sku in msftskus
@@ -328,9 +328,11 @@ def __init__(self, configDB):
328328
"pool_convert_map": {
329329
"spc1_t0_pool_sku_map": {"Mellanox-SN2700-C28D8": "spc1_2700-d48c8_t0_pool_shp",
330330
"Mellanox-SN2700-D48C8": "spc1_2700-d48c8_t0_pool_shp",
331+
"Mellanox-SN2700-D40C8S8": "spc1_2700-d48c8_t0_pool_shp",
331332
"Mellanox-SN2700": "spc1_2700_t0_pool_shp"},
332333
"spc1_t1_pool_sku_map": {"Mellanox-SN2700-C28D8": "spc1_2700-d48c8_t1_pool_shp",
333334
"Mellanox-SN2700-D48C8": "spc1_2700-d48c8_t1_pool_shp",
335+
"Mellanox-SN2700-D40C8S8": "spc1_2700-d48c8_t1_pool_shp",
334336
"Mellanox-SN2700": "spc1_2700_t1_pool_shp"}
335337
},
336338
"pool_mapped_from_old_version": {
@@ -379,7 +381,7 @@ def __init__(self, configDB):
379381

380382
"headrooms": {
381383
"mapping": {
382-
"default": ("skumap", {"Mellanox-SN2700": "msft", "Mellanox-SN2700-C28D8": "msft", "Mellanox-SN2700-D48C8": "msft"})
384+
"default": ("skumap", {"Mellanox-SN2700": "msft", "Mellanox-SN2700-C28D8": "msft", "Mellanox-SN2700-D48C8": "msft", "Mellanox-SN2700-D40C8S8": "msft"})
383385
},
384386
"spc1_headroom": {
385387
"default": ("version_1_0_4", "spc1_headroom"),
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{
2+
}

tests/db_migrator_input/appl_db/mellanox-sn2700-d40c8s8-t0-version_2_0_0.json

+697
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{
2+
}

tests/db_migrator_input/appl_db/mellanox-sn2700-d40c8s8-t1-version_2_0_0.json

+790
Large diffs are not rendered by default.

tests/db_migrator_input/config_db/mellanox-sn2700-d40c8s8-t0-version_1_0_5.json

+1,060
Large diffs are not rendered by default.

tests/db_migrator_input/config_db/mellanox-sn2700-d40c8s8-t0-version_2_0_0.json

+1,061
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)