From 434a641026fa69c35a68d1950c3ad1cccd289a84 Mon Sep 17 00:00:00 2001 From: Sudharsan Dhamal Gopalarathnam Date: Tue, 12 Oct 2021 18:16:13 -0700 Subject: [PATCH] [DPB][Mellanox]Fixing DPB modes in Mellanox-SN2700-D40C8S8 (#8953) #### Why I did it Fixing https://github.com/Azure/sonic-buildimage/issues/8938 Fixing 1x10G DPB mode in Mellanox-SN2700-D40C8S8 SKU as it was causing sonic-cfggen to fail. #### How I did it Added correct mode format in hwksu.json in Mellanox-SN2700-D40C8S8 and updated platform.json for the new mode. #### How to verify it Using sonic-cfggen verify it works fine --- .../Mellanox-SN2700-D40C8S8/hwsku.json | 16 ++++++++-------- .../x86_64-mlnx_msn2700-r0/platform.json | 6 ++++-- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/device/mellanox/x86_64-mlnx_msn2700-r0/Mellanox-SN2700-D40C8S8/hwsku.json b/device/mellanox/x86_64-mlnx_msn2700-r0/Mellanox-SN2700-D40C8S8/hwsku.json index 1ac7b9e06324..63a3005ad591 100644 --- a/device/mellanox/x86_64-mlnx_msn2700-r0/Mellanox-SN2700-D40C8S8/hwsku.json +++ b/device/mellanox/x86_64-mlnx_msn2700-r0/Mellanox-SN2700-D40C8S8/hwsku.json @@ -1,31 +1,31 @@ { "interfaces": { "Ethernet0": { - "default_brkout_mode": "1x10G" + "default_brkout_mode": "4x10G[25G]" }, "Ethernet1": { - "default_brkout_mode": "1x10G" + "default_brkout_mode": "4x10G[25G]" }, "Ethernet2": { - "default_brkout_mode": "1x10G" + "default_brkout_mode": "4x10G[25G]" }, "Ethernet3": { - "default_brkout_mode": "1x10G" + "default_brkout_mode": "4x10G[25G]" }, "Ethernet4": { "default_brkout_mode": "1x100G[50G,40G,25G,10G]" }, "Ethernet8": { - "default_brkout_mode": "1x10G" + "default_brkout_mode": "4x10G[25G]" }, "Ethernet9": { - "default_brkout_mode": "1x10G" + "default_brkout_mode": "4x10G[25G]" }, "Ethernet10": { - "default_brkout_mode": "1x10G" + "default_brkout_mode": "4x10G[25G]" }, "Ethernet11": { - "default_brkout_mode": "1x10G" + "default_brkout_mode": "4x10G[25G]" }, "Ethernet12": { "default_brkout_mode": "1x100G[50G,40G,25G,10G]" diff --git a/device/mellanox/x86_64-mlnx_msn2700-r0/platform.json b/device/mellanox/x86_64-mlnx_msn2700-r0/platform.json index 063a211e785c..fab5ea6bf11c 100644 --- a/device/mellanox/x86_64-mlnx_msn2700-r0/platform.json +++ b/device/mellanox/x86_64-mlnx_msn2700-r0/platform.json @@ -381,7 +381,8 @@ "lanes": "0,1,2,3", "breakout_modes": { "1x100G[50G,40G,25G,10G]": ["etp1"], - "2x50G[25G,10G]": ["etp1a", "etp1b"] + "2x50G[25G,10G]": ["etp1a", "etp1b"], + "4x10G[25G]": ["etp1a", "etp1b", "etp1c", "etp1d"] } }, "Ethernet4": { @@ -397,7 +398,8 @@ "lanes": "8,9,10,11", "breakout_modes": { "1x100G[50G,40G,25G,10G]": ["etp3"], - "2x50G[25G,10G]": ["etp3a", "etp3b"] + "2x50G[25G,10G]": ["etp3a", "etp3b"], + "4x10G[25G]": ["etp3a", "etp3b", "etp3c", "etp3d"] } }, "Ethernet12": {