From 18263c99dd51b8e833dbb16fd230cb1a3bee6678 Mon Sep 17 00:00:00 2001 From: Sangita Maity Date: Fri, 26 Feb 2021 00:13:33 -0800 Subject: [PATCH] =?UTF-8?q?[DPB|master]=20Update=20Dynamic=20Port=20Breako?= =?UTF-8?q?ut=20Logic=20for=20flexible=20alias=20support=20a=E2=80=A6=20(#?= =?UTF-8?q?6831)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To fix [DPB| wrong aliases for interfaces](https://github.com/Azure/sonic-buildimage/issues/6024) issue, implimented flexible alias support [design doc](https://github.com/Azure/SONiC/pull/749) > [[dpb|config] Fix the validation logic of breakout mode](https://github.com/Azure/sonic-utilities/pull/1440) depends on this #### How I did it 1. Removed `"alias_at_lanes"` from port-configuration file(i.e. platfrom.json) 2. Added dictionary to "breakout_modes" values. This defines the breakout modes available on the platform for this parent port, and it maps to the alias list. The alias list presents the alias names for individual ports in order under this breakout mode. ``` { "interfaces": { "Ethernet0": { "index": "1,1,1,1", "lanes": "0,1,2,3", "breakout_modes": { "1x100G[40G]": ["Eth1"], "2x50G": ["Eth1/1", "Eth1/2"], "4x25G[10G]": ["Eth1/1", "Eth1/2", "Eth1/3", "Eth1/4"], "2x25G(2)+1x50G(2)": ["Eth1/1", "Eth1/2", "Eth1/3"], "1x50G(2)+2x25G(2)": ["Eth1/1", "Eth1/2", "Eth1/3"] } } } ``` #### How to verify it `config interface breakout` Signed-off-by: Sangita Maity --- .../platform.json | 224 ++++++--- .../platform.json | 455 +++++++++++++----- .../x86_64-cel_seastone-r0/platform.json | 226 ++++++--- .../x86_64-mlnx_msn2010-r0/platform.json | 118 +++-- .../x86_64-mlnx_msn2100-r0/platform.json | 112 +++-- .../x86_64-mlnx_msn2410-r0/platform.json | 288 ++++++----- .../x86_64-mlnx_msn2700-r0/platform.json | 192 +++++--- .../x86_64-mlnx_msn3420-r0/platform.json | 324 ++++++++----- .../x86_64-mlnx_msn3700-r0/platform.json | 224 ++++++--- .../x86_64-mlnx_msn3700c-r0/platform.json | 224 ++++++--- .../x86_64-mlnx_msn3800-r0/platform.json | 384 ++++++++++----- .../x86_64-mlnx_msn4410-r0/platform.json | 224 ++++++--- .../x86_64-mlnx_msn4600c-r0/platform.json | 394 ++++++++++----- .../x86_64-mlnx_msn4700-r0/platform.json | 228 ++++++--- platform/vs/docker-sonic-vs/platform.json | 284 ++++++++--- src/sonic-config-engine/portconfig.py | 23 +- .../tests/sample_hwsku.json | 4 +- .../tests/sample_output/platform_output.json | 224 ++++----- .../tests/sample_platform.json | 285 ++++++++--- .../tests/platform_json_checker | 16 +- src/sonic-utilities | 2 +- 21 files changed, 3048 insertions(+), 1407 deletions(-) diff --git a/device/barefoot/x86_64-accton_wedge100bf_32x-r0/platform.json b/device/barefoot/x86_64-accton_wedge100bf_32x-r0/platform.json index 0b68edf161..b7f3756b1b 100644 --- a/device/barefoot/x86_64-accton_wedge100bf_32x-r0/platform.json +++ b/device/barefoot/x86_64-accton_wedge100bf_32x-r0/platform.json @@ -3,194 +3,290 @@ "Ethernet0": { "index": "1,1,1,1", "lanes": "0,1,2,3", - "alias_at_lanes": "Ethernet0,Ethernet1,Ethernet2,Ethernet3", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet0"], + "2x50G": ["Ethernet0", "Ethernet2"], + "4x25G[10G]": ["Ethernet0", "Ethernet1", "Ethernet2", "Ethernet3"] + } }, "Ethernet4": { "index": "2,2,2,2", "lanes": "4,5,6,7", - "alias_at_lanes": "Ethernet4,Ethernet5,Ethernet6,Ethernet7", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet4"], + "2x50G": ["Ethernet4", "Ethernet6"], + "4x25G[10G]": ["Ethernet4", "Ethernet5", "Ethernet6", "Ethernet7"] + } }, "Ethernet8": { "index": "3,3,3,3", "lanes": "8,9,10,11", - "alias_at_lanes": "Ethernet8,Ethernet9,Ethernet10,Ethernet11", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet8"], + "2x50G": ["Ethernet8", "Ethernet10"], + "4x25G[10G]": ["Ethernet8", "Ethernet9", "Ethernet10", "Ethernet11"] + } }, "Ethernet12": { "index": "4,4,4,4", "lanes": "12,13,14,15", - "alias_at_lanes": "Ethernet12,Ethernet13,Ethernet14,Ethernet15", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet12"], + "2x50G": ["Ethernet12", "Ethernet14"], + "4x25G[10G]": ["Ethernet12", "Ethernet13", "Ethernet14", "Ethernet15"] + } }, "Ethernet16": { "index": "5,5,5,5", "lanes": "16,17,18,19", - "alias_at_lanes": "Ethernet16,Ethernet17,Ethernet18,Ethernet19", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet16"], + "2x50G": ["Ethernet16", "Ethernet18"], + "4x25G[10G]": ["Ethernet16", "Ethernet17", "Ethernet18", "Ethernet19"] + } }, "Ethernet20": { "index": "6,6,6,6", "lanes": "20,21,22,23", - "alias_at_lanes": "Ethernet20,Ethernet21,Ethernet22,Ethernet23", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet20"], + "2x50G": ["Ethernet20", "Ethernet22"], + "4x25G[10G]": ["Ethernet20", "Ethernet21", "Ethernet22", "Ethernet23"] + } }, "Ethernet24": { "index": "7,7,7,7", "lanes": "24,25,26,27", - "alias_at_lanes": "Ethernet24,Ethernet25,Ethernet26,Ethernet27", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet24"], + "2x50G": ["Ethernet24", "Ethernet26"], + "4x25G[10G]": ["Ethernet24", "Ethernet25", "Ethernet26", "Ethernet27"] + } }, "Ethernet28": { "index": "8,8,8,8", "lanes": "28,29,30,31", - "alias_at_lanes": "Ethernet28,Ethernet29,Ethernet30,Ethernet31", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet28"], + "2x50G": ["Ethernet28", "Ethernet30"], + "4x25G[10G]": ["Ethernet28", "Ethernet29", "Ethernet30", "Ethernet31"] + } }, "Ethernet32": { "index": "9,9,9,9", "lanes": "32,33,34,35", - "alias_at_lanes": "Ethernet32,Ethernet33,Ethernet34,Ethernet35", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet32"], + "2x50G": ["Ethernet32", "Ethernet34"], + "4x25G[10G]": ["Ethernet32", "Ethernet33", "Ethernet34", "Ethernet35"] + } }, "Ethernet36": { "index": "10,10,10,10", "lanes": "36,37,38,39", - "alias_at_lanes": "Ethernet36,Ethernet37,Ethernet38,Ethernet39", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet36"], + "2x50G": ["Ethernet36", "Ethernet38"], + "4x25G[10G]": ["Ethernet36", "Ethernet37", "Ethernet38", "Ethernet39"] + } }, "Ethernet40": { "index": "11,11,11,11", "lanes": "40,41,42,43", - "alias_at_lanes": "Ethernet40,Ethernet41,Ethernet42,Ethernet43", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet40"], + "2x50G": ["Ethernet40", "Ethernet42"], + "4x25G[10G]": ["Ethernet40", "Ethernet41", "Ethernet42", "Ethernet43"] + } }, "Ethernet44": { "index": "12,12,12,12", "lanes": "44,45,46,47", - "alias_at_lanes": "Ethernet44,Ethernet45,Ethernet46,Ethernet47", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet44"], + "2x50G": ["Ethernet44", "Ethernet46"], + "4x25G[10G]": ["Ethernet44", "Ethernet45", "Ethernet46", "Ethernet47"] + } }, "Ethernet48": { "index": "13,13,13,13", "lanes": "48,49,50,51", - "alias_at_lanes": "Ethernet48,Ethernet49,Ethernet50,Ethernet51", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet48"], + "2x50G": ["Ethernet48", "Ethernet50"], + "4x25G[10G]": ["Ethernet48", "Ethernet49", "Ethernet50", "Ethernet51"] + } }, "Ethernet52": { "index": "14,14,14,14", "lanes": "52,53,54,55", - "alias_at_lanes": "Ethernet52,Ethernet53,Ethernet54,Ethernet55", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet52"], + "2x50G": ["Ethernet52", "Ethernet54"], + "4x25G[10G]": ["Ethernet52", "Ethernet53", "Ethernet54", "Ethernet55"] + } }, "Ethernet56": { "index": "15,15,15,15", "lanes": "56,57,58,59", - "alias_at_lanes": "Ethernet56,Ethernet57,Ethernet58,Ethernet59", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet56"], + "2x50G": ["Ethernet56", "Ethernet58"], + "4x25G[10G]": ["Ethernet56", "Ethernet57", "Ethernet58", "Ethernet59"] + } }, "Ethernet60": { "index": "16,16,16,16", "lanes": "60,61,62,63", - "alias_at_lanes": "Ethernet60,Ethernet61,Ethernet62,Ethernet63", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet60"], + "2x50G": ["Ethernet60", "Ethernet62"], + "4x25G[10G]": ["Ethernet60", "Ethernet61", "Ethernet62", "Ethernet63"] + } }, "Ethernet64": { "index": "17,17,17,17", "lanes": "64,65,66,67", - "alias_at_lanes": "Ethernet64,Ethernet65,Ethernet66,Ethernet67", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet64"], + "2x50G": ["Ethernet64", "Ethernet66"], + "4x25G[10G]": ["Ethernet64", "Ethernet65", "Ethernet66", "Ethernet67"] + } }, "Ethernet68": { "index": "18,18,18,18", "lanes": "68,69,70,71", - "alias_at_lanes": "Ethernet68,Ethernet69,Ethernet70,Ethernet71", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet68"], + "2x50G": ["Ethernet68", "Ethernet70"], + "4x25G[10G]": ["Ethernet68", "Ethernet69", "Ethernet70", "Ethernet71"] + } }, "Ethernet72": { "index": "19,19,19,19", "lanes": "72,73,74,75", - "alias_at_lanes": "Ethernet72,Ethernet73,Ethernet74,Ethernet75", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet72"], + "2x50G": ["Ethernet72", "Ethernet74"], + "4x25G[10G]": ["Ethernet72", "Ethernet73", "Ethernet74", "Ethernet75"] + } }, "Ethernet76": { "index": "20,20,20,20", "lanes": "76,77,78,79", - "alias_at_lanes": "Ethernet76,Ethernet77,Ethernet78,Ethernet79", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet76"], + "2x50G": ["Ethernet76", "Ethernet78"], + "4x25G[10G]": ["Ethernet76", "Ethernet77", "Ethernet78", "Ethernet79"] + } }, "Ethernet80": { "index": "21,21,21,21", "lanes": "80,81,82,83", - "alias_at_lanes": "Ethernet80,Ethernet81,Ethernet82,Ethernet83", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet80"], + "2x50G": ["Ethernet80", "Ethernet82"], + "4x25G[10G]": ["Ethernet80", "Ethernet81", "Ethernet82", "Ethernet83"] + } }, "Ethernet84": { "index": "22,22,22,22", "lanes": "84,85,86,87", - "alias_at_lanes": "Ethernet84,Ethernet85,Ethernet86,Ethernet87", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet84"], + "2x50G": ["Ethernet84", "Ethernet86"], + "4x25G[10G]": ["Ethernet84", "Ethernet85", "Ethernet86", "Ethernet87"] + } }, "Ethernet88": { "index": "23,23,23,23", "lanes": "88,89,90,91", - "alias_at_lanes": "Ethernet88,Ethernet89,Ethernet90,Ethernet91", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet88"], + "2x50G": ["Ethernet88", "Ethernet90"], + "4x25G[10G]": ["Ethernet88", "Ethernet89", "Ethernet90", "Ethernet91"] + } }, "Ethernet92": { "index": "24,24,24,24", "lanes": "92,93,94,95", - "alias_at_lanes": "Ethernet92,Ethernet93,Ethernet94,Ethernet95", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet92"], + "2x50G": ["Ethernet92", "Ethernet94"], + "4x25G[10G]": ["Ethernet92", "Ethernet93", "Ethernet94", "Ethernet95"] + } }, "Ethernet96": { "index": "25,25,25,25", "lanes": "96,97,98,99", - "alias_at_lanes": "Ethernet96,Ethernet97,Ethernet98,Ethernet99", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet96"], + "2x50G": ["Ethernet96", "Ethernet98"], + "4x25G[10G]": ["Ethernet96", "Ethernet97", "Ethernet98", "Ethernet99"] + } }, "Ethernet100": { "index": "26,26,26,26", "lanes": "100,101,102,103", - "alias_at_lanes": "Ethernet100,Ethernet101,Ethernet102,Ethernet103", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet100"], + "2x50G": ["Ethernet100", "Ethernet102"], + "4x25G[10G]": ["Ethernet100", "Ethernet101", "Ethernet102", "Ethernet103"] + } }, "Ethernet104": { "index": "27,27,27,27", "lanes": "104,105,106,107", - "alias_at_lanes": "Ethernet104,Ethernet105,Ethernet106,Ethernet107", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet104"], + "2x50G": ["Ethernet104", "Ethernet106"], + "4x25G[10G]": ["Ethernet104", "Ethernet105", "Ethernet106", "Ethernet107"] + } }, "Ethernet108": { "index": "28,28,28,28", "lanes": "108,109,110,111", - "alias_at_lanes": "Ethernet108,Ethernet109,Ethernet110,Ethernet111", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet108"], + "2x50G": ["Ethernet108", "Ethernet110"], + "4x25G[10G]": ["Ethernet108", "Ethernet109", "Ethernet110", "Ethernet111"] + } }, "Ethernet112": { "index": "29,29,29,29", "lanes": "112,113,114,115", - "alias_at_lanes": "Ethernet112,Ethernet113,Ethernet114,Ethernet115", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet112"], + "2x50G": ["Ethernet112", "Ethernet114"], + "4x25G[10G]": ["Ethernet112", "Ethernet113", "Ethernet112", "Ethernet113"] + } }, "Ethernet116": { "index": "30,30,30,30", "lanes": "116,117,118,119", - "alias_at_lanes": "Ethernet116,Ethernet117,Ethernet118,Ethernet119", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet116"], + "2x50G": ["Ethernet116", "Ethernet118"], + "4x25G[10G]": ["Ethernet116", "Ethernet117", "Ethernet118", "Ethernet119"] + } }, "Ethernet120": { "index": "31,31,31,31", "lanes": "120,121,122,123", - "alias_at_lanes": "Ethernet120,Ethernet121,Ethernet122,Ethernet123", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet120"], + "2x50G": ["Ethernet120", "Ethernet122"], + "4x25G[10G]": ["Ethernet120", "Ethernet121", "Ethernet122", "Ethernet123"] + } }, "Ethernet124": { "index": "32,32,32,32", "lanes": "124,125,126,127", - "alias_at_lanes": "Ethernet124,Ethernet125,Ethernet126,Ethernet127", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet124"], + "2x50G": ["Ethernet124", "Ethernet126"], + "4x25G[10G]": ["Ethernet124", "Ethernet125", "Ethernet126", "Ethernet127"] + } } } } diff --git a/device/barefoot/x86_64-accton_wedge100bf_65x-r0/platform.json b/device/barefoot/x86_64-accton_wedge100bf_65x-r0/platform.json index 866706a283..a2394135c0 100644 --- a/device/barefoot/x86_64-accton_wedge100bf_65x-r0/platform.json +++ b/device/barefoot/x86_64-accton_wedge100bf_65x-r0/platform.json @@ -3,392 +3,587 @@ "Ethernet0": { "index": "1,1,1,1", "lanes": "0,1,2,3", - "alias_at_lanes": "Ethernet0,Ethernet1,Ethernet2,Ethernet3", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet0"], + "2x50G": ["Ethernet0", "Ethernet2"], + "4x25G[10G]": ["Ethernet0", "Ethernet1", "Ethernet2", "Ethernet3"] + } }, "Ethernet4": { "index": "2,2,2,2", "lanes": "4,5,6,7", - "alias_at_lanes": "Ethernet4,Ethernet5,Ethernet6,Ethernet7", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet4"], + "2x50G": ["Ethernet4", "Ethernet6"], + "4x25G[10G]": ["Ethernet4", "Ethernet5", "Ethernet6", "Ethernet7"] + } }, "Ethernet8": { "index": "3,3,3,3", "lanes": "8,9,10,11", - "alias_at_lanes": "Ethernet8,Ethernet9,Ethernet10,Ethernet11", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet8"], + "2x50G": ["Ethernet8", "Ethernet10"], + "4x25G[10G]": ["Ethernet8", "Ethernet9", "Ethernet10", "Ethernet11"] + } }, "Ethernet12": { "index": "4,4,4,4", "lanes": "12,13,14,15", - "alias_at_lanes": "Ethernet12,Ethernet13,Ethernet14,Ethernet15", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet12"], + "2x50G": ["Ethernet12", "Ethernet14"], + "4x25G[10G]": ["Ethernet12", "Ethernet13", "Ethernet14", "Ethernet15"] + } }, "Ethernet16": { "index": "5,5,5,5", "lanes": "16,17,18,19", - "alias_at_lanes": "Ethernet16,Ethernet17,Ethernet18,Ethernet19", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet16"], + "2x50G": ["Ethernet16", "Ethernet18"], + "4x25G[10G]": ["Ethernet16", "Ethernet17", "Ethernet18", "Ethernet19"] + } }, "Ethernet20": { "index": "6,6,6,6", "lanes": "20,21,22,23", - "alias_at_lanes": "Ethernet20,Ethernet21,Ethernet22,Ethernet23", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet20"], + "2x50G": ["Ethernet20", "Ethernet22"], + "4x25G[10G]": ["Ethernet20", "Ethernet21", "Ethernet22", "Ethernet23"] + } }, "Ethernet24": { "index": "7,7,7,7", "lanes": "24,25,26,27", - "alias_at_lanes": "Ethernet24,Ethernet25,Ethernet26,Ethernet27", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet24"], + "2x50G": ["Ethernet24", "Ethernet26"], + "4x25G[10G]": ["Ethernet24", "Ethernet25", "Ethernet26", "Ethernet27"] + } }, "Ethernet28": { "index": "8,8,8,8", "lanes": "28,29,30,31", - "alias_at_lanes": "Ethernet28,Ethernet29,Ethernet30,Ethernet31", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet28"], + "2x50G": ["Ethernet28", "Ethernet30"], + "4x25G[10G]": ["Ethernet28", "Ethernet29", "Ethernet30", "Ethernet31"] + } }, "Ethernet32": { "index": "9,9,9,9", "lanes": "32,33,34,35", - "alias_at_lanes": "Ethernet32,Ethernet33,Ethernet34,Ethernet35", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet32"], + "2x50G": ["Ethernet32", "Ethernet34"], + "4x25G[10G]": ["Ethernet32", "Ethernet33", "Ethernet34", "Ethernet35"] + } }, "Ethernet36": { "index": "10,10,10,10", "lanes": "36,37,38,39", - "alias_at_lanes": "Ethernet36,Ethernet37,Ethernet38,Ethernet39", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet36"], + "2x50G": ["Ethernet36", "Ethernet38"], + "4x25G[10G]": ["Ethernet36", "Ethernet37", "Ethernet38", "Ethernet39"] + } }, "Ethernet40": { "index": "11,11,11,11", "lanes": "40,41,42,43", - "alias_at_lanes": "Ethernet40,Ethernet41,Ethernet42,Ethernet43", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet40"], + "2x50G": ["Ethernet40", "Ethernet42"], + "4x25G[10G]": ["Ethernet40", "Ethernet41", "Ethernet42", "Ethernet43"] + } }, "Ethernet44": { "index": "12,12,12,12", "lanes": "44,45,46,47", - "alias_at_lanes": "Ethernet44,Ethernet45,Ethernet46,Ethernet47", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet44"], + "2x50G": ["Ethernet44", "Ethernet46"], + "4x25G[10G]": ["Ethernet44", "Ethernet45", "Ethernet46", "Ethernet47"] + } }, "Ethernet48": { "index": "13,13,13,13", "lanes": "48,49,50,51", - "alias_at_lanes": "Ethernet48,Ethernet49,Ethernet50,Ethernet51", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet48"], + "2x50G": ["Ethernet48", "Ethernet50"], + "4x25G[10G]": ["Ethernet48", "Ethernet49", "Ethernet50", "Ethernet51"] + } }, "Ethernet52": { "index": "14,14,14,14", "lanes": "52,53,54,55", - "alias_at_lanes": "Ethernet52,Ethernet53,Ethernet54,Ethernet55", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet52"], + "2x50G": ["Ethernet52", "Ethernet54"], + "4x25G[10G]": ["Ethernet52", "Ethernet53", "Ethernet54", "Ethernet55"] + } }, "Ethernet56": { "index": "15,15,15,15", "lanes": "56,57,58,59", - "alias_at_lanes": "Ethernet56,Ethernet57,Ethernet58,Ethernet59", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet56"], + "2x50G": ["Ethernet56", "Ethernet58"], + "4x25G[10G]": ["Ethernet56", "Ethernet57", "Ethernet58", "Ethernet59"] + } }, "Ethernet60": { "index": "16,16,16,16", "lanes": "60,61,62,63", - "alias_at_lanes": "Ethernet60,Ethernet61,Ethernet62,Ethernet63", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet60"], + "2x50G": ["Ethernet60", "Ethernet62"], + "4x25G[10G]": ["Ethernet60", "Ethernet61", "Ethernet62", "Ethernet63"] + } }, "Ethernet64": { "index": "17,17,17,17", "lanes": "64,65,66,67", - "alias_at_lanes": "Ethernet64,Ethernet65,Ethernet66,Ethernet67", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet64"], + "2x50G": ["Ethernet64", "Ethernet66"], + "4x25G[10G]": ["Ethernet64", "Ethernet65", "Ethernet66", "Ethernet67"] + } }, "Ethernet68": { "index": "18,18,18,18", "lanes": "68,69,70,71", - "alias_at_lanes": "Ethernet68,Ethernet69,Ethernet70,Ethernet71", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet68"], + "2x50G": ["Ethernet68", "Ethernet70"], + "4x25G[10G]": ["Ethernet68", "Ethernet69", "Ethernet70", "Ethernet71"] + } }, "Ethernet72": { "index": "19,19,19,19", "lanes": "72,73,74,75", - "alias_at_lanes": "Ethernet72,Ethernet73,Ethernet74,Ethernet75", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet72"], + "2x50G": ["Ethernet72", "Ethernet74"], + "4x25G[10G]": ["Ethernet72", "Ethernet73", "Ethernet74", "Ethernet75"] + } }, "Ethernet76": { "index": "20,20,20,20", "lanes": "76,77,78,79", - "alias_at_lanes": "Ethernet76,Ethernet77,Ethernet78,Ethernet79", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet76"], + "2x50G": ["Ethernet76", "Ethernet78"], + "4x25G[10G]": ["Ethernet76", "Ethernet77", "Ethernet78", "Ethernet79"] + } }, "Ethernet80": { "index": "21,21,21,21", "lanes": "80,81,82,83", - "alias_at_lanes": "Ethernet80,Ethernet81,Ethernet82,Ethernet83", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet80"], + "2x50G": ["Ethernet80", "Ethernet82"], + "4x25G[10G]": ["Ethernet80", "Ethernet81", "Ethernet82", "Ethernet83"] + } }, "Ethernet84": { "index": "22,22,22,22", "lanes": "84,85,86,87", - "alias_at_lanes": "Ethernet84,Ethernet85,Ethernet86,Ethernet87", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet84"], + "2x50G": ["Ethernet84", "Ethernet86"], + "4x25G[10G]": ["Ethernet84", "Ethernet85", "Ethernet86", "Ethernet87"] + } }, "Ethernet88": { "index": "23,23,23,23", "lanes": "88,89,90,91", - "alias_at_lanes": "Ethernet88,Ethernet89,Ethernet90,Ethernet91", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet88"], + "2x50G": ["Ethernet88", "Ethernet90"], + "4x25G[10G]": ["Ethernet88", "Ethernet89", "Ethernet90", "Ethernet91"] + } }, "Ethernet92": { "index": "24,24,24,24", "lanes": "92,93,94,95", - "alias_at_lanes": "Ethernet92,Ethernet93,Ethernet94,Ethernet95", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet92"], + "2x50G": ["Ethernet92", "Ethernet94"], + "4x25G[10G]": ["Ethernet92", "Ethernet93", "Ethernet94", "Ethernet95"] + } }, "Ethernet96": { "index": "25,25,25,25", "lanes": "96,97,98,99", - "alias_at_lanes": "Ethernet96,Ethernet97,Ethernet98,Ethernet99", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet96"], + "2x50G": ["Ethernet96", "Ethernet98"], + "4x25G[10G]": ["Ethernet96", "Ethernet97", "Ethernet98", "Ethernet99"] + } }, "Ethernet100": { "index": "26,26,26,26", "lanes": "100,101,102,103", - "alias_at_lanes": "Ethernet100,Ethernet101,Ethernet102,Ethernet103", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet100"], + "2x50G": ["Ethernet100", "Ethernet102"], + "4x25G[10G]": ["Ethernet100", "Ethernet101", "Ethernet102", "Ethernet103"] + } }, "Ethernet104": { "index": "27,27,27,27", "lanes": "104,105,106,107", - "alias_at_lanes": "Ethernet104,Ethernet105,Ethernet106,Ethernet107", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet104"], + "2x50G": ["Ethernet104", "Ethernet106"], + "4x25G[10G]": ["Ethernet104", "Ethernet105", "Ethernet106", "Ethernet107"] + } }, "Ethernet108": { "index": "28,28,28,28", "lanes": "108,109,110,111", - "alias_at_lanes": "Ethernet108,Ethernet109,Ethernet110,Ethernet111", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet108"], + "2x50G": ["Ethernet108", "Ethernet110"], + "4x25G[10G]": ["Ethernet108", "Ethernet109", "Ethernet110", "Ethernet111"] + } }, "Ethernet112": { "index": "29,29,29,29", "lanes": "112,113,114,115", - "alias_at_lanes": "Ethernet112,Ethernet113,Ethernet114,Ethernet115", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet112"], + "2x50G": ["Ethernet112", "Ethernet114"], + "4x25G[10G]": ["Ethernet112", "Ethernet113", "Ethernet114", "Ethernet115"] + } }, "Ethernet116": { "index": "30,30,30,30", "lanes": "116,117,118,119", - "alias_at_lanes": "Ethernet116,Ethernet117,Ethernet118,Ethernet119", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet116"], + "2x50G": ["Ethernet116", "Ethernet118"], + "4x25G[10G]": ["Ethernet116", "Ethernet117", "Ethernet118", "Ethernet119"] + } }, "Ethernet120": { "index": "31,31,31,31", "lanes": "120,121,122,123", - "alias_at_lanes": "Ethernet120,Ethernet121,Ethernet122,Ethernet123", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet120"], + "2x50G": ["Ethernet120", "Ethernet122"], + "4x25G[10G]": ["Ethernet120", "Ethernet121", "Ethernet122", "Ethernet123"] + } }, "Ethernet124": { "index": "32,32,32,32", "lanes": "124,125,126,127", - "alias_at_lanes": "Ethernet124,Ethernet125,Ethernet126,Ethernet127", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet124"], + "2x50G": ["Ethernet124", "Ethernet126"], + "4x25G[10G]": ["Ethernet124", "Ethernet125", "Ethernet126", "Ethernet127"] + } }, "Ethernet128": { "index": "33,33,33,33", "lanes": "128,129,130,131", - "alias_at_lanes": "Ethernet128,Ethernet129,Ethernet130,Ethernet131", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet128"], + "2x50G": ["Ethernet128", "Ethernet130"], + "4x25G[10G]": ["Ethernet128", "Ethernet129", "Ethernet130", "Ethernet131"] + } }, "Ethernet132": { "index": "34,34,34,34", "lanes": "132,133,134,135", - "alias_at_lanes": "Ethernet132,Ethernet133,Ethernet134,Ethernet135", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet132"], + "2x50G": ["Ethernet132", "Ethernet134"], + "4x25G[10G]": ["Ethernet132", "Ethernet133", "Ethernet134", "Ethernet135"] + } }, "Ethernet136": { "index": "35,35,35,35", "lanes": "136,137,138,139", - "alias_at_lanes": "Ethernet136,Ethernet137,Ethernet138,Ethernet139", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet136"], + "2x50G": ["Ethernet136", "Ethernet138"], + "4x25G[10G]": ["Ethernet136", "Ethernet137", "Ethernet138", "Ethernet139"] + } }, "Ethernet140": { "index": "36,36,36,36", "lanes": "140,141,142,143", - "alias_at_lanes": "Ethernet140,Ethernet141,Ethernet142,Ethernet143", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet140"], + "2x50G": ["Ethernet140", "Ethernet142"], + "4x25G[10G]": ["Ethernet140", "Ethernet141", "Ethernet142", "Ethernet143"] + } }, "Ethernet144": { "index": "37,37,37,37", "lanes": "144,145,146,147", - "alias_at_lanes": "Ethernet144,Ethernet145,Ethernet146,Ethernet147", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet144"], + "2x50G": ["Ethernet144", "Ethernet146"], + "4x25G[10G]": ["Ethernet144", "Ethernet145", "Ethernet146", "Ethernet147"] + } }, "Ethernet148": { "index": "38,38,38,38", "lanes": "148,149,150,151", - "alias_at_lanes": "Ethernet148,Ethernet149,Ethernet150,Ethernet151", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet148"], + "2x50G": ["Ethernet148", "Ethernet150"], + "4x25G[10G]": ["Ethernet148", "Ethernet149", "Ethernet150", "Ethernet151"] + } }, "Ethernet152": { "index": "39,39,39,39", "lanes": "152,153,154,155", - "alias_at_lanes": "Ethernet152,Ethernet153,Ethernet154,Ethernet155", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet152"], + "2x50G": ["Ethernet152", "Ethernet154"], + "4x25G[10G]": ["Ethernet152", "Ethernet153", "Ethernet154", "Ethernet155"] + } }, "Ethernet156": { "index": "40,40,40,40", "lanes": "156,157,158,159", - "alias_at_lanes": "Ethernet156,Ethernet157,Ethernet158,Ethernet159", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet156"], + "2x50G": ["Ethernet156", "Ethernet158"], + "4x25G[10G]": ["Ethernet156", "Ethernet157", "Ethernet158", "Ethernet159"] + } }, "Ethernet160": { "index": "41,41,41,41", "lanes": "160,161,162,163", - "alias_at_lanes": "Ethernet160,Ethernet161,Ethernet162,Ethernet163", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet160"], + "2x50G": ["Ethernet160", "Ethernet162"], + "4x25G[10G]": ["Ethernet160", "Ethernet161", "Ethernet162", "Ethernet163"] + } }, "Ethernet164": { "index": "42,42,42,42", "lanes": "164,165,166,167", - "alias_at_lanes": "Ethernet164,Ethernet165,Ethernet166,Ethernet167", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet164"], + "2x50G": ["Ethernet164", "Ethernet166"], + "4x25G[10G]": ["Ethernet164", "Ethernet165", "Ethernet166", "Ethernet167"] + } }, "Ethernet168": { "index": "43,43,43,43", "lanes": "168,169,170,171", - "alias_at_lanes": "Ethernet168,Ethernet169,Ethernet170,Ethernet171", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet168"], + "2x50G": ["Ethernet168", "Ethernet170"], + "4x25G[10G]": ["Ethernet168", "Ethernet169", "Ethernet170", "Ethernet171"] + } }, "Ethernet172": { "index": "44,44,44,44", "lanes": "172,173,174,175", - "alias_at_lanes": "Ethernet172,Ethernet173,Ethernet174,Ethernet175", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet172"], + "2x50G": ["Ethernet172", "Ethernet174"], + "4x25G[10G]": ["Ethernet172", "Ethernet173", "Ethernet174", "Ethernet175"] + } }, "Ethernet176": { "index": "45,45,45,45", "lanes": "176,177,178,179", - "alias_at_lanes": "Ethernet176,Ethernet177,Ethernet178,Ethernet179", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet176"], + "2x50G": ["Ethernet176", "Ethernet178"], + "4x25G[10G]": ["Ethernet176", "Ethernet177", "Ethernet178", "Ethernet179"] + } }, "Ethernet180": { "index": "46,46,46,46", "lanes": "180,181,182,183", - "alias_at_lanes": "Ethernet180,Ethernet181,Ethernet182,Ethernet183", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet180"], + "2x50G": ["Ethernet180", "Ethernet182"], + "4x25G[10G]": ["Ethernet180", "Ethernet181", "Ethernet182", "Ethernet183"] + } }, "Ethernet184": { "index": "47,47,47,47", "lanes": "184,185,186,187", - "alias_at_lanes": "Ethernet184,Ethernet185,Ethernet186,Ethernet187", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet184"], + "2x50G": ["Ethernet184", "Ethernet186"], + "4x25G[10G]": ["Ethernet184", "Ethernet185", "Ethernet186", "Ethernet187"] + } }, "Ethernet188": { "index": "48,48,48,48", "lanes": "188,189,190,191", - "alias_at_lanes": "Ethernet188,Ethernet189,Ethernet190,Ethernet191", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet188"], + "2x50G": ["Ethernet188", "Ethernet190"], + "4x25G[10G]": ["Ethernet188", "Ethernet189", "Ethernet190", "Ethernet191"] + } }, "Ethernet192": { "index": "49,49,49,49", "lanes": "192,193,194,195", - "alias_at_lanes": "Ethernet192,Ethernet193,Ethernet194,Ethernet195", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet192"], + "2x50G": ["Ethernet192", "Ethernet194"], + "4x25G[10G]": ["Ethernet192", "Ethernet193", "Ethernet194", "Ethernet195"] + } }, "Ethernet196": { "index": "50,50,50,50", "lanes": "196,197,198,199", - "alias_at_lanes": "Ethernet196,Ethernet197,Ethernet198,Ethernet199", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet196"], + "2x50G": ["Ethernet196", "Ethernet198"], + "4x25G[10G]": ["Ethernet196", "Ethernet197", "Ethernet198", "Ethernet199"] + } }, "Ethernet200": { "index": "51,51,51,51", "lanes": "200,201,202,203", - "alias_at_lanes": "Ethernet200,Ethernet201,Ethernet202,Ethernet203", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet200"], + "2x50G": ["Ethernet200", "Ethernet202"], + "4x25G[10G]": ["Ethernet200", "Ethernet201", "Ethernet202", "Ethernet203"] + } }, "Ethernet204": { "index": "52,52,52,52", "lanes": "204,205,206,207", - "alias_at_lanes": "Ethernet204,Ethernet205,Ethernet206,Ethernet207", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet204"], + "2x50G": ["Ethernet204", "Ethernet206"], + "4x25G[10G]": ["Ethernet204", "Ethernet205", "Ethernet206", "Ethernet207"] + } }, "Ethernet208": { "index": "53,53,53,53", "lanes": "208,209,210,211", - "alias_at_lanes": "Ethernet208,Ethernet209,Ethernet210,Ethernet211", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet208"], + "2x50G": ["Ethernet208", "Ethernet210"], + "4x25G[10G]": ["Ethernet208", "Ethernet209", "Ethernet210", "Ethernet211"] + } }, "Ethernet212": { "index": "54,54,54,54", "lanes": "212,213,214,215", - "alias_at_lanes": "Ethernet212,Ethernet213,Ethernet214,Ethernet215", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet212"], + "2x50G": ["Ethernet212", "Ethernet214"], + "4x25G[10G]": ["Ethernet212", "Ethernet213", "Ethernet214", "Ethernet215"] + } }, "Ethernet216": { "index": "55,55,55,55", "lanes": "216,217,218,219", - "alias_at_lanes": "Ethernet216,Ethernet217,Ethernet218,Ethernet219", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet216"], + "2x50G": ["Ethernet216", "Ethernet218"], + "4x25G[10G]": ["Ethernet216", "Ethernet217", "Ethernet218", "Ethernet219"] + } }, "Ethernet220": { "index": "56,56,56,56", "lanes": "220,221,222,223", - "alias_at_lanes": "Ethernet220,Ethernet221,Ethernet222,Ethernet223", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet220"], + "2x50G": ["Ethernet220", "Ethernet222"], + "4x25G[10G]": ["Ethernet220", "Ethernet221", "Ethernet222", "Ethernet223"] + } }, "Ethernet224": { "index": "57,57,57,57", "lanes": "224,225,226,227", - "alias_at_lanes": "Ethernet224,Ethernet225,Ethernet226,Ethernet227", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet224"], + "2x50G": ["Ethernet224", "Ethernet226"], + "4x25G[10G]": ["Ethernet224", "Ethernet225", "Ethernet226", "Ethernet227"] + } }, "Ethernet228": { "index": "58,58,58,58", "lanes": "228,229,230,231", - "alias_at_lanes": "Ethernet228,Ethernet229,Ethernet230,Ethernet231", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet228"], + "2x50G": ["Ethernet228", "Ethernet230"], + "4x25G[10G]": ["Ethernet228", "Ethernet229", "Ethernet230", "Ethernet231"] + } }, "Ethernet232": { "index": "59,59,59,59", "lanes": "232,233,234,235", - "alias_at_lanes": "Ethernet232,Ethernet233,Ethernet234,Ethernet235", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet232"], + "2x50G": ["Ethernet232", "Ethernet234"], + "4x25G[10G]": ["Ethernet232", "Ethernet233", "Ethernet234", "Ethernet235"] + } }, "Ethernet236": { "index": "60,60,60,60", "lanes": "236,237,238,239", - "alias_at_lanes": "Ethernet236,Ethernet237,Ethernet238,Ethernet239", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet236"], + "2x50G": ["Ethernet236", "Ethernet238"], + "4x25G[10G]": ["Ethernet236", "Ethernet237", "Ethernet238", "Ethernet239"] + } }, "Ethernet240": { "index": "61,61,61,61", "lanes": "240,241,242,243", - "alias_at_lanes": "Ethernet240,Ethernet241,Ethernet242,Ethernet243", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet240"], + "2x50G": ["Ethernet240", "Ethernet242"], + "4x25G[10G]": ["Ethernet240", "Ethernet241", "Ethernet242", "Ethernet243"] + } }, "Ethernet244": { "index": "62,62,62,62", "lanes": "244,245,246,247", - "alias_at_lanes": "Ethernet244,Ethernet245,Ethernet246,Ethernet247", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet244"], + "2x50G": ["Ethernet244", "Ethernet246"], + "4x25G[10G]": ["Ethernet244", "Ethernet245", "Ethernet246", "Ethernet247"] + } }, "Ethernet248": { "index": "63,63,63,63", "lanes": "248,249,250,251", - "alias_at_lanes": "Ethernet248,Ethernet249,Ethernet250,Ethernet251", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet248"], + "2x50G": ["Ethernet248", "Ethernet250"], + "4x25G[10G]": ["Ethernet248", "Ethernet249", "Ethernet250", "Ethernet251"] + } }, "Ethernet252": { "index": "64,64,64,64", "lanes": "252,253,254,255", - "alias_at_lanes": "Ethernet252,Ethernet253,Ethernet254,Ethernet255", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet252"], + "2x50G": ["Ethernet252", "Ethernet254"], + "4x25G[10G]": ["Ethernet252", "Ethernet253", "Ethernet254", "Ethernet255"] + } }, "Ethernet256": { "index": "65,65,65,65", "lanes": "256,257,258,259", - "alias_at_lanes": "Ethernet256,Ethernet257,Ethernet258,Ethernet259", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Ethernet256"], + "2x50G": ["Ethernet256", "Ethernet258"], + "4x25G[10G]": ["Ethernet256", "Ethernet257", "Ethernet258", "Ethernet259"] + } } } } diff --git a/device/celestica/x86_64-cel_seastone-r0/platform.json b/device/celestica/x86_64-cel_seastone-r0/platform.json index 66ed83ef20..aebb6ee0ac 100644 --- a/device/celestica/x86_64-cel_seastone-r0/platform.json +++ b/device/celestica/x86_64-cel_seastone-r0/platform.json @@ -3,194 +3,290 @@ "Ethernet0": { "index": "1,1,1,1", "lanes": "65,66,67,68", - "alias_at_lanes": "Eth1/1, Eth1/2, Eth1/3, Eth1/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Eth1"], + "2x50G": ["Eth1/1", "Eth1/2"], + "4x25G[10G]": ["Eth1/1", "Eth1/2", "Eth1/3", "Eth1/4"] + } }, "Ethernet4": { "index": "2,2,2,2", "lanes": "69,70,71,72", - "alias_at_lanes": "Eth2/1, Eth2/2, Eth2/3, Eth2/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Eth2"], + "2x50G": ["Eth2/1", "Eth2/2"], + "4x25G[10G]": ["Eth2/1", "Eth2/2", "Eth2/3", "Eth2/4"] + } }, "Ethernet8": { "index": "3,3,3,3", "lanes": "73,74,75,76", - "alias_at_lanes": "Eth3/1, Eth3/2, Eth3/3, Eth3/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Eth3"], + "2x50G": ["Eth3/1", "Eth3/2"], + "4x25G[10G]": ["Eth3/1", "Eth3/2", "Eth3/3", "Eth3/4"] + } }, "Ethernet12": { "index": "4,4,4,4", "lanes": "77,78,79,80", - "alias_at_lanes": "Eth4/1, Eth4/2, Eth4/3, Eth4/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Eth4"], + "2x50G": ["Eth4/1", "Eth4/2"], + "4x25G[10G]": ["Eth4/1", "Eth4/2", "Eth4/3", "Eth4/4"] + } }, "Ethernet16": { "index": "5,5,5,5", "lanes": "33,34,35,36", - "alias_at_lanes": "Eth5/1, Eth5/2, Eth5/3, Eth5/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Eth5"], + "2x50G": ["Eth5/1", "Eth5/2"], + "4x25G[10G]": ["Eth5/1", "Eth5/2", "Eth5/3", "Eth5/4"] + } }, "Ethernet20": { "index": "6,6,6,6", "lanes": "37,38,39,40", - "alias_at_lanes": "Eth6/1, Eth6/2, Eth6/3, Eth6/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Eth6"], + "2x50G": ["Eth6/1", "Eth6/2"], + "4x25G[10G]": ["Eth6/1", "Eth6/2", "Eth6/3", "Eth6/4"] + } }, "Ethernet24": { "index": "7,7,7,7", "lanes": "41,42,43,44", - "alias_at_lanes": "Eth7/1, Eth7/2, Eth7/3, Eth7/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Eth7"], + "2x50G": ["Eth7/1", "Eth7/2"], + "4x25G[10G]": ["Eth7/1", "Eth7/2", "Eth7/3", "Eth7/4"] + } }, "Ethernet28": { "index": "8,8,8,8", "lanes": "45,46,47,48", - "alias_at_lanes": "Eth8/1, Eth8/2, Eth8/3, Eth8/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Eth8"], + "2x50G": ["Eth8/1", "Eth8/2"], + "4x25G[10G]": ["Eth8/1", "Eth8/2", "Eth8/3", "Eth8/4"] + } }, "Ethernet32": { "index": "9,9,9,9", "lanes": "49,50,51,52", - "alias_at_lanes": "Eth9/1, Eth9/2, Eth9/3, Eth9/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Eth9"], + "2x50G": ["Eth9/1", "Eth9/2"], + "4x25G[10G]": ["Eth9/1", "Eth9/2", "Eth9/3", "Eth9/4"] + } }, "Ethernet36": { "index": "10,10,10,10", "lanes": "53,54,55,56", - "alias_at_lanes": "Eth10/1, Eth10/2, Eth10/3, Eth10/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Eth10"], + "2x50G": ["Eth10/1", "Eth10/2"], + "4x25G[10G]": ["Eth10/1", "Eth10/2", "Eth10/3", "Eth10/4"] + } }, "Ethernet40": { "index": "11,11,11,11", "lanes": "57,58,59,60", - "alias_at_lanes": "Eth11/1, Eth11/2, Eth11/3, Eth11/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Eth11"], + "2x50G": ["Eth11/1", "Eth11/2"], + "4x25G[10G]": ["Eth11/1", "Eth11/2", "Eth11/3", "Eth11/4"] + } }, "Ethernet44": { "index": "12,12,12,12", "lanes": "61,62,63,64", - "alias_at_lanes": "Eth12/1, Eth12/2, Eth12/3, Eth12/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Eth12"], + "2x50G": ["Eth12/1", "Eth12/2"], + "4x25G[10G]": ["Eth12/1", "Eth12/2", "Eth12/3", "Eth12/4"] + } }, "Ethernet48": { "index": "13,13,13,13", "lanes": "81,82,83,84", - "alias_at_lanes": "Eth13/1, Eth13/2, Eth13/3, Eth13/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Eth13"], + "2x50G": ["Eth13/1", "Eth13/2"], + "4x25G[10G]": ["Eth13/1", "Eth13/2", "Eth13/3", "Eth13/4"] + } }, "Ethernet52": { "index": "14,14,14,14", "lanes": "85,86,87,88", - "alias_at_lanes": "Eth14/1, Eth14/2, Eth14/3, Eth14/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Eth14"], + "2x50G": ["Eth14/1", "Eth14/2"], + "4x25G[10G]": ["Eth14/1", "Eth14/2", "Eth14/3", "Eth14/4"] + } }, "Ethernet56": { "index": "15,15,15,15", "lanes": "89,90,91,92", - "alias_at_lanes": "Eth15/1, Eth15/2, Eth15/3, Eth15/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Eth15"], + "2x50G": ["Eth15/1", "Eth15/2"], + "4x25G[10G]": ["Eth15/1", "Eth15/2", "Eth15/3", "Eth15/4"] + } }, "Ethernet60": { "index": "16,16,16,16", "lanes": "93,94,95,96", - "alias_at_lanes": "Eth16/1, Eth16/2, Eth16/3, Eth16/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Eth16"], + "2x50G": ["Eth16/1", "Eth16/2"], + "4x25G[10G]": ["Eth16/1", "Eth16/2", "Eth16/3", "Eth16/4"] + } }, "Ethernet64": { "index": "17,17,17,17", "lanes": "97,98,99,100", - "alias_at_lanes": "Eth17/1, Eth17/2, Eth17/3, Eth17/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Eth17"], + "2x50G": ["Eth17/1", "Eth17/2"], + "4x25G[10G]": ["Eth17/1", "Eth17/2", "Eth17/3", "Eth17/4"] + } }, "Ethernet68": { "index": "18,18,18,18", "lanes": "101,102,103,104", - "alias_at_lanes": "Eth18/1, Eth18/2, Eth18/3, Eth18/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Eth18"], + "2x50G": ["Eth18/1", "Eth18/2"], + "4x25G[10G]": ["Eth18/1", "Eth18/2", "Eth18/3", "Eth18/4"] + } }, "Ethernet72": { "index": "19,19,19,19", "lanes": "105,106,107,108", - "alias_at_lanes": "Eth19/1, Eth19/2, Eth19/3, Eth19/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Eth19"], + "2x50G": ["Eth19/1", "Eth19/2"], + "4x25G[10G]": ["Eth19/1", "Eth19/2", "Eth19/3", "Eth19/4"] + } }, "Ethernet76": { "index": "20,20,20,20", "lanes": "109,110,111,112", - "alias_at_lanes": "Eth20/1, Eth20/2, Eth20/3, Eth20/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Eth20"], + "2x50G": ["Eth20/1", "Eth20/2"], + "4x25G[10G]": ["Eth20/1", "Eth20/2", "Eth20/3", "Eth20/4"] + } }, "Ethernet80": { "index": "21,21,21,21", "lanes": "1,2,3,4", - "alias_at_lanes": "Eth21/1, Eth21/2, Eth21/3, Eth21/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Eth21"], + "2x50G": ["Eth21/1", "Eth21/2"], + "4x25G[10G]": ["Eth21/1", "Eth21/2", "Eth21/3", "Eth21/4"] + } }, "Ethernet84": { "index": "22,22,22,22", "lanes": "5,6,7,8", - "alias_at_lanes": "Eth22/1, Eth22/2, Eth22/3, Eth22/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Eth22"], + "2x50G": ["Eth22/1", "Eth22/2"], + "4x25G[10G]": ["Eth22/1", "Eth22/2", "Eth22/3", "Eth22/4"] + } }, "Ethernet88": { "index": "23,23,23,23", "lanes": "9,10,11,12", - "alias_at_lanes": "Eth23/1, Eth23/2, Eth23/3, Eth23/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Eth23"], + "2x50G": ["Eth23/1", "Eth23/2"], + "4x25G[10G]": ["Eth23/1", "Eth23/2", "Eth23/3", "Eth23/4"] + } }, "Ethernet92": { "index": "24,24,24,24", "lanes": "13,14,15,16", - "alias_at_lanes": "Eth24/1, Eth24/2, Eth24/3, Eth24/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Eth24"], + "2x50G": ["Eth24/1", "Eth24/2"], + "4x25G[10G]": ["Eth24/1", "Eth24/2", "Eth24/3", "Eth24/4"] + } }, "Ethernet96": { "index": "25,25,25,25", "lanes": "17,18,19,20", - "alias_at_lanes": "Eth25/1, Eth25/2, Eth25/3, Eth25/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Eth25"], + "2x50G": ["Eth25/1", "Eth25/2"], + "4x25G[10G]": ["Eth25/1", "Eth25/2", "Eth25/3", "Eth25/4"] + } }, "Ethernet100": { "index": "26,26,26,26", "lanes": "21,22,23,24", - "alias_at_lanes": "Eth26/1, Eth26/2, Eth26/3, Eth26/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Eth26"], + "2x50G": ["Eth26/1", "Eth26/2"], + "4x25G[10G]": ["Eth26/1", "Eth26/2", "Eth26/3", "Eth26/4"] + } }, "Ethernet104": { "index": "27,27,27,27", "lanes": "25,26,27,28", - "alias_at_lanes": "Eth27/1, Eth27/2, Eth27/3, Eth27/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Eth27"], + "2x50G": ["Eth27/1", "Eth27/2"], + "4x25G[10G]": ["Eth27/1", "Eth27/2", "Eth27/3", "Eth27/4"] + } }, "Ethernet108": { "index": "28,28,28,28", "lanes": "29,30,31,32", - "alias_at_lanes": "Eth28/1, Eth28/2, Eth28/3, Eth28/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Eth28"], + "2x50G": ["Eth28/1", "Eth28/2"], + "4x25G[10G]": ["Eth28/1", "Eth28/2", "Eth28/3", "Eth28/4"] + } }, "Ethernet112": { "index": "29,29,29,29", "lanes": "113,114,115,116", - "alias_at_lanes": "Eth29/1, Eth29/2, Eth29/3, Eth29/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Eth29"], + "2x50G": ["Eth29/1", "Eth29/2"], + "4x25G[10G]": ["Eth29/1", "Eth29/2", "Eth29/3", "Eth29/4"] + } }, "Ethernet116": { "index": "30,30,30,30", "lanes": "117,118,119,120", - "alias_at_lanes": "Eth30/1, Eth30/2, Eth30/3, Eth30/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Eth30"], + "2x50G": ["Eth30/1", "Eth30/2"], + "4x25G[10G]": ["Eth30/1", "Eth30/2", "Eth30/3", "Eth30/4"] + } }, "Ethernet120": { "index": "31,31,31,31", "lanes": "121,122,123,124", - "alias_at_lanes": "Eth31/1, Eth31/2, Eth31/3, Eth31/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Eth31"], + "2x50G": ["Eth31/1", "Eth31/2"], + "4x25G[10G]": ["Eth31/1", "Eth31/2", "Eth31/3", "Eth31/4"] + } }, "Ethernet124": { "index": "32,32,32,32", "lanes": "125,126,127,128", - "alias_at_lanes": "Eth32/1, Eth32/2, Eth32/3, Eth32/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Eth32"], + "2x50G": ["Eth32/1", "Eth32/2"], + "4x25G[10G]": ["Eth32/1", "Eth32/2", "Eth32/3", "Eth32/4"] + } } } -} \ No newline at end of file +} diff --git a/device/mellanox/x86_64-mlnx_msn2010-r0/platform.json b/device/mellanox/x86_64-mlnx_msn2010-r0/platform.json index d80e66f9e0..937ba5075c 100644 --- a/device/mellanox/x86_64-mlnx_msn2010-r0/platform.json +++ b/device/mellanox/x86_64-mlnx_msn2010-r0/platform.json @@ -3,134 +3,164 @@ "Ethernet0": { "index": "1", "lanes": "0", - "alias_at_lanes": "etp1", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp1"] + } }, "Ethernet4": { "index": "2", "lanes": "4", - "alias_at_lanes": "etp2", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp2"] + } }, "Ethernet8": { "index": "3", "lanes": "8", - "alias_at_lanes": "etp3", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp3"] + } }, "Ethernet12": { "index": "4", "lanes": "12", - "alias_at_lanes": "etp4", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp4"] + } }, "Ethernet16": { "index": "5", "lanes": "16", - "alias_at_lanes": "etp5", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp5"] + } }, "Ethernet20": { "index": "6", "lanes": "20", - "alias_at_lanes": "etp6", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp6"] + } }, "Ethernet24": { "index": "7", "lanes": "24", - "alias_at_lanes": "etp7", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp7"] + } }, "Ethernet28": { "index": "8", "lanes": "28", - "alias_at_lanes": "etp8", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp8"] + } }, "Ethernet32": { "index": "9", "lanes": "32", - "alias_at_lanes": "etp9", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp9"] + } }, "Ethernet36": { "index": "10", "lanes": "36", - "alias_at_lanes": "etp10", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp10"] + } }, "Ethernet40": { "index": "11", "lanes": "40", - "alias_at_lanes": "etp11", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp11"] + } }, "Ethernet44": { "index": "12", "lanes": "44", - "alias_at_lanes": "etp12", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp12"] + } }, "Ethernet48": { "index": "13", "lanes": "48", - "alias_at_lanes": "etp13", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp13"] + } }, "Ethernet52": { "index": "14", "lanes": "52", - "alias_at_lanes": "etp14", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp14"] + } }, "Ethernet56": { "index": "15", "lanes": "56", - "alias_at_lanes": "etp15", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp15"] + } }, "Ethernet60": { "index": "16", "lanes": "60", - "alias_at_lanes": "etp16", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp16"] + } }, "Ethernet64": { "index": "17", "lanes": "64", - "alias_at_lanes": "etp17", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp17"] + } }, "Ethernet68": { "index": "18", "lanes": "68", - "alias_at_lanes": "etp18", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp18"] + } }, "Ethernet72": { "index": "19,19,19,19", "lanes": "72,73,74,75", - "alias_at_lanes": "etp19a, etp19b, etp19c, etp19d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G],4x25G[10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp19"], + "2x50G[40G,25G,10G]": ["etp19a", "etp19b"], + "4x25G[10G]": ["etp19a", "etp19b", "etp19c", "etp19d"] + } }, "Ethernet76": { "index": "20,20,20,20", "lanes": "76,77,78,79", - "alias_at_lanes": "etp20a, etp20b, etp20c, etp20d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G],4x25G[10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp20"], + "2x50G[40G,25G,10G]": ["etp20a", "etp20b"], + "4x25G[10G]": ["etp20a", "etp20b", "etp20c", "etp20d"] + } }, "Ethernet80": { "index": "21,21,21,21", "lanes": "80,81,82,83", - "alias_at_lanes": "etp21a, etp21b, etp21c, etp21d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G],4x25G[10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp21"], + "2x50G[40G,25G,10G]": ["etp21a", "etp21b"], + "4x25G[10G]": ["etp21a", "etp21b", "etp21c", "etp21d"] + } }, "Ethernet84": { "index": "22,22,22,22", "lanes": "84,85,86,87", - "alias_at_lanes": "etp22a, etp22b, etp22c, etp22d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G],4x25G[10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp22"], + "2x50G[40G,25G,10G]": ["etp22a", "etp22b"], + "4x25G[10G]": ["etp22a", "etp22b", "etp22c", "etp22d"] + } } } } diff --git a/device/mellanox/x86_64-mlnx_msn2100-r0/platform.json b/device/mellanox/x86_64-mlnx_msn2100-r0/platform.json index aa08998861..cf16b7de93 100644 --- a/device/mellanox/x86_64-mlnx_msn2100-r0/platform.json +++ b/device/mellanox/x86_64-mlnx_msn2100-r0/platform.json @@ -3,98 +3,146 @@ "Ethernet0": { "index": "1,1,1,1", "lanes": "0,1,2,3", - "alias_at_lanes": "etp1a, etp1b, etp1c, etp1d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G],4x25G[10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp1"], + "2x50G[40G,25G,10G]": ["etp1a", "etp1b"], + "4x25G[10G]": ["etp1a", "etp1b", "etp1c", "etp1d"] + } }, "Ethernet4": { "index": "2,2,2,2", "lanes": "4,5,6,7", - "alias_at_lanes": "etp2a, etp2b, etp2c, etp2d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G],4x25G[10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp2"], + "2x50G[40G,25G,10G]": ["etp2a", "etp2b"], + "4x25G[10G]": ["etp2a", "etp2b", "etp2c", "etp2d"] + } }, "Ethernet8": { "index": "3,3,3,3", "lanes": "8,9,10,11", - "alias_at_lanes": "etp3a, etp3b, etp3c, etp3d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G],4x25G[10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp3"], + "2x50G[40G,25G,10G]": ["etp3a", "etp3b"], + "4x25G[10G]": ["etp3a", "etp3b", "etp3c", "etp3d"] + } }, "Ethernet12": { "index": "4,4,4,4", "lanes": "12,13,14,15", - "alias_at_lanes": "etp4a, etp4b, etp4c, etp4d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G],4x25G[10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp4"], + "2x50G[40G,25G,10G]": ["etp4a", "etp4b"], + "4x25G[10G]": ["etp4a", "etp4b", "etp4c", "etp4d"] + } }, "Ethernet16": { "index": "5,5,5,5", "lanes": "16,17,18,19", - "alias_at_lanes": "etp5a, etp5b, etp5c, etp5d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G],4x25G[10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp5"], + "2x50G[40G,25G,10G]": ["etp5a", "etp5b"], + "4x25G[10G]": ["etp5a", "etp5b", "etp5c", "etp5d"] + } }, "Ethernet20": { "index": "6,6,6,6", "lanes": "20,21,22,23", - "alias_at_lanes": "etp6a, etp6b, etp6c, etp6d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G],4x25G[10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp6"], + "2x50G[40G,25G,10G]": ["etp6a", "etp6b"], + "4x25G[10G]": ["etp6a", "etp6b", "etp6c", "etp6d"] + } }, "Ethernet24": { "index": "7,7,7,7", "lanes": "24,25,26,27", - "alias_at_lanes": "etp7a, etp7b, etp7c, etp7d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G],4x25G[10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp7"], + "2x50G[40G,25G,10G]": ["etp7a", "etp7b"], + "4x25G[10G]": ["etp7a", "etp7b", "etp7c", "etp7d"] + } }, "Ethernet28": { "index": "8,8,8,8", "lanes": "28,29,30,31", - "alias_at_lanes": "etp8a, etp8b, etp8c, etp8d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G],4x25G[10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp8"], + "2x50G[40G,25G,10G]": ["etp8a", "etp8b"], + "4x25G[10G]": ["etp8a", "etp8b", "etp8c", "etp8d"] + } }, "Ethernet32": { "index": "9,9,9,9", "lanes": "32,33,34,35", - "alias_at_lanes": "etp9a, etp9b, etp9c, etp9d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G],4x25G[10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp9"], + "2x50G[40G,25G,10G]": ["etp9a", "etp9b"], + "4x25G[10G]": ["etp9a", "etp9b", "etp9c", "etp9d"] + } }, "Ethernet36": { "index": "10,10,10,10", "lanes": "36,37,38,39", - "alias_at_lanes": "etp10a, etp10b, etp10c, etp10d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G],4x25G[10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp10"], + "2x50G[40G,25G,10G]": ["etp10a", "etp10b"], + "4x25G[10G]": ["etp10a", "etp10b", "etp10c", "etp10d"] + } }, "Ethernet40": { "index": "11,11,11,11", "lanes": "40,41,42,43", - "alias_at_lanes": "etp11a, etp11b, etp11c, etp11d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G],4x25G[10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp11"], + "2x50G[40G,25G,10G]": ["etp11a", "etp11b"], + "4x25G[10G]": ["etp11a", "etp11b", "etp11c", "etp11d"] + } }, "Ethernet44": { "index": "12,12,12,12", "lanes": "44,45,46,47", - "alias_at_lanes": "etp12a, etp12b, etp12c, etp12d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G],4x25G[10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp12"], + "2x50G[40G,25G,10G]": ["etp12a", "etp12b"], + "4x25G[10G]": ["etp12a", "etp12b", "etp12c", "etp12d"] + } }, "Ethernet48": { "index": "13,13,13,13", "lanes": "48,49,50,51", - "alias_at_lanes": "etp13a, etp13b, etp13c, etp13d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G],4x25G[10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp13"], + "2x50G[40G,25G,10G]": ["etp13a", "etp13b"], + "4x25G[10G]": ["etp13a", "etp13b", "etp13c", "etp13d"] + } }, "Ethernet52": { "index": "14,14,14,14", "lanes": "52,53,54,55", - "alias_at_lanes": "etp14a, etp14b, etp14c, etp14d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G],4x25G[10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp14"], + "2x50G[40G,25G,10G]": ["etp14a", "etp14b"], + "4x25G[10G]": ["etp14a", "etp14b", "etp14c", "etp14d"] + } }, "Ethernet56": { "index": "15,15,15,15", "lanes": "56,57,58,59", - "alias_at_lanes": "etp15a, etp15b, etp15c, etp15d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G],4x25G[10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp15"], + "2x50G[40G,25G,10G]": ["etp15a", "etp15b"], + "4x25G[10G]": ["etp15a", "etp15b", "etp15c", "etp15d"] + } }, "Ethernet60": { "index": "16,16,16,16", "lanes": "60,61,62,63", - "alias_at_lanes": "etp16a, etp16b, etp16c, etp16d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G],4x25G[10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp16"], + "2x50G[40G,25G,10G]": ["etp16a", "etp16b"], + "4x25G[10G]": ["etp16a", "etp16b", "etp16c", "etp16d"] + } } } } diff --git a/device/mellanox/x86_64-mlnx_msn2410-r0/platform.json b/device/mellanox/x86_64-mlnx_msn2410-r0/platform.json index 0009dee63b..5624ef60d4 100644 --- a/device/mellanox/x86_64-mlnx_msn2410-r0/platform.json +++ b/device/mellanox/x86_64-mlnx_msn2410-r0/platform.json @@ -3,338 +3,402 @@ "Ethernet0": { "index": "1", "lanes": "0", - "alias_at_lanes": "etp1", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp1"] + } }, "Ethernet4": { "index": "2", "lanes": "4", - "alias_at_lanes": "etp2", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp2"] + } }, "Ethernet8": { "index": "3", "lanes": "8", - "alias_at_lanes": "etp3", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp3"] + } }, "Ethernet12": { "index": "4", "lanes": "12", - "alias_at_lanes": "etp4", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp4"] + } }, "Ethernet16": { "index": "5", "lanes": "16", - "alias_at_lanes": "etp5", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp5"] + } }, "Ethernet20": { "index": "6", "lanes": "20", - "alias_at_lanes": "etp6", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp6"] + } }, "Ethernet24": { "index": "7", "lanes": "24", - "alias_at_lanes": "etp7", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp7"] + } }, "Ethernet28": { "index": "8", "lanes": "28", - "alias_at_lanes": "etp8", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp8"] + } }, "Ethernet32": { "index": "9", "lanes": "32", - "alias_at_lanes": "etp9", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp9"] + } }, "Ethernet36": { "index": "10", "lanes": "36", - "alias_at_lanes": "etp10", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp10"] + } }, "Ethernet40": { "index": "11", "lanes": "40", - "alias_at_lanes": "etp11", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp11"] + } }, "Ethernet44": { "index": "12", "lanes": "44", - "alias_at_lanes": "etp12", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp12"] + } }, "Ethernet48": { "index": "13", "lanes": "48", - "alias_at_lanes": "etp13", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp13"] + } }, "Ethernet52": { "index": "14", "lanes": "52", - "alias_at_lanes": "etp14", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp14"] + } }, "Ethernet56": { "index": "15", "lanes": "56", - "alias_at_lanes": "etp15", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp15"] + } }, "Ethernet60": { "index": "16", "lanes": "60", - "alias_at_lanes": "etp16", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp16"] + } }, "Ethernet64": { "index": "17", "lanes": "64", - "alias_at_lanes": "etp17", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp17"] + } }, "Ethernet68": { "index": "18", "lanes": "68", - "alias_at_lanes": "etp18", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp18"] + } }, "Ethernet72": { "index": "19", "lanes": "72", - "alias_at_lanes": "etp19", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp19"] + } }, "Ethernet76": { "index": "20", "lanes": "76", - "alias_at_lanes": "etp20", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp20"] + } }, "Ethernet80": { "index": "21", "lanes": "80", - "alias_at_lanes": "etp21", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp21"] + } }, "Ethernet84": { "index": "22", "lanes": "84", - "alias_at_lanes": "etp22", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp22"] + } }, "Ethernet88": { "index": "23", "lanes": "88", - "alias_at_lanes": "etp23", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp23"] + } }, "Ethernet92": { "index": "24", "lanes": "92", - "alias_at_lanes": "etp24", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp24"] + } }, "Ethernet96": { "index": "25", "lanes": "96", - "alias_at_lanes": "etp25", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp25"] + } }, "Ethernet100": { "index": "26", "lanes": "100", - "alias_at_lanes": "etp26", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp26"] + } }, "Ethernet104": { "index": "27", "lanes": "104", - "alias_at_lanes": "etp27", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp27"] + } }, "Ethernet108": { "index": "28", "lanes": "108", - "alias_at_lanes": "etp28", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp28"] + } }, "Ethernet112": { "index": "29", "lanes": "112", - "alias_at_lanes": "etp29", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp29"] + } }, "Ethernet116": { "index": "30", "lanes": "116", - "alias_at_lanes": "etp30", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp30"] + } }, "Ethernet120": { "index": "31", "lanes": "120", - "alias_at_lanes": "etp31", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp31"] + } }, "Ethernet124": { "index": "32", "lanes": "124", - "alias_at_lanes": "etp32", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp32"] + } }, "Ethernet128": { "index": "33", "lanes": "128", - "alias_at_lanes": "etp33", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp33"] + } }, "Ethernet132": { "index": "34", "lanes": "132", - "alias_at_lanes": "etp34", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp34"] + } }, "Ethernet136": { "index": "35", "lanes": "136", - "alias_at_lanes": "etp35", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp35"] + } }, "Ethernet140": { "index": "36", "lanes": "140", - "alias_at_lanes": "etp36", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp36"] + } }, "Ethernet144": { "index": "37", "lanes": "144", - "alias_at_lanes": "etp37", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp37"] + } }, "Ethernet148": { "index": "38", "lanes": "148", - "alias_at_lanes": "etp38", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp38"] + } }, "Ethernet152": { "index": "39", "lanes": "152", - "alias_at_lanes": "etp39", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp39"] + } }, "Ethernet156": { "index": "40", "lanes": "156", - "alias_at_lanes": "etp40", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp40"] + } }, "Ethernet160": { "index": "41", "lanes": "160", - "alias_at_lanes": "etp41", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp41"] + } }, "Ethernet164": { "index": "42", "lanes": "164", - "alias_at_lanes": "etp42", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp42"] + } }, "Ethernet168": { "index": "43", "lanes": "168", - "alias_at_lanes": "etp43", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp43"] + } }, "Ethernet172": { "index": "44", "lanes": "172", - "alias_at_lanes": "etp44", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp44"] + } }, "Ethernet176": { "index": "45", "lanes": "176", - "alias_at_lanes": "etp45", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp45"] + } }, "Ethernet180": { "index": "46", "lanes": "180", - "alias_at_lanes": "etp46", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp46"] + } }, "Ethernet184": { "index": "47", "lanes": "184", - "alias_at_lanes": "etp47", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp47"] + } }, "Ethernet188": { "index": "48", "lanes": "188", - "alias_at_lanes": "etp48", - "breakout_modes": "1x25G[10G]" + "breakout_modes": { + "1x25G[10G]" : ["etp48"] + } }, "Ethernet192": { "index": "49,49,49,49", "lanes": "192,193,194,195", - "alias_at_lanes": "etp49a, etp49b, etp49c, etp49d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp49"], + "2x50G[40G,25G,10G]": ["etp49a", "etp49b"] + } }, "Ethernet196": { "index": "50,50,50,50", "lanes": "196,197,198,199", - "alias_at_lanes": "etp50a, etp50b, etp50c, etp50d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp50"], + "2x50G[40G,25G,10G]": ["etp50a", "etp50b"] + } }, "Ethernet200": { "index": "51,51,51,51", "lanes": "200,201,202,203", - "alias_at_lanes": "etp51a, etp51b, etp51c, etp51d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp51"], + "2x50G[40G,25G,10G]": ["etp51a", "etp51b"] + } }, "Ethernet204": { "index": "52,52,52,52", "lanes": "204,205,206,207", - "alias_at_lanes": "etp52a, etp52b, etp52c, etp52d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp52"], + "2x50G[40G,25G,10G]": ["etp52a", "etp52b"] + } }, "Ethernet208": { "index": "53,53,53,53", "lanes": "208,209,210,211", - "alias_at_lanes": "etp53a, etp53b, etp53c, etp53d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp53"], + "2x50G[40G,25G,10G]": ["etp53a", "etp53b"] + } }, "Ethernet212": { "index": "54,54,54,54", "lanes": "212,213,214,215", - "alias_at_lanes": "etp54a, etp54b, etp54c, etp54d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp54"], + "2x50G[40G,25G,10G]": ["etp54a", "etp54b"] + } }, "Ethernet216": { "index": "55,55,55,55", "lanes": "216,217,218,219", - "alias_at_lanes": "etp55a, etp55b, etp55c, etp55d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp55"], + "2x50G[40G,25G,10G]": ["etp55a", "etp55b"] + } }, "Ethernet220": { "index": "56,56,56,56", "lanes": "220,221,222,223", - "alias_at_lanes": "etp56a, etp56b, etp56c, etp56d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp56"], + "2x50G[40G,25G,10G]": ["etp56a", "etp56b"] + } } } } diff --git a/device/mellanox/x86_64-mlnx_msn2700-r0/platform.json b/device/mellanox/x86_64-mlnx_msn2700-r0/platform.json index 65d28529ec..e5ec0b2f3c 100644 --- a/device/mellanox/x86_64-mlnx_msn2700-r0/platform.json +++ b/device/mellanox/x86_64-mlnx_msn2700-r0/platform.json @@ -379,194 +379,258 @@ "Ethernet0": { "index": "1,1,1,1", "lanes": "0,1,2,3", - "alias_at_lanes": "etp1a, etp1b, etp1c, etp1d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp1"], + "2x50G[40G,25G,10G]": ["etp1a", "etp1b"] + } }, "Ethernet4": { "index": "2,2,2,2", "lanes": "4,5,6,7", - "alias_at_lanes": "etp2a, etp2b, etp2c, etp2d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp2"], + "2x50G[40G,25G,10G]": ["etp2a", "etp2b"] + } }, "Ethernet8": { "index": "3,3,3,3", "lanes": "8,9,10,11", - "alias_at_lanes": "etp3a, etp3b, etp3c, etp3d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp3"], + "2x50G[40G,25G,10G]": ["etp3a", "etp3b"] + } }, "Ethernet12": { "index": "4,4,4,4", "lanes": "12,13,14,15", - "alias_at_lanes": "etp4a, etp4b, etp4c, etp4d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp4"], + "2x50G[40G,25G,10G]": ["etp4a", "etp4b"] + } }, "Ethernet16": { "index": "5,5,5,5", "lanes": "16,17,18,19", - "alias_at_lanes": "etp5a, etp5b, etp5c, etp5d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp5"], + "2x50G[40G,25G,10G]": ["etp5a", "etp5b"] + } }, "Ethernet20": { "index": "6,6,6,6", "lanes": "20,21,22,23", - "alias_at_lanes": "etp6a, etp6b, etp6c, etp6d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp6"], + "2x50G[40G,25G,10G]": ["etp6a", "etp6b"] + } }, "Ethernet24": { "index": "7,7,7,7", "lanes": "24,25,26,27", - "alias_at_lanes": "etp7a, etp7b, etp7c, etp7d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp7"], + "2x50G[40G,25G,10G]": ["etp7a", "etp7b"] + } }, "Ethernet28": { "index": "8,8,8,8", "lanes": "28,29,30,31", - "alias_at_lanes": "etp8a, etp8b, etp8c, etp8d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp8"], + "2x50G[40G,25G,10G]": ["etp8a", "etp8b"] + } }, "Ethernet32": { "index": "9,9,9,9", "lanes": "32,33,34,35", - "alias_at_lanes": "etp9a, etp9b, etp9c, etp9d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp9"], + "2x50G[40G,25G,10G]": ["etp9a", "etp9b"] + } }, "Ethernet36": { "index": "10,10,10,10", "lanes": "36,37,38,39", - "alias_at_lanes": "etp10a, etp10b, etp10c, etp10d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp10"], + "2x50G[40G,25G,10G]": ["etp10a", "etp10b"] + } }, "Ethernet40": { "index": "11,11,11,11", "lanes": "40,41,42,43", - "alias_at_lanes": "etp11a, etp11b, etp11c, etp11d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp11"], + "2x50G[40G,25G,10G]": ["etp11a", "etp11b"] + } }, "Ethernet44": { "index": "12,12,12,12", "lanes": "44,45,46,47", - "alias_at_lanes": "etp12a, etp12b, etp12c, etp12d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp12"], + "2x50G[40G,25G,10G]": ["etp12a", "etp12b"] + } }, "Ethernet48": { "index": "13,13,13,13", "lanes": "48,49,50,51", - "alias_at_lanes": "etp13a, etp13b, etp13c, etp13d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp13"], + "2x50G[40G,25G,10G]": ["etp13a", "etp13b"] + } }, "Ethernet52": { "index": "14,14,14,14", "lanes": "52,53,54,55", - "alias_at_lanes": "etp14a, etp14b, etp14c, etp14d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp14"], + "2x50G[40G,25G,10G]": ["etp14a", "etp14b"] + } }, "Ethernet56": { "index": "15,15,15,15", "lanes": "56,57,58,59", - "alias_at_lanes": "etp15a, etp15b, etp15c, etp15d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp15"], + "2x50G[40G,25G,10G]": ["etp15a", "etp15b"] + } }, "Ethernet60": { "index": "16,16,16,16", "lanes": "60,61,62,63", - "alias_at_lanes": "etp16a, etp16b, etp16c, etp16d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp16"], + "2x50G[40G,25G,10G]": ["etp16a", "etp16b"] + } }, "Ethernet64": { "index": "17,17,17,17", "lanes": "64,65,66,67", - "alias_at_lanes": "etp17a, etp17b, etp17c, etp17d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp17"], + "2x50G[40G,25G,10G]": ["etp17a", "etp17b"] + } }, "Ethernet68": { "index": "18,18,18,18", "lanes": "68,69,70,71", - "alias_at_lanes": "etp18a, etp18b, etp18c, etp18d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp18"], + "2x50G[40G,25G,10G]": ["etp18a", "etp18b"] + } }, "Ethernet72": { "index": "19,19,19,19", "lanes": "72,73,74,75", - "alias_at_lanes": "etp19a, etp19b, etp19c, etp19d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp19"], + "2x50G[40G,25G,10G]": ["etp19a", "etp19b"] + } }, "Ethernet76": { "index": "20,20,20,20", "lanes": "76,77,78,79", - "alias_at_lanes": "etp20a, etp20b, etp20c, etp20d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp20"], + "2x50G[40G,25G,10G]": ["etp20a", "etp20b"] + } }, "Ethernet80": { "index": "21,21,21,21", "lanes": "80,81,82,83", - "alias_at_lanes": "etp21a, etp21b, etp21c, etp21d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp21"], + "2x50G[40G,25G,10G]": ["etp21a", "etp21b"] + } }, "Ethernet84": { "index": "22,22,22,22", "lanes": "84,85,86,87", - "alias_at_lanes": "etp22a, etp22b, etp22c, etp22d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp22"], + "2x50G[40G,25G,10G]": ["etp22a", "etp22b"] + } }, "Ethernet88": { "index": "23,23,23,23", "lanes": "88,89,90,91", - "alias_at_lanes": "etp23a, etp23b, etp23c, etp23d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp23"], + "2x50G[40G,25G,10G]": ["etp23a", "etp23b"] + } }, "Ethernet92": { "index": "24,24,24,24", "lanes": "92,93,94,95", - "alias_at_lanes": "etp24a, etp24b, etp24c, etp24d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp24"], + "2x50G[40G,25G,10G]": ["etp24a", "etp24b"] + } }, "Ethernet96": { "index": "25,25,25,25", "lanes": "96,97,98,99", - "alias_at_lanes": "etp25a, etp25b, etp25c, etp25d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp25"], + "2x50G[40G,25G,10G]": ["etp25a", "etp25b"] + } }, "Ethernet100": { "index": "26,26,26,26", "lanes": "100,101,102,103", - "alias_at_lanes": "etp26a, etp26b, etp26c, etp26d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp26"], + "2x50G[40G,25G,10G]": ["etp26a", "etp26b"] + } }, "Ethernet104": { "index": "27,27,27,27", "lanes": "104,105,106,107", - "alias_at_lanes": "etp27a, etp27b, etp27c, etp27d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp27"], + "2x50G[40G,25G,10G]": ["etp27a", "etp27b"] + } }, "Ethernet108": { "index": "28,28,28,28", "lanes": "108,109,110,111", - "alias_at_lanes": "etp28a, etp28b, etp28c, etp28d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp28"], + "2x50G[40G,25G,10G]": ["etp28a", "etp28b"] + } }, "Ethernet112": { "index": "29,29,29,29", "lanes": "112,113,114,115", - "alias_at_lanes": "etp29a, etp29b, etp29c, etp29d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp29"], + "2x50G[40G,25G,10G]": ["etp29a", "etp29b"] + } }, "Ethernet116": { "index": "30,30,30,30", "lanes": "116,117,118,119", - "alias_at_lanes": "etp30a, etp30b, etp30c, etp30d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp30"], + "2x50G[40G,25G,10G]": ["etp30a", "etp30b"] + } }, "Ethernet120": { "index": "31,31,31,31", "lanes": "120,121,122,123", - "alias_at_lanes": "etp31a, etp31b, etp31c, etp31d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp31"], + "2x50G[40G,25G,10G]": ["etp31a", "etp31b"] + } }, "Ethernet124": { "index": "32,32,32,32", "lanes": "124,125,126,127", - "alias_at_lanes": "etp32a, etp32b, etp32c, etp32d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp32"], + "2x50G[40G,25G,10G]": ["etp32a", "etp32b"] + } } } } diff --git a/device/mellanox/x86_64-mlnx_msn3420-r0/platform.json b/device/mellanox/x86_64-mlnx_msn3420-r0/platform.json index 401cd4b660..da8df3b25c 100644 --- a/device/mellanox/x86_64-mlnx_msn3420-r0/platform.json +++ b/device/mellanox/x86_64-mlnx_msn3420-r0/platform.json @@ -3,362 +3,446 @@ "Ethernet0": { "index": "1", "lanes": "0", - "alias_at_lanes": "etp1", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp1"] + } }, "Ethernet4": { "index": "2", "lanes": "4", - "alias_at_lanes": "etp2", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp2"] + } }, "Ethernet8": { "index": "3", "lanes": "8", - "alias_at_lanes": "etp3", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp3"] + } }, "Ethernet12": { "index": "4", "lanes": "12", - "alias_at_lanes": "etp4", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp4"] + } }, "Ethernet16": { "index": "5", "lanes": "16", - "alias_at_lanes": "etp5", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp5"] + } }, "Ethernet20": { "index": "6", "lanes": "20", - "alias_at_lanes": "etp6", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp6"] + } }, "Ethernet24": { "index": "7", "lanes": "24", - "alias_at_lanes": "etp7", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp7"] + } }, "Ethernet28": { "index": "8", "lanes": "28", - "alias_at_lanes": "etp8", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp8"] + } }, "Ethernet32": { "index": "9", "lanes": "32", - "alias_at_lanes": "etp9", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp9"] + } }, "Ethernet36": { "index": "10", "lanes": "36", - "alias_at_lanes": "etp10", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp10"] + } }, "Ethernet40": { "index": "11", "lanes": "40", - "alias_at_lanes": "etp11", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp11"] + } }, "Ethernet44": { "index": "12", "lanes": "44", - "alias_at_lanes": "etp12", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp12"] + } }, "Ethernet48": { "index": "13", "lanes": "48", - "alias_at_lanes": "etp13", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp13"] + } }, "Ethernet52": { "index": "14", "lanes": "52", - "alias_at_lanes": "etp14", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp14"] + } }, "Ethernet56": { "index": "15", "lanes": "56", - "alias_at_lanes": "etp15", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp15"] + } }, "Ethernet60": { "index": "16", "lanes": "60", - "alias_at_lanes": "etp16", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp16"] + } }, "Ethernet64": { "index": "17", "lanes": "64", - "alias_at_lanes": "etp17", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp17"] + } }, "Ethernet68": { "index": "18", "lanes": "68", - "alias_at_lanes": "etp18", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp18"] + } }, "Ethernet72": { "index": "19", "lanes": "72", - "alias_at_lanes": "etp19", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp19"] + } }, "Ethernet76": { "index": "20", "lanes": "76", - "alias_at_lanes": "etp20", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp20"] + } }, "Ethernet80": { "index": "21", "lanes": "80", - "alias_at_lanes": "etp21", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp21"] + } }, "Ethernet84": { "index": "22", "lanes": "84", - "alias_at_lanes": "etp22", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp22"] + } }, "Ethernet88": { "index": "23", "lanes": "88", - "alias_at_lanes": "etp23", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp23"] + } }, "Ethernet92": { "index": "24", "lanes": "92", - "alias_at_lanes": "etp24", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp24"] + } }, "Ethernet96": { "index": "25", "lanes": "96", - "alias_at_lanes": "etp25", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp25"] + } }, "Ethernet100": { "index": "26", "lanes": "100", - "alias_at_lanes": "etp26", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp26"] + } }, "Ethernet104": { "index": "27", "lanes": "104", - "alias_at_lanes": "etp27", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp27"] + } }, "Ethernet108": { "index": "28", "lanes": "108", - "alias_at_lanes": "etp28", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp28"] + } }, "Ethernet112": { "index": "29", "lanes": "112", - "alias_at_lanes": "etp29", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp29"] + } }, "Ethernet116": { "index": "30", "lanes": "116", - "alias_at_lanes": "etp30", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp30"] + } }, "Ethernet120": { "index": "31", "lanes": "120", - "alias_at_lanes": "etp31", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp31"] + } }, "Ethernet124": { "index": "32", "lanes": "124", - "alias_at_lanes": "etp32", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp32"] + } }, "Ethernet128": { "index": "33", "lanes": "128", - "alias_at_lanes": "etp33", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp33"] + } }, "Ethernet132": { "index": "34", "lanes": "132", - "alias_at_lanes": "etp34", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp34"] + } }, "Ethernet136": { "index": "35", "lanes": "136", - "alias_at_lanes": "etp35", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp35"] + } }, "Ethernet140": { "index": "36", "lanes": "140", - "alias_at_lanes": "etp36", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp36"] + } }, "Ethernet144": { "index": "37", "lanes": "144", - "alias_at_lanes": "etp37", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp37"] + } }, "Ethernet148": { "index": "38", "lanes": "148", - "alias_at_lanes": "etp38", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp38"] + } }, "Ethernet152": { "index": "39", "lanes": "152", - "alias_at_lanes": "etp39", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp39"] + } }, "Ethernet156": { "index": "40", "lanes": "156", - "alias_at_lanes": "etp40", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp40"] + } }, "Ethernet160": { "index": "41", "lanes": "160", - "alias_at_lanes": "etp41", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp41"] + } }, "Ethernet164": { "index": "42", "lanes": "164", - "alias_at_lanes": "etp42", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp42"] + } }, "Ethernet168": { "index": "43", "lanes": "168", - "alias_at_lanes": "etp43", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp43"] + } }, "Ethernet172": { "index": "44", "lanes": "172", - "alias_at_lanes": "etp44", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp44"] + } }, "Ethernet176": { "index": "45", "lanes": "176", - "alias_at_lanes": "etp45", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp45"] + } }, "Ethernet180": { "index": "46", "lanes": "180", - "alias_at_lanes": "etp46", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp46"] + } }, "Ethernet184": { "index": "47", "lanes": "184", - "alias_at_lanes": "etp47", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp47"] + } }, "Ethernet188": { "index": "48", "lanes": "188", - "alias_at_lanes": "etp48", - "breakout_modes": "1x25G[10G,1G]" + "breakout_modes": { + "1x25G[10G,1G]" : ["etp48"] + } }, "Ethernet192": { "index": "49,49,49,49", "lanes": "192,193,194,195", - "alias_at_lanes": "etp49a, etp49b, etp49c, etp49d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp49"], + "2x50G[40G,25G,10G,1G]": ["etp49a", "etp49b"], + "4x25G[10G,1G]": ["etp49a", "etp49b", "etp49c", "etp49d"] + } }, "Ethernet196": { "index": "50,50,50,50", "lanes": "196,197,198,199", - "alias_at_lanes": "etp50a, etp50b, etp50c, etp50d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp50"], + "2x50G[40G,25G,10G,1G]": ["etp50a", "etp50b"], + "4x25G[10G,1G]": ["etp50a", "etp50b", "etp50c", "etp50d"] + } }, "Ethernet200": { "index": "51,51,51,51", "lanes": "200,201,202,203", - "alias_at_lanes": "etp51a, etp51b, etp51c, etp51d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp51"], + "2x50G[40G,25G,10G,1G]": ["etp51a", "etp51b"], + "4x25G[10G,1G]": ["etp51a", "etp51b", "etp51c", "etp51d"] + } }, "Ethernet204": { "index": "52,52,52,52", "lanes": "204,205,206,207", - "alias_at_lanes": "etp52a, etp52b, etp52c, etp52d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp52"], + "2x50G[40G,25G,10G,1G]": ["etp52a", "etp52b"], + "4x25G[10G,1G]": ["etp52a", "etp52b", "etp52c", "etp52d"] + } }, "Ethernet208": { "index": "53,53,53,53", "lanes": "208,209,210,211", - "alias_at_lanes": "etp53a, etp53b, etp53c, etp53d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp53"], + "2x50G[40G,25G,10G,1G]": ["etp53a", "etp53b"], + "4x25G[10G,1G]": ["etp53a", "etp53b", "etp53c", "etp53d"] + } }, "Ethernet212": { "index": "54,54,54,54", "lanes": "212,213,214,215", - "alias_at_lanes": "etp54a, etp54b, etp54c, etp54d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp54"], + "2x50G[40G,25G,10G,1G]": ["etp54a", "etp54b"], + "4x25G[10G,1G]": ["etp54a", "etp54b", "etp54c", "etp54d"] + } }, "Ethernet216": { "index": "55,55,55,55", "lanes": "216,217,218,219", - "alias_at_lanes": "etp55a, etp55b, etp55c, etp55d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp55"], + "2x50G[40G,25G,10G,1G]": ["etp55a", "etp55b"], + "4x25G[10G,1G]": ["etp55a", "etp55b", "etp55c", "etp55d"] + } }, "Ethernet220": { "index": "56,56,56,56", "lanes": "220,221,222,223", - "alias_at_lanes": "etp56a, etp56b, etp56c, etp56d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp56"], + "2x50G[40G,25G,10G,1G]": ["etp56a", "etp56b"], + "4x25G[10G,1G]": ["etp56a", "etp56b", "etp56c", "etp56d"] + } }, "Ethernet224": { "index": "57,57,57,57", "lanes": "224,225,226,227", - "alias_at_lanes": "etp57a, etp57b, etp57c, etp57d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp57"], + "2x50G[40G,25G,10G,1G]": ["etp57a", "etp57b"], + "4x25G[10G,1G]": ["etp57a", "etp57b", "etp57c", "etp57d"] + } }, "Ethernet228": { "index": "58,58,58,58", "lanes": "228,229,230,231", - "alias_at_lanes": "etp58a, etp58b, etp58c, etp58d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp58"], + "2x50G[40G,25G,10G,1G]": ["etp58a", "etp58b"], + "4x25G[10G,1G]": ["etp58a", "etp58b", "etp58c", "etp58d"] + } }, "Ethernet232": { "index": "59,59,59,59", "lanes": "232,233,234,235", - "alias_at_lanes": "etp59a, etp59b, etp59c, etp59d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp59"], + "2x50G[40G,25G,10G,1G]": ["etp59a", "etp59b"], + "4x25G[10G,1G]": ["etp59a", "etp59b", "etp59c", "etp59d"] + } }, "Ethernet236": { "index": "60,60,60,60", "lanes": "236,237,238,239", - "alias_at_lanes": "etp60a, etp60b, etp60c, etp60d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp60"], + "2x50G[40G,25G,10G,1G]": ["etp60a", "etp60b"], + "4x25G[10G,1G]": ["etp60a", "etp60b", "etp60c", "etp60d"] + } } } } diff --git a/device/mellanox/x86_64-mlnx_msn3700-r0/platform.json b/device/mellanox/x86_64-mlnx_msn3700-r0/platform.json index 8231004e92..1ab03932bb 100644 --- a/device/mellanox/x86_64-mlnx_msn3700-r0/platform.json +++ b/device/mellanox/x86_64-mlnx_msn3700-r0/platform.json @@ -3,194 +3,290 @@ "Ethernet0": { "index": "1,1,1,1", "lanes": "0,1,2,3", - "alias_at_lanes": "etp1a, etp1b, etp1c, etp1d", - "breakout_modes": "1x200G[100G,50G,40G,25G,10G,1G],2x100G[50G,40G,25G,10G,1G],4x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x200G[100G,50G,40G,25G,10G,1G]": ["etp1"], + "2x100G[50G,40G,25G,10G,1G]": ["etp1a", "etp1b"], + "4x50G[40G,25G,10G,1G]": ["etp1a", "etp1b", "etp1c", "etp1d"] + } }, "Ethernet4": { "index": "2,2,2,2", "lanes": "4,5,6,7", - "alias_at_lanes": "etp2a, etp2b, etp2c, etp2d", - "breakout_modes": "1x200G[100G,50G,40G,25G,10G,1G],2x100G[50G,40G,25G,10G,1G],4x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x200G[100G,50G,40G,25G,10G,1G]": ["etp2"], + "2x100G[50G,40G,25G,10G,1G]": ["etp2a", "etp2b"], + "4x50G[40G,25G,10G,1G]": ["etp2a", "etp2b", "etp2c", "etp2d"] + } }, "Ethernet8": { "index": "3,3,3,3", "lanes": "8,9,10,11", - "alias_at_lanes": "etp3a, etp3b, etp3c, etp3d", - "breakout_modes": "1x200G[100G,50G,40G,25G,10G,1G],2x100G[50G,40G,25G,10G,1G],4x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x200G[100G,50G,40G,25G,10G,1G]": ["etp3"], + "2x100G[50G,40G,25G,10G,1G]": ["etp3a", "etp3b"], + "4x50G[40G,25G,10G,1G]": ["etp3a", "etp3b", "etp3c", "etp3d"] + } }, "Ethernet12": { "index": "4,4,4,4", "lanes": "12,13,14,15", - "alias_at_lanes": "etp4a, etp4b, etp4c, etp4d", - "breakout_modes": "1x200G[100G,50G,40G,25G,10G,1G],2x100G[50G,40G,25G,10G,1G],4x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x200G[100G,50G,40G,25G,10G,1G]": ["etp4"], + "2x100G[50G,40G,25G,10G,1G]": ["etp4a", "etp4b"], + "4x50G[40G,25G,10G,1G]": ["etp4a", "etp4b", "etp4c", "etp4d"] + } }, "Ethernet16": { "index": "5,5,5,5", "lanes": "16,17,18,19", - "alias_at_lanes": "etp5a, etp5b, etp5c, etp5d", - "breakout_modes": "1x200G[100G,50G,40G,25G,10G,1G],2x100G[50G,40G,25G,10G,1G],4x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x200G[100G,50G,40G,25G,10G,1G]": ["etp5"], + "2x100G[50G,40G,25G,10G,1G]": ["etp5a", "etp5b"], + "4x50G[40G,25G,10G,1G]": ["etp5a", "etp5b", "etp5c", "etp5d"] + } }, "Ethernet20": { "index": "6,6,6,6", "lanes": "20,21,22,23", - "alias_at_lanes": "etp6a, etp6b, etp6c, etp6d", - "breakout_modes": "1x200G[100G,50G,40G,25G,10G,1G],2x100G[50G,40G,25G,10G,1G],4x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x200G[100G,50G,40G,25G,10G,1G]": ["etp6"], + "2x100G[50G,40G,25G,10G,1G]": ["etp6a", "etp6b"], + "4x50G[40G,25G,10G,1G]": ["etp6a", "etp6b", "etp6c", "etp6d"] + } }, "Ethernet24": { "index": "7,7,7,7", "lanes": "24,25,26,27", - "alias_at_lanes": "etp7a, etp7b, etp7c, etp7d", - "breakout_modes": "1x200G[100G,50G,40G,25G,10G,1G],2x100G[50G,40G,25G,10G,1G],4x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x200G[100G,50G,40G,25G,10G,1G]": ["etp7"], + "2x100G[50G,40G,25G,10G,1G]": ["etp7a", "etp7b"], + "4x50G[40G,25G,10G,1G]": ["etp7a", "etp7b", "etp7c", "etp7d"] + } }, "Ethernet28": { "index": "8,8,8,8", "lanes": "28,29,30,31", - "alias_at_lanes": "etp8a, etp8b, etp8c, etp8d", - "breakout_modes": "1x200G[100G,50G,40G,25G,10G,1G],2x100G[50G,40G,25G,10G,1G],4x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x200G[100G,50G,40G,25G,10G,1G]": ["etp8"], + "2x100G[50G,40G,25G,10G,1G]": ["etp8a", "etp8b"], + "4x50G[40G,25G,10G,1G]": ["etp8a", "etp8b", "etp8c", "etp8d"] + } }, "Ethernet32": { "index": "9,9,9,9", "lanes": "32,33,34,35", - "alias_at_lanes": "etp9a, etp9b, etp9c, etp9d", - "breakout_modes": "1x200G[100G,50G,40G,25G,10G,1G],2x100G[50G,40G,25G,10G,1G],4x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x200G[100G,50G,40G,25G,10G,1G]": ["etp9"], + "2x100G[50G,40G,25G,10G,1G]": ["etp9a", "etp9b"], + "4x50G[40G,25G,10G,1G]": ["etp9a", "etp9b", "etp9c", "etp9d"] + } }, "Ethernet36": { "index": "10,10,10,10", "lanes": "36,37,38,39", - "alias_at_lanes": "etp10a, etp10b, etp10c, etp10d", - "breakout_modes": "1x200G[100G,50G,40G,25G,10G,1G],2x100G[50G,40G,25G,10G,1G],4x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x200G[100G,50G,40G,25G,10G,1G]": ["etp10"], + "2x100G[50G,40G,25G,10G,1G]": ["etp10a", "etp10b"], + "4x50G[40G,25G,10G,1G]": ["etp10a", "etp10b", "etp10c", "etp10d"] + } }, "Ethernet40": { "index": "11,11,11,11", "lanes": "40,41,42,43", - "alias_at_lanes": "etp11a, etp11b, etp11c, etp11d", - "breakout_modes": "1x200G[100G,50G,40G,25G,10G,1G],2x100G[50G,40G,25G,10G,1G],4x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x200G[100G,50G,40G,25G,10G,1G]": ["etp11"], + "2x100G[50G,40G,25G,10G,1G]": ["etp11a", "etp11b"], + "4x50G[40G,25G,10G,1G]": ["etp11a", "etp11b", "etp11c", "etp11d"] + } }, "Ethernet44": { "index": "12,12,12,12", "lanes": "44,45,46,47", - "alias_at_lanes": "etp12a, etp12b, etp12c, etp12d", - "breakout_modes": "1x200G[100G,50G,40G,25G,10G,1G],2x100G[50G,40G,25G,10G,1G],4x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x200G[100G,50G,40G,25G,10G,1G]": ["etp12"], + "2x100G[50G,40G,25G,10G,1G]": ["etp12a", "etp12b"], + "4x50G[40G,25G,10G,1G]": ["etp12a", "etp12b", "etp12c", "etp12d"] + } }, "Ethernet48": { "index": "13,13,13,13", "lanes": "48,49,50,51", - "alias_at_lanes": "etp13a, etp13b, etp13c, etp13d", - "breakout_modes": "1x200G[100G,50G,40G,25G,10G,1G],2x100G[50G,40G,25G,10G,1G],4x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x200G[100G,50G,40G,25G,10G,1G]": ["etp13"], + "2x100G[50G,40G,25G,10G,1G]": ["etp13a", "etp13b"], + "4x50G[40G,25G,10G,1G]": ["etp13a", "etp13b", "etp13c", "etp13d"] + } }, "Ethernet52": { "index": "14,14,14,14", "lanes": "52,53,54,55", - "alias_at_lanes": "etp14a, etp14b, etp14c, etp14d", - "breakout_modes": "1x200G[100G,50G,40G,25G,10G,1G],2x100G[50G,40G,25G,10G,1G],4x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x200G[100G,50G,40G,25G,10G,1G]": ["etp14"], + "2x100G[50G,40G,25G,10G,1G]": ["etp14a", "etp14b"], + "4x50G[40G,25G,10G,1G]": ["etp14a", "etp14b", "etp14c", "etp14d"] + } }, "Ethernet56": { "index": "15,15,15,15", "lanes": "56,57,58,59", - "alias_at_lanes": "etp15a, etp15b, etp15c, etp15d", - "breakout_modes": "1x200G[100G,50G,40G,25G,10G,1G],2x100G[50G,40G,25G,10G,1G],4x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x200G[100G,50G,40G,25G,10G,1G]": ["etp15"], + "2x100G[50G,40G,25G,10G,1G]": ["etp15a", "etp15b"], + "4x50G[40G,25G,10G,1G]": ["etp15a", "etp15b", "etp15c", "etp15d"] + } }, "Ethernet60": { "index": "16,16,16,16", "lanes": "60,61,62,63", - "alias_at_lanes": "etp16a, etp16b, etp16c, etp16d", - "breakout_modes": "1x200G[100G,50G,40G,25G,10G,1G],2x100G[50G,40G,25G,10G,1G],4x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x200G[100G,50G,40G,25G,10G,1G]": ["etp16"], + "2x100G[50G,40G,25G,10G,1G]": ["etp16a", "etp16b"], + "4x50G[40G,25G,10G,1G]": ["etp16a", "etp16b", "etp16c", "etp16d"] + } }, "Ethernet64": { "index": "17,17,17,17", "lanes": "64,65,66,67", - "alias_at_lanes": "etp17a, etp17b, etp17c, etp17d", - "breakout_modes": "1x200G[100G,50G,40G,25G,10G,1G],2x100G[50G,40G,25G,10G,1G],4x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x200G[100G,50G,40G,25G,10G,1G]": ["etp17"], + "2x100G[50G,40G,25G,10G,1G]": ["etp17a", "etp17b"], + "4x50G[40G,25G,10G,1G]": ["etp17a", "etp17b", "etp17c", "etp17d"] + } }, "Ethernet68": { "index": "18,18,18,18", "lanes": "68,69,70,71", - "alias_at_lanes": "etp18a, etp18b, etp18c, etp18d", - "breakout_modes": "1x200G[100G,50G,40G,25G,10G,1G],2x100G[50G,40G,25G,10G,1G],4x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x200G[100G,50G,40G,25G,10G,1G]": ["etp18"], + "2x100G[50G,40G,25G,10G,1G]": ["etp18a", "etp18b"], + "4x50G[40G,25G,10G,1G]": ["etp18a", "etp18b", "etp18c", "etp18d"] + } }, "Ethernet72": { "index": "19,19,19,19", "lanes": "72,73,74,75", - "alias_at_lanes": "etp19a, etp19b, etp19c, etp19d", - "breakout_modes": "1x200G[100G,50G,40G,25G,10G,1G],2x100G[50G,40G,25G,10G,1G],4x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x200G[100G,50G,40G,25G,10G,1G]": ["etp19"], + "2x100G[50G,40G,25G,10G,1G]": ["etp19a", "etp19b"], + "4x50G[40G,25G,10G,1G]": ["etp19a", "etp19b", "etp19c", "etp19d"] + } }, "Ethernet76": { "index": "20,20,20,20", "lanes": "76,77,78,79", - "alias_at_lanes": "etp20a, etp20b, etp20c, etp20d", - "breakout_modes": "1x200G[100G,50G,40G,25G,10G,1G],2x100G[50G,40G,25G,10G,1G],4x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x200G[100G,50G,40G,25G,10G,1G]": ["etp20"], + "2x100G[50G,40G,25G,10G,1G]": ["etp20a", "etp20b"], + "4x50G[40G,25G,10G,1G]": ["etp20a", "etp20b", "etp20c", "etp20d"] + } }, "Ethernet80": { "index": "21,21,21,21", "lanes": "80,81,82,83", - "alias_at_lanes": "etp21a, etp21b, etp21c, etp21d", - "breakout_modes": "1x200G[100G,50G,40G,25G,10G,1G],2x100G[50G,40G,25G,10G,1G],4x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x200G[100G,50G,40G,25G,10G,1G]": ["etp21"], + "2x100G[50G,40G,25G,10G,1G]": ["etp21a", "etp21b"], + "4x50G[40G,25G,10G,1G]": ["etp21a", "etp21b", "etp21c", "etp21d"] + } }, "Ethernet84": { "index": "22,22,22,22", "lanes": "84,85,86,87", - "alias_at_lanes": "etp22a, etp22b, etp22c, etp22d", - "breakout_modes": "1x200G[100G,50G,40G,25G,10G,1G],2x100G[50G,40G,25G,10G,1G],4x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x200G[100G,50G,40G,25G,10G,1G]": ["etp22"], + "2x100G[50G,40G,25G,10G,1G]": ["etp22a", "etp22b"], + "4x50G[40G,25G,10G,1G]": ["etp22a", "etp22b", "etp22c", "etp22d"] + } }, "Ethernet88": { "index": "23,23,23,23", "lanes": "88,89,90,91", - "alias_at_lanes": "etp23a, etp23b, etp23c, etp23d", - "breakout_modes": "1x200G[100G,50G,40G,25G,10G,1G],2x100G[50G,40G,25G,10G,1G],4x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x200G[100G,50G,40G,25G,10G,1G]": ["etp23"], + "2x100G[50G,40G,25G,10G,1G]": ["etp23a", "etp23b"], + "4x50G[40G,25G,10G,1G]": ["etp23a", "etp23b", "etp23c", "etp23d"] + } }, "Ethernet92": { "index": "24,24,24,24", "lanes": "92,93,94,95", - "alias_at_lanes": "etp24a, etp24b, etp24c, etp24d", - "breakout_modes": "1x200G[100G,50G,40G,25G,10G,1G],2x100G[50G,40G,25G,10G,1G],4x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x200G[100G,50G,40G,25G,10G,1G]": ["etp24"], + "2x100G[50G,40G,25G,10G,1G]": ["etp24a", "etp24b"], + "4x50G[40G,25G,10G,1G]": ["etp24a", "etp24b", "etp24c", "etp24d"] + } }, "Ethernet96": { "index": "25,25,25,25", "lanes": "96,97,98,99", - "alias_at_lanes": "etp25a, etp25b, etp25c, etp25d", - "breakout_modes": "1x200G[100G,50G,40G,25G,10G,1G],2x100G[50G,40G,25G,10G,1G],4x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x200G[100G,50G,40G,25G,10G,1G]": ["etp25"], + "2x100G[50G,40G,25G,10G,1G]": ["etp25a", "etp25b"], + "4x50G[40G,25G,10G,1G]": ["etp25a", "etp25b", "etp25c", "etp25d"] + } }, "Ethernet100": { "index": "26,26,26,26", "lanes": "100,101,102,103", - "alias_at_lanes": "etp26a, etp26b, etp26c, etp26d", - "breakout_modes": "1x200G[100G,50G,40G,25G,10G,1G],2x100G[50G,40G,25G,10G,1G],4x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x200G[100G,50G,40G,25G,10G,1G]": ["etp26"], + "2x100G[50G,40G,25G,10G,1G]": ["etp26a", "etp26b"], + "4x50G[40G,25G,10G,1G]": ["etp26a", "etp26b", "etp26c", "etp26d"] + } }, "Ethernet104": { "index": "27,27,27,27", "lanes": "104,105,106,107", - "alias_at_lanes": "etp27a, etp27b, etp27c, etp27d", - "breakout_modes": "1x200G[100G,50G,40G,25G,10G,1G],2x100G[50G,40G,25G,10G,1G],4x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x200G[100G,50G,40G,25G,10G,1G]": ["etp27"], + "2x100G[50G,40G,25G,10G,1G]": ["etp27a", "etp27b"], + "4x50G[40G,25G,10G,1G]": ["etp27a", "etp27b", "etp27c", "etp27d"] + } }, "Ethernet108": { "index": "28,28,28,28", "lanes": "108,109,110,111", - "alias_at_lanes": "etp28a, etp28b, etp28c, etp28d", - "breakout_modes": "1x200G[100G,50G,40G,25G,10G,1G],2x100G[50G,40G,25G,10G,1G],4x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x200G[100G,50G,40G,25G,10G,1G]": ["etp28"], + "2x100G[50G,40G,25G,10G,1G]": ["etp28a", "etp28b"], + "4x50G[40G,25G,10G,1G]": ["etp28a", "etp28b", "etp28c", "etp28d"] + } }, "Ethernet112": { "index": "29,29,29,29", "lanes": "112,113,114,115", - "alias_at_lanes": "etp29a, etp29b, etp29c, etp29d", - "breakout_modes": "1x200G[100G,50G,40G,25G,10G,1G],2x100G[50G,40G,25G,10G,1G],4x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x200G[100G,50G,40G,25G,10G,1G]": ["etp29"], + "2x100G[50G,40G,25G,10G,1G]": ["etp29a", "etp29b"], + "4x50G[40G,25G,10G,1G]": ["etp29a", "etp29b", "etp29c", "etp29d"] + } }, "Ethernet116": { "index": "30,30,30,30", "lanes": "116,117,118,119", - "alias_at_lanes": "etp30a, etp30b, etp30c, etp30d", - "breakout_modes": "1x200G[100G,50G,40G,25G,10G,1G],2x100G[50G,40G,25G,10G,1G],4x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x200G[100G,50G,40G,25G,10G,1G]": ["etp30"], + "2x100G[50G,40G,25G,10G,1G]": ["etp30a", "etp30b"], + "4x50G[40G,25G,10G,1G]": ["etp30a", "etp30b", "etp30c", "etp30d"] + } }, "Ethernet120": { "index": "31,31,31,31", "lanes": "120,121,122,123", - "alias_at_lanes": "etp31a, etp31b, etp31c, etp31d", - "breakout_modes": "1x200G[100G,50G,40G,25G,10G,1G],2x100G[50G,40G,25G,10G,1G],4x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x200G[100G,50G,40G,25G,10G,1G]": ["etp31"], + "2x100G[50G,40G,25G,10G,1G]": ["etp31a", "etp31b"], + "4x50G[40G,25G,10G,1G]": ["etp31a", "etp31b", "etp31c", "etp31d"] + } }, "Ethernet124": { "index": "32,32,32,32", "lanes": "124,125,126,127", - "alias_at_lanes": "etp32a, etp32b, etp32c, etp32d", - "breakout_modes": "1x200G[100G,50G,40G,25G,10G,1G],2x100G[50G,40G,25G,10G,1G],4x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x200G[100G,50G,40G,25G,10G,1G]": ["etp32"], + "2x100G[50G,40G,25G,10G,1G]": ["etp32a", "etp32b"], + "4x50G[40G,25G,10G,1G]": ["etp32a", "etp32b", "etp32c", "etp32d"] + } } } } diff --git a/device/mellanox/x86_64-mlnx_msn3700c-r0/platform.json b/device/mellanox/x86_64-mlnx_msn3700c-r0/platform.json index 33db99b06a..0a39adfa26 100644 --- a/device/mellanox/x86_64-mlnx_msn3700c-r0/platform.json +++ b/device/mellanox/x86_64-mlnx_msn3700c-r0/platform.json @@ -3,194 +3,290 @@ "Ethernet0": { "index": "1,1,1,1", "lanes": "0,1,2,3", - "alias_at_lanes": "etp1a, etp1b, etp1c, etp1d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp1"], + "2x50G[40G,25G,10G,1G]": ["etp1a", "etp1b"], + "4x25G[10G,1G]": ["etp1a", "etp1b", "etp1c", "etp1d"] + } }, "Ethernet4": { "index": "2,2,2,2", "lanes": "4,5,6,7", - "alias_at_lanes": "etp2a, etp2b, etp2c, etp2d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp2"], + "2x50G[40G,25G,10G,1G]": ["etp2a", "etp2b"], + "4x25G[10G,1G]": ["etp2a", "etp2b", "etp2c", "etp2d"] + } }, "Ethernet8": { "index": "3,3,3,3", "lanes": "8,9,10,11", - "alias_at_lanes": "etp3a, etp3b, etp3c, etp3d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp3"], + "2x50G[40G,25G,10G,1G]": ["etp3a", "etp3b"], + "4x25G[10G,1G]": ["etp3a", "etp3b", "etp3c", "etp3d"] + } }, "Ethernet12": { "index": "4,4,4,4", "lanes": "12,13,14,15", - "alias_at_lanes": "etp4a, etp4b, etp4c, etp4d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp4"], + "2x50G[40G,25G,10G,1G]": ["etp4a", "etp4b"], + "4x25G[10G,1G]": ["etp4a", "etp4b", "etp4c", "etp4d"] + } }, "Ethernet16": { "index": "5,5,5,5", "lanes": "16,17,18,19", - "alias_at_lanes": "etp5a, etp5b, etp5c, etp5d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp5"], + "2x50G[40G,25G,10G,1G]": ["etp5a", "etp5b"], + "4x25G[10G,1G]": ["etp5a", "etp5b", "etp5c", "etp5d"] + } }, "Ethernet20": { "index": "6,6,6,6", "lanes": "20,21,22,23", - "alias_at_lanes": "etp6a, etp6b, etp6c, etp6d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp6"], + "2x50G[40G,25G,10G,1G]": ["etp6a", "etp6b"], + "4x25G[10G,1G]": ["etp6a", "etp6b", "etp6c", "etp6d"] + } }, "Ethernet24": { "index": "7,7,7,7", "lanes": "24,25,26,27", - "alias_at_lanes": "etp7a, etp7b, etp7c, etp7d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp7"], + "2x50G[40G,25G,10G,1G]": ["etp7a", "etp7b"], + "4x25G[10G,1G]": ["etp7a", "etp7b", "etp7c", "etp7d"] + } }, "Ethernet28": { "index": "8,8,8,8", "lanes": "28,29,30,31", - "alias_at_lanes": "etp8a, etp8b, etp8c, etp8d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp8"], + "2x50G[40G,25G,10G,1G]": ["etp8a", "etp8b"], + "4x25G[10G,1G]": ["etp8a", "etp8b", "etp8c", "etp8d"] + } }, "Ethernet32": { "index": "9,9,9,9", "lanes": "32,33,34,35", - "alias_at_lanes": "etp9a, etp9b, etp9c, etp9d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp9"], + "2x50G[40G,25G,10G,1G]": ["etp9a", "etp9b"], + "4x25G[10G,1G]": ["etp9a", "etp9b", "etp9c", "etp9d"] + } }, "Ethernet36": { "index": "10,10,10,10", "lanes": "36,37,38,39", - "alias_at_lanes": "etp10a, etp10b, etp10c, etp10d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp10"], + "2x50G[40G,25G,10G,1G]": ["etp10a", "etp10b"], + "4x25G[10G,1G]": ["etp10a", "etp10b", "etp10c", "etp10d"] + } }, "Ethernet40": { "index": "11,11,11,11", "lanes": "40,41,42,43", - "alias_at_lanes": "etp11a, etp11b, etp11c, etp11d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp11"], + "2x50G[40G,25G,10G,1G]": ["etp11a", "etp11b"], + "4x25G[10G,1G]": ["etp11a", "etp11b", "etp11c", "etp11d"] + } }, "Ethernet44": { "index": "12,12,12,12", "lanes": "44,45,46,47", - "alias_at_lanes": "etp12a, etp12b, etp12c, etp12d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp12"], + "2x50G[40G,25G,10G,1G]": ["etp12a", "etp12b"], + "4x25G[10G,1G]": ["etp12a", "etp12b", "etp12c", "etp12d"] + } }, "Ethernet48": { "index": "13,13,13,13", "lanes": "48,49,50,51", - "alias_at_lanes": "etp13a, etp13b, etp13c, etp13d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp13"], + "2x50G[40G,25G,10G,1G]": ["etp13a", "etp13b"], + "4x25G[10G,1G]": ["etp13a", "etp13b", "etp13c", "etp13d"] + } }, "Ethernet52": { "index": "14,14,14,14", "lanes": "52,53,54,55", - "alias_at_lanes": "etp14a, etp14b, etp14c, etp14d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp14"], + "2x50G[40G,25G,10G,1G]": ["etp14a", "etp14b"], + "4x25G[10G,1G]": ["etp14a", "etp14b", "etp14c", "etp14d"] + } }, "Ethernet56": { "index": "15,15,15,15", "lanes": "56,57,58,59", - "alias_at_lanes": "etp15a, etp15b, etp15c, etp15d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp15"], + "2x50G[40G,25G,10G,1G]": ["etp15a", "etp15b"], + "4x25G[10G,1G]": ["etp15a", "etp15b", "etp15c", "etp15d"] + } }, "Ethernet60": { "index": "16,16,16,16", "lanes": "60,61,62,63", - "alias_at_lanes": "etp16a, etp16b, etp16c, etp16d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp16"], + "2x50G[40G,25G,10G,1G]": ["etp16a", "etp16b"], + "4x25G[10G,1G]": ["etp16a", "etp16b", "etp16c", "etp16d"] + } }, "Ethernet64": { "index": "17,17,17,17", "lanes": "64,65,66,67", - "alias_at_lanes": "etp17a, etp17b, etp17c, etp17d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp17"], + "2x50G[40G,25G,10G,1G]": ["etp17a", "etp17b"], + "4x25G[10G,1G]": ["etp17a", "etp17b", "etp17c", "etp17d"] + } }, "Ethernet68": { "index": "18,18,18,18", "lanes": "68,69,70,71", - "alias_at_lanes": "etp18a, etp18b, etp18c, etp18d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp18"], + "2x50G[40G,25G,10G,1G]": ["etp18a", "etp18b"], + "4x25G[10G,1G]": ["etp18a", "etp18b", "etp18c", "etp18d"] + } }, "Ethernet72": { "index": "19,19,19,19", "lanes": "72,73,74,75", - "alias_at_lanes": "etp19a, etp19b, etp19c, etp19d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp19"], + "2x50G[40G,25G,10G,1G]": ["etp19a", "etp19b"], + "4x25G[10G,1G]": ["etp19a", "etp19b", "etp19c", "etp19d"] + } }, "Ethernet76": { "index": "20,20,20,20", "lanes": "76,77,78,79", - "alias_at_lanes": "etp20a, etp20b, etp20c, etp20d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp20"], + "2x50G[40G,25G,10G,1G]": ["etp20a", "etp20b"], + "4x25G[10G,1G]": ["etp20a", "etp20b", "etp20c", "etp20d"] + } }, "Ethernet80": { "index": "21,21,21,21", "lanes": "80,81,82,83", - "alias_at_lanes": "etp21a, etp21b, etp21c, etp21d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp21"], + "2x50G[40G,25G,10G,1G]": ["etp21a", "etp21b"], + "4x25G[10G,1G]": ["etp21a", "etp21b", "etp21c", "etp21d"] + } }, "Ethernet84": { "index": "22,22,22,22", "lanes": "84,85,86,87", - "alias_at_lanes": "etp22a, etp22b, etp22c, etp22d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp22"], + "2x50G[40G,25G,10G,1G]": ["etp22a", "etp22b"], + "4x25G[10G,1G]": ["etp22a", "etp22b", "etp22c", "etp22d"] + } }, "Ethernet88": { "index": "23,23,23,23", "lanes": "88,89,90,91", - "alias_at_lanes": "etp23a, etp23b, etp23c, etp23d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp23"], + "2x50G[40G,25G,10G,1G]": ["etp23a", "etp23b"], + "4x25G[10G,1G]": ["etp23a", "etp23b", "etp23c", "etp23d"] + } }, "Ethernet92": { "index": "24,24,24,24", "lanes": "92,93,94,95", - "alias_at_lanes": "etp24a, etp24b, etp24c, etp24d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp24"], + "2x50G[40G,25G,10G,1G]": ["etp24a", "etp24b"], + "4x25G[10G,1G]": ["etp24a", "etp24b", "etp24c", "etp24d"] + } }, "Ethernet96": { "index": "25,25,25,25", "lanes": "96,97,98,99", - "alias_at_lanes": "etp25a, etp25b, etp25c, etp25d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp25"], + "2x50G[40G,25G,10G,1G]": ["etp25a", "etp25b"], + "4x25G[10G,1G]": ["etp25a", "etp25b", "etp25c", "etp25d"] + } }, "Ethernet100": { "index": "26,26,26,26", "lanes": "100,101,102,103", - "alias_at_lanes": "etp26a, etp26b, etp26c, etp26d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp26"], + "2x50G[40G,25G,10G,1G]": ["etp26a", "etp26b"], + "4x25G[10G,1G]": ["etp26a", "etp26b", "etp26c", "etp26d"] + } }, "Ethernet104": { "index": "27,27,27,27", "lanes": "104,105,106,107", - "alias_at_lanes": "etp27a, etp27b, etp27c, etp27d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp27"], + "2x50G[40G,25G,10G,1G]": ["etp27a", "etp27b"], + "4x25G[10G,1G]": ["etp27a", "etp27b", "etp27c", "etp27d"] + } }, "Ethernet108": { "index": "28,28,28,28", "lanes": "108,109,110,111", - "alias_at_lanes": "etp28a, etp28b, etp28c, etp28d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp28"], + "2x50G[40G,25G,10G,1G]": ["etp28a", "etp28b"], + "4x25G[10G,1G]": ["etp28a", "etp28b", "etp28c", "etp28d"] + } }, "Ethernet112": { "index": "29,29,29,29", "lanes": "112,113,114,115", - "alias_at_lanes": "etp29a, etp29b, etp29c, etp29d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp29"], + "2x50G[40G,25G,10G,1G]": ["etp29a", "etp29b"], + "4x25G[10G,1G]": ["etp29a", "etp29b", "etp29c", "etp29d"] + } }, "Ethernet116": { "index": "30,30,30,30", "lanes": "116,117,118,119", - "alias_at_lanes": "etp30a, etp30b, etp30c, etp30d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp30"], + "2x50G[40G,25G,10G,1G]": ["etp30a", "etp30b"], + "4x25G[10G,1G]": ["etp30a", "etp30b", "etp30c", "etp30d"] + } }, "Ethernet120": { "index": "31,31,31,31", "lanes": "120,121,122,123", - "alias_at_lanes": "etp31a, etp31b, etp31c, etp31d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp31"], + "2x50G[40G,25G,10G,1G]": ["etp31a", "etp31b"], + "4x25G[10G,1G]": ["etp31a", "etp31b", "etp31c", "etp31d"] + } }, "Ethernet124": { "index": "32,32,32,32", "lanes": "124,125,126,127", - "alias_at_lanes": "etp32a, etp32b, etp32c, etp32d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp32"], + "2x50G[40G,25G,10G,1G]": ["etp32a", "etp32b"], + "4x25G[10G,1G]": ["etp32a", "etp32b", "etp32c", "etp32d"] + } } } } diff --git a/device/mellanox/x86_64-mlnx_msn3800-r0/platform.json b/device/mellanox/x86_64-mlnx_msn3800-r0/platform.json index eff763be7d..6564e7dfda 100644 --- a/device/mellanox/x86_64-mlnx_msn3800-r0/platform.json +++ b/device/mellanox/x86_64-mlnx_msn3800-r0/platform.json @@ -3,386 +3,514 @@ "Ethernet0": { "index": "1,1,1,1", "lanes": "0,1,2,3", - "alias_at_lanes": "etp1a, etp1b, etp1c, etp1d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp1"], + "2x50G[40G,25G,10G]": ["etp1a", "etp1b"] + } }, "Ethernet4": { "index": "2,2,2,2", "lanes": "4,5,6,7", - "alias_at_lanes": "etp2a, etp2b, etp2c, etp2d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp2"], + "2x50G[40G,25G,10G]": ["etp2a", "etp2b"] + } }, "Ethernet8": { "index": "3,3,3,3", "lanes": "8,9,10,11", - "alias_at_lanes": "etp3a, etp3b, etp3c, etp3d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp3"], + "2x50G[40G,25G,10G]": ["etp3a", "etp3b"] + } }, "Ethernet12": { "index": "4,4,4,4", "lanes": "12,13,14,15", - "alias_at_lanes": "etp4a, etp4b, etp4c, etp4d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp4"], + "2x50G[40G,25G,10G]": ["etp4a", "etp4b"] + } }, "Ethernet16": { "index": "5,5,5,5", "lanes": "16,17,18,19", - "alias_at_lanes": "etp5a, etp5b, etp5c, etp5d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp5"], + "2x50G[40G,25G,10G]": ["etp5a", "etp5b"] + } }, "Ethernet20": { "index": "6,6,6,6", "lanes": "20,21,22,23", - "alias_at_lanes": "etp6a, etp6b, etp6c, etp6d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp6"], + "2x50G[40G,25G,10G]": ["etp6a", "etp6b"] + } }, "Ethernet24": { "index": "7,7,7,7", "lanes": "24,25,26,27", - "alias_at_lanes": "etp7a, etp7b, etp7c, etp7d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp7"], + "2x50G[40G,25G,10G]": ["etp7a", "etp7b"] + } }, "Ethernet28": { "index": "8,8,8,8", "lanes": "28,29,30,31", - "alias_at_lanes": "etp8a, etp8b, etp8c, etp8d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp8"], + "2x50G[40G,25G,10G]": ["etp8a", "etp8b"] + } }, "Ethernet32": { "index": "9,9,9,9", "lanes": "32,33,34,35", - "alias_at_lanes": "etp9a, etp9b, etp9c, etp9d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp9"], + "2x50G[40G,25G,10G]": ["etp9a", "etp9b"] + } }, "Ethernet36": { "index": "10,10,10,10", "lanes": "36,37,38,39", - "alias_at_lanes": "etp10a, etp10b, etp10c, etp10d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp10"], + "2x50G[40G,25G,10G]": ["etp10a", "etp10b"] + } }, "Ethernet40": { "index": "11,11,11,11", "lanes": "40,41,42,43", - "alias_at_lanes": "etp11a, etp11b, etp11c, etp11d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp11"], + "2x50G[40G,25G,10G]": ["etp11a", "etp11b"] + } }, "Ethernet44": { "index": "12,12,12,12", "lanes": "44,45,46,47", - "alias_at_lanes": "etp12a, etp12b, etp12c, etp12d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp12"], + "2x50G[40G,25G,10G]": ["etp12a", "etp12b"] + } }, "Ethernet48": { "index": "13,13,13,13", "lanes": "48,49,50,51", - "alias_at_lanes": "etp13a, etp13b, etp13c, etp13d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp13"], + "2x50G[40G,25G,10G]": ["etp13a", "etp13b"] + } }, "Ethernet52": { "index": "14,14,14,14", "lanes": "52,53,54,55", - "alias_at_lanes": "etp14a, etp14b, etp14c, etp14d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp14"], + "2x50G[40G,25G,10G]": ["etp14a", "etp14b"] + } }, "Ethernet56": { "index": "15,15,15,15", "lanes": "56,57,58,59", - "alias_at_lanes": "etp15a, etp15b, etp15c, etp15d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp15"], + "2x50G[40G,25G,10G]": ["etp15a", "etp15b"] + } }, "Ethernet60": { "index": "16,16,16,16", "lanes": "60,61,62,63", - "alias_at_lanes": "etp16a, etp16b, etp16c, etp16d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp16"], + "2x50G[40G,25G,10G]": ["etp16a", "etp16b"] + } }, "Ethernet64": { "index": "17,17,17,17", "lanes": "64,65,66,67", - "alias_at_lanes": "etp17a, etp17b, etp17c, etp17d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp17"], + "2x50G[40G,25G,10G]": ["etp17a", "etp17b"] + } }, "Ethernet68": { "index": "18,18,18,18", "lanes": "68,69,70,71", - "alias_at_lanes": "etp18a, etp18b, etp18c, etp18d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp18"], + "2x50G[40G,25G,10G]": ["etp18a", "etp18b"] + } }, "Ethernet72": { "index": "19,19,19,19", "lanes": "72,73,74,75", - "alias_at_lanes": "etp19a, etp19b, etp19c, etp19d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp19"], + "2x50G[40G,25G,10G]": ["etp19a", "etp19b"] + } }, "Ethernet76": { "index": "20,20,20,20", "lanes": "76,77,78,79", - "alias_at_lanes": "etp20a, etp20b, etp20c, etp20d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp20"], + "2x50G[40G,25G,10G]": ["etp20a", "etp20b"] + } }, "Ethernet80": { "index": "21,21,21,21", "lanes": "80,81,82,83", - "alias_at_lanes": "etp21a, etp21b, etp21c, etp21d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp21"], + "2x50G[40G,25G,10G]": ["etp21a", "etp21b"] + } }, "Ethernet84": { "index": "22,22,22,22", "lanes": "84,85,86,87", - "alias_at_lanes": "etp22a, etp22b, etp22c, etp22d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp22"], + "2x50G[40G,25G,10G]": ["etp22a", "etp22b"] + } }, "Ethernet88": { "index": "23,23,23,23", "lanes": "88,89,90,91", - "alias_at_lanes": "etp23a, etp23b, etp23c, etp23d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp23"], + "2x50G[40G,25G,10G]": ["etp23a", "etp23b"] + } }, "Ethernet92": { "index": "24,24,24,24", "lanes": "92,93,94,95", - "alias_at_lanes": "etp24a, etp24b, etp24c, etp24d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp24"], + "2x50G[40G,25G,10G]": ["etp24a", "etp24b"] + } }, "Ethernet96": { "index": "25,25,25,25", "lanes": "96,97,98,99", - "alias_at_lanes": "etp25a, etp25b, etp25c, etp25d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp25"], + "2x50G[40G,25G,10G]": ["etp25a", "etp25b"] + } }, "Ethernet100": { "index": "26,26,26,26", "lanes": "100,101,102,103", - "alias_at_lanes": "etp26a, etp26b, etp26c, etp26d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp26"], + "2x50G[40G,25G,10G]": ["etp26a", "etp26b"] + } }, "Ethernet104": { "index": "27,27,27,27", "lanes": "104,105,106,107", - "alias_at_lanes": "etp27a, etp27b, etp27c, etp27d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp27"], + "2x50G[40G,25G,10G]": ["etp27a", "etp27b"] + } }, "Ethernet108": { "index": "28,28,28,28", "lanes": "108,109,110,111", - "alias_at_lanes": "etp28a, etp28b, etp28c, etp28d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp28"], + "2x50G[40G,25G,10G]": ["etp28a", "etp28b"] + } }, "Ethernet112": { "index": "29,29,29,29", "lanes": "112,113,114,115", - "alias_at_lanes": "etp29a, etp29b, etp29c, etp29d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp29"], + "2x50G[40G,25G,10G]": ["etp29a", "etp29b"] + } }, "Ethernet116": { "index": "30,30,30,30", "lanes": "116,117,118,119", - "alias_at_lanes": "etp30a, etp30b, etp30c, etp30d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp30"], + "2x50G[40G,25G,10G]": ["etp30a", "etp30b"] + } }, "Ethernet120": { "index": "31,31,31,31", "lanes": "120,121,122,123", - "alias_at_lanes": "etp31a, etp31b, etp31c, etp31d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp31"], + "2x50G[40G,25G,10G]": ["etp31a", "etp31b"] + } }, "Ethernet124": { "index": "32,32,32,32", "lanes": "124,125,126,127", - "alias_at_lanes": "etp32a, etp32b, etp32c, etp32d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp32"], + "2x50G[40G,25G,10G]": ["etp32a", "etp32b"] + } }, "Ethernet128": { "index": "33,33,33,33", "lanes": "128,129,130,131", - "alias_at_lanes": "etp33a, etp33b, etp33c, etp33d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp33"], + "2x50G[40G,25G,10G]": ["etp33a", "etp33b"] + } }, "Ethernet132": { "index": "34,34,34,34", "lanes": "132,133,134,135", - "alias_at_lanes": "etp34a, etp34b, etp34c, etp34d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp34"], + "2x50G[40G,25G,10G]": ["etp34a", "etp34b"] + } }, "Ethernet136": { "index": "35,35,35,35", "lanes": "136,137,138,139", - "alias_at_lanes": "etp35a, etp35b, etp35c, etp35d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp35"], + "2x50G[40G,25G,10G]": ["etp35a", "etp35b"] + } }, "Ethernet140": { "index": "36,36,36,36", "lanes": "140,141,142,143", - "alias_at_lanes": "etp36a, etp36b, etp36c, etp36d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp36"], + "2x50G[40G,25G,10G]": ["etp36a", "etp36b"] + } }, "Ethernet144": { "index": "37,37,37,37", "lanes": "144,145,146,147", - "alias_at_lanes": "etp37a, etp37b, etp37c, etp37d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp37"], + "2x50G[40G,25G,10G]": ["etp37a", "etp37b"] + } }, "Ethernet148": { "index": "38,38,38,38", "lanes": "148,149,150,151", - "alias_at_lanes": "etp38a, etp38b, etp38c, etp38d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp38"], + "2x50G[40G,25G,10G]": ["etp38a", "etp38b"] + } }, "Ethernet152": { "index": "39,39,39,39", "lanes": "152,153,154,155", - "alias_at_lanes": "etp39a, etp39b, etp39c, etp39d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp39"], + "2x50G[40G,25G,10G]": ["etp39a", "etp39b"] + } }, "Ethernet156": { "index": "40,40,40,40", "lanes": "156,157,158,159", - "alias_at_lanes": "etp40a, etp40b, etp40c, etp40d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp40"], + "2x50G[40G,25G,10G]": ["etp40a", "etp40b"] + } }, "Ethernet160": { "index": "41,41,41,41", "lanes": "160,161,162,163", - "alias_at_lanes": "etp41a, etp41b, etp41c, etp41d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp41"], + "2x50G[40G,25G,10G]": ["etp41a", "etp41b"] + } }, "Ethernet164": { "index": "42,42,42,42", "lanes": "164,165,166,167", - "alias_at_lanes": "etp42a, etp42b, etp42c, etp42d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp42"], + "2x50G[40G,25G,10G]": ["etp42a", "etp42b"] + } }, "Ethernet168": { "index": "43,43,43,43", "lanes": "168,169,170,171", - "alias_at_lanes": "etp43a, etp43b, etp43c, etp43d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp43"], + "2x50G[40G,25G,10G]": ["etp43a", "etp43b"] + } }, "Ethernet172": { "index": "44,44,44,44", "lanes": "172,173,174,175", - "alias_at_lanes": "etp44a, etp44b, etp44c, etp44d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp44"], + "2x50G[40G,25G,10G]": ["etp44a", "etp44b"] + } }, "Ethernet176": { "index": "45,45,45,45", "lanes": "176,177,178,179", - "alias_at_lanes": "etp45a, etp45b, etp45c, etp45d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp45"], + "2x50G[40G,25G,10G]": ["etp45a", "etp45b"] + } }, "Ethernet180": { "index": "46,46,46,46", "lanes": "180,181,182,183", - "alias_at_lanes": "etp46a, etp46b, etp46c, etp46d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp46"], + "2x50G[40G,25G,10G]": ["etp46a", "etp46b"] + } }, "Ethernet184": { "index": "47,47,47,47", "lanes": "184,185,186,187", - "alias_at_lanes": "etp47a, etp47b, etp47c, etp47d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp47"], + "2x50G[40G,25G,10G]": ["etp47a", "etp47b"] + } }, "Ethernet188": { "index": "48,48,48,48", "lanes": "188,189,190,191", - "alias_at_lanes": "etp48a, etp48b, etp48c, etp48d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp48"], + "2x50G[40G,25G,10G]": ["etp48a", "etp48b"] + } }, "Ethernet192": { "index": "49,49,49,49", "lanes": "192,193,194,195", - "alias_at_lanes": "etp49a, etp49b, etp49c, etp49d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp49"], + "2x50G[40G,25G,10G]": ["etp49a", "etp49b"] + } }, "Ethernet196": { "index": "50,50,50,50", "lanes": "196,197,198,199", - "alias_at_lanes": "etp50a, etp50b, etp50c, etp50d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp50"], + "2x50G[40G,25G,10G]": ["etp50a", "etp50b"] + } }, "Ethernet200": { "index": "51,51,51,51", "lanes": "200,201,202,203", - "alias_at_lanes": "etp51a, etp51b, etp51c, etp51d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp51"], + "2x50G[40G,25G,10G]": ["etp51a", "etp51b"] + } }, "Ethernet204": { "index": "52,52,52,52", "lanes": "204,205,206,207", - "alias_at_lanes": "etp52a, etp52b, etp52c, etp52d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp52"], + "2x50G[40G,25G,10G]": ["etp52a", "etp52b"] + } }, "Ethernet208": { "index": "53,53,53,53", "lanes": "208,209,210,211", - "alias_at_lanes": "etp53a, etp53b, etp53c, etp53d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp53"], + "2x50G[40G,25G,10G]": ["etp53a", "etp53b"] + } }, "Ethernet212": { "index": "54,54,54,54", "lanes": "212,213,214,215", - "alias_at_lanes": "etp54a, etp54b, etp54c, etp54d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp54"], + "2x50G[40G,25G,10G]": ["etp54a", "etp54b"] + } }, "Ethernet216": { "index": "55,55,55,55", "lanes": "216,217,218,219", - "alias_at_lanes": "etp55a, etp55b, etp55c, etp55d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp55"], + "2x50G[40G,25G,10G]": ["etp55a", "etp55b"] + } }, "Ethernet220": { "index": "56,56,56,56", "lanes": "220,221,222,223", - "alias_at_lanes": "etp56a, etp56b, etp56c, etp56d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp56"], + "2x50G[40G,25G,10G]": ["etp56a", "etp56b"] + } }, "Ethernet224": { "index": "57,57,57,57", "lanes": "224,225,226,227", - "alias_at_lanes": "etp57a, etp57b, etp57c, etp57d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp57"], + "2x50G[40G,25G,10G]": ["etp57a", "etp57b"] + } }, "Ethernet228": { "index": "58,58,58,58", "lanes": "228,229,230,231", - "alias_at_lanes": "etp58a, etp58b, etp58c, etp58d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp58"], + "2x50G[40G,25G,10G]": ["etp58a", "etp58b"] + } }, "Ethernet232": { "index": "59,59,59,59", "lanes": "232,233,234,235", - "alias_at_lanes": "etp59a, etp59b, etp59c, etp59d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp59"], + "2x50G[40G,25G,10G]": ["etp59a", "etp59b"] + } }, "Ethernet236": { "index": "60,60,60,60", "lanes": "236,237,238,239", - "alias_at_lanes": "etp60a, etp60b, etp60c, etp60d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp60"], + "2x50G[40G,25G,10G]": ["etp60a", "etp60b"] + } }, "Ethernet240": { "index": "61,61,61,61", "lanes": "240,241,242,243", - "alias_at_lanes": "etp61a, etp61b, etp61c, etp61d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp61"], + "2x50G[40G,25G,10G]": ["etp61a", "etp61b"] + } }, "Ethernet244": { "index": "62,62,62,62", "lanes": "244,245,246,247", - "alias_at_lanes": "etp62a, etp62b, etp62c, etp62d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp62"], + "2x50G[40G,25G,10G]": ["etp62a", "etp62b"] + } }, "Ethernet248": { "index": "63,63,63,63", "lanes": "248,249,250,251", - "alias_at_lanes": "etp63a, etp63b, etp63c, etp63d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp63"], + "2x50G[40G,25G,10G]": ["etp63a", "etp63b"] + } }, "Ethernet252": { "index": "64,64,64,64", "lanes": "252,253,254,255", - "alias_at_lanes": "etp64a, etp64b, etp64c, etp64d", - "breakout_modes": "1x100G[50G,40G,25G,10G],2x50G[40G,25G,10G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G]": ["etp64"], + "2x50G[40G,25G,10G]": ["etp64a", "etp64b"] + } } } } diff --git a/device/mellanox/x86_64-mlnx_msn4410-r0/platform.json b/device/mellanox/x86_64-mlnx_msn4410-r0/platform.json index 01ad822181..e1ea36676b 100644 --- a/device/mellanox/x86_64-mlnx_msn4410-r0/platform.json +++ b/device/mellanox/x86_64-mlnx_msn4410-r0/platform.json @@ -3,194 +3,290 @@ "Ethernet0": { "index": "1,1,1,1", "lanes": "0,1,2,3", - "alias_at_lanes": "etp1a, etp1b, etp1c, etp1d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp1"], + "2x50G[40G,25G,10G,1G]": ["etp1a", "etp1b"], + "4x25G[10G,1G]": ["etp1a", "etp1b", "etp1c", "etp1d"] + } }, "Ethernet8": { "index": "2,2,2,2", "lanes": "8,9,10,11", - "alias_at_lanes": "etp2a, etp2b, etp2c, etp2d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp2"], + "2x50G[40G,25G,10G,1G]": ["etp2a", "etp2b"], + "4x25G[10G,1G]": ["etp2a", "etp2b", "etp2c", "etp2d"] + } }, "Ethernet16": { "index": "3,3,3,3", "lanes": "16,17,18,19", - "alias_at_lanes": "etp3a, etp3b, etp3c, etp3d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp3"], + "2x50G[40G,25G,10G,1G]": ["etp3a", "etp3b"], + "4x25G[10G,1G]": ["etp3a", "etp3b", "etp3c", "etp3d"] + } }, "Ethernet24": { "index": "4,4,4,4", "lanes": "24,25,26,27", - "alias_at_lanes": "etp4a, etp4b, etp4c, etp4d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp4"], + "2x50G[40G,25G,10G,1G]": ["etp4a", "etp4b"], + "4x25G[10G,1G]": ["etp4a", "etp4b", "etp4c", "etp4d"] + } }, "Ethernet32": { "index": "5,5,5,5", "lanes": "32,33,34,35", - "alias_at_lanes": "etp5a, etp5b, etp5c, etp5d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp5"], + "2x50G[40G,25G,10G,1G]": ["etp5a", "etp5b"], + "4x25G[10G,1G]": ["etp5a", "etp5b", "etp5c", "etp5d"] + } }, "Ethernet40": { "index": "6,6,6,6", "lanes": "40,41,42,43", - "alias_at_lanes": "etp6a, etp6b, etp6c, etp6d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp6"], + "2x50G[40G,25G,10G,1G]": ["etp6a", "etp6b"], + "4x25G[10G,1G]": ["etp6a", "etp6b", "etp6c", "etp6d"] + } }, "Ethernet48": { "index": "7,7,7,7", "lanes": "48,49,50,51", - "alias_at_lanes": "etp7a, etp7b, etp7c, etp7d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp7"], + "2x50G[40G,25G,10G,1G]": ["etp7a", "etp7b"], + "4x25G[10G,1G]": ["etp7a", "etp7b", "etp7c", "etp7d"] + } }, "Ethernet56": { "index": "8,8,8,8", "lanes": "56,57,58,59", - "alias_at_lanes": "etp8a, etp8b, etp8c, etp8d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp8"], + "2x50G[40G,25G,10G,1G]": ["etp8a", "etp8b"], + "4x25G[10G,1G]": ["etp8a", "etp8b", "etp8c", "etp8d"] + } }, "Ethernet64": { "index": "9,9,9,9", "lanes": "64,65,66,67", - "alias_at_lanes": "etp9a, etp9b, etp9c, etp9d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp9"], + "2x50G[40G,25G,10G,1G]": ["etp9a", "etp9b"], + "4x25G[10G,1G]": ["etp9a", "etp9b", "etp9c", "etp9d"] + } }, "Ethernet72": { "index": "10,10,10,10", "lanes": "72,73,74,75", - "alias_at_lanes": "etp10a, etp10b, etp10c, etp10d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp10"], + "2x50G[40G,25G,10G,1G]": ["etp10a", "etp10b"], + "4x25G[10G,1G]": ["etp10a", "etp10b", "etp10c", "etp10d"] + } }, "Ethernet80": { "index": "11,11,11,11", "lanes": "80,81,82,83", - "alias_at_lanes": "etp11a, etp11b, etp11c, etp11d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp11"], + "2x50G[40G,25G,10G,1G]": ["etp11a", "etp11b"], + "4x25G[10G,1G]": ["etp11a", "etp11b", "etp11c", "etp11d"] + } }, "Ethernet88": { "index": "12,12,12,12", "lanes": "88,89,90,91", - "alias_at_lanes": "etp12a, etp12b, etp12c, etp12d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp12"], + "2x50G[40G,25G,10G,1G]": ["etp12a", "etp12b"], + "4x25G[10G,1G]": ["etp12a", "etp12b", "etp12c", "etp12d"] + } }, "Ethernet96": { "index": "13,13,13,13", "lanes": "96,97,98,99", - "alias_at_lanes": "etp13a, etp13b, etp13c, etp13d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp13"], + "2x50G[40G,25G,10G,1G]": ["etp13a", "etp13b"], + "4x25G[10G,1G]": ["etp13a", "etp13b", "etp13c", "etp13d"] + } }, "Ethernet104": { "index": "14,14,14,14", "lanes": "104,105,106,107", - "alias_at_lanes": "etp14a, etp14b, etp14c, etp14d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp14"], + "2x50G[40G,25G,10G,1G]": ["etp14a", "etp14b"], + "4x25G[10G,1G]": ["etp14a", "etp14b", "etp14c", "etp14d"] + } }, "Ethernet112": { "index": "15,15,15,15", "lanes": "112,113,114,115", - "alias_at_lanes": "etp15a, etp15b, etp15c, etp15d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp15"], + "2x50G[40G,25G,10G,1G]": ["etp15a", "etp15b"], + "4x25G[10G,1G]": ["etp15a", "etp15b", "etp15c", "etp15d"] + } }, "Ethernet120": { "index": "16,16,16,16", "lanes": "120,121,122,123", - "alias_at_lanes": "etp16a, etp16b, etp16c, etp16d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp16"], + "2x50G[40G,25G,10G,1G]": ["etp16a", "etp16b"], + "4x25G[10G,1G]": ["etp16a", "etp16b", "etp16c", "etp16d"] + } }, "Ethernet128": { "index": "17,17,17,17", "lanes": "128,129,130,131", - "alias_at_lanes": "etp17a, etp17b, etp17c, etp17d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp17"], + "2x50G[40G,25G,10G,1G]": ["etp17a", "etp17b"], + "4x25G[10G,1G]": ["etp17a", "etp17b", "etp17c", "etp17d"] + } }, "Ethernet136": { "index": "18,18,18,18", "lanes": "136,137,138,139", - "alias_at_lanes": "etp18a, etp18b, etp18c, etp18d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp18"], + "2x50G[40G,25G,10G,1G]": ["etp18a", "etp18b"], + "4x25G[10G,1G]": ["etp18a", "etp18b", "etp18c", "etp18d"] + } }, "Ethernet144": { "index": "19,19,19,19", "lanes": "144,145,146,147", - "alias_at_lanes": "etp19a, etp19b, etp19c, etp19d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp19"], + "2x50G[40G,25G,10G,1G]": ["etp19a", "etp19b"], + "4x25G[10G,1G]": ["etp19a", "etp19b", "etp19c", "etp19d"] + } }, "Ethernet152": { "index": "20,20,20,20", "lanes": "152,153,154,155", - "alias_at_lanes": "etp20a, etp20b, etp20c, etp20d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp20"], + "2x50G[40G,25G,10G,1G]": ["etp20a", "etp20b"], + "4x25G[10G,1G]": ["etp20a", "etp20b", "etp20c", "etp20d"] + } }, "Ethernet160": { "index": "21,21,21,21", "lanes": "160,161,162,163", - "alias_at_lanes": "etp21a, etp21b, etp21c, etp21d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp21"], + "2x50G[40G,25G,10G,1G]": ["etp21a", "etp21b"], + "4x25G[10G,1G]": ["etp21a", "etp21b", "etp21c", "etp21d"] + } }, "Ethernet168": { "index": "22,22,22,22", "lanes": "168,169,170,171", - "alias_at_lanes": "etp22a, etp22b, etp22c, etp22d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp22"], + "2x50G[40G,25G,10G,1G]": ["etp22a", "etp22b"], + "4x25G[10G,1G]": ["etp22a", "etp22b", "etp22c", "etp22d"] + } }, "Ethernet176": { "index": "23,23,23,23", "lanes": "176,177,178,179", - "alias_at_lanes": "etp23a, etp23b, etp23c, etp23d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp23"], + "2x50G[40G,25G,10G,1G]": ["etp23a", "etp23b"], + "4x25G[10G,1G]": ["etp23a", "etp23b", "etp23c", "etp23d"] + } }, "Ethernet184": { "index": "24,24,24,24", "lanes": "184,185,186,187", - "alias_at_lanes": "etp24a, etp24b, etp24c, etp24d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G],4x25G[10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp24"], + "2x50G[40G,25G,10G,1G]": ["etp24a", "etp24b"], + "4x25G[10G,1G]": ["etp24a", "etp24b", "etp24c", "etp24d"] + } }, "Ethernet192": { "index": "25,25,25,25,25,25,25,25", "lanes": "192,193,194,195,196,197,198,199", - "alias_at_lanes": "etp25a, etp25b, etp25c, etp25d, etp25e, etp25f, etp25g, etp25h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp25"], + "2x50G[40G,25G,10G,1G]": ["etp25a", "etp25b"], + "4x25G[10G,1G]": ["etp25a", "etp25b", "etp25c", "etp25d"] + } }, "Ethernet200": { "index": "26,26,26,26,26,26,26,26", "lanes": "200,201,202,203,204,205,206,207", - "alias_at_lanes": "etp26a, etp26b, etp26c, etp26d, etp26e, etp26f, etp26g, etp26h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp26"], + "2x50G[40G,25G,10G,1G]": ["etp26a", "etp26b"], + "4x25G[10G,1G]": ["etp26a", "etp26b", "etp26c", "etp26d"] + } }, "Ethernet208": { "index": "27,27,27,27,27,27,27,27", "lanes": "208,209,210,211,212,213,214,215", - "alias_at_lanes": "etp27a, etp27b, etp27c, etp27d, etp27e, etp27f, etp27g, etp27h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp27"], + "2x50G[40G,25G,10G,1G]": ["etp27a", "etp27b"], + "4x25G[10G,1G]": ["etp27a", "etp27b", "etp27c", "etp27d"] + } }, "Ethernet216": { "index": "28,28,28,28,28,28,28,28", "lanes": "216,217,218,219,220,221,222,223", - "alias_at_lanes": "etp28a, etp28b, etp28c, etp28d, etp28e, etp28f, etp28g, etp28h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp28"], + "2x50G[40G,25G,10G,1G]": ["etp28a", "etp28b"], + "4x25G[10G,1G]": ["etp28a", "etp28b", "etp28c", "etp28d"] + } }, "Ethernet224": { "index": "29,29,29,29,29,29,29,29", "lanes": "224,225,226,227,228,229,230,231", - "alias_at_lanes": "etp29a, etp29b, etp29c, etp29d, etp29e, etp29f, etp29g, etp29h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp29"], + "2x50G[40G,25G,10G,1G]": ["etp29a", "etp29b"], + "4x25G[10G,1G]": ["etp29a", "etp29b", "etp29c", "etp29d"] + } }, "Ethernet232": { "index": "30,30,30,30,30,30,30,30", "lanes": "232,233,234,235,236,237,238,239", - "alias_at_lanes": "etp30a, etp30b, etp30c, etp30d, etp30e, etp30f, etp30g, etp30h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp30"], + "2x50G[40G,25G,10G,1G]": ["etp30a", "etp30b"], + "4x25G[10G,1G]": ["etp30a", "etp30b", "etp30c", "etp30d"] + } }, "Ethernet240": { "index": "31,31,31,31,31,31,31,31", "lanes": "240,241,242,243,244,245,246,247", - "alias_at_lanes": "etp31a, etp31b, etp31c, etp31d, etp31e, etp31f, etp31g, etp31h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp31"], + "2x50G[40G,25G,10G,1G]": ["etp31a", "etp31b"], + "4x25G[10G,1G]": ["etp31a", "etp31b", "etp31c", "etp31d"] + } }, "Ethernet248": { "index": "32,32,32,32,32,32,32,32", "lanes": "248,249,250,251,252,253,254,255", - "alias_at_lanes": "etp32a, etp32b, etp32c, etp32d, etp32e, etp32f, etp32g, etp32h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp32"], + "2x50G[40G,25G,10G,1G]": ["etp32a", "etp32b"], + "4x25G[10G,1G]": ["etp32a", "etp32b", "etp32c", "etp32d"] + } } } } diff --git a/device/mellanox/x86_64-mlnx_msn4600c-r0/platform.json b/device/mellanox/x86_64-mlnx_msn4600c-r0/platform.json index 7f9b9202b9..adf8e27478 100644 --- a/device/mellanox/x86_64-mlnx_msn4600c-r0/platform.json +++ b/device/mellanox/x86_64-mlnx_msn4600c-r0/platform.json @@ -2,387 +2,515 @@ "interfaces": { "Ethernet0": { "index": "1,1,1,1", - "lanes": "0,1,2,3", - "alias_at_lanes": "etp1a, etp1b, etp1c, etp1d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "lanes": "0,1,2,3", + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp1"], + "2x50G[40G,25G,10G,1G]": ["etp1a", "etp1b"] + } }, "Ethernet8": { "index": "2,2,2,2", - "lanes": "8,9,10,11", - "alias_at_lanes": "etp2a, etp2b, etp2c, etp2d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "lanes": "8,9,10,11", + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp2"], + "2x50G[40G,25G,10G,1G]": ["etp2a", "etp2b"] + } }, "Ethernet16": { "index": "3,3,3,3", "lanes": "16,17,18,19", - "alias_at_lanes": "etp3a, etp3b, etp3c, etp3d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp3"], + "2x50G[40G,25G,10G,1G]": ["etp3a", "etp3b"] + } }, "Ethernet24": { "index": "4,4,4,4", "lanes": "24,25,26,27", - "alias_at_lanes": "etp4a, etp4b, etp4c, etp4d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp4"], + "2x50G[40G,25G,10G,1G]": ["etp4a", "etp4b"] + } }, "Ethernet32": { "index": "5,5,5,5", "lanes": "32,33,34,35", - "alias_at_lanes": "etp5a, etp5b, etp5c, etp5d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp5"], + "2x50G[40G,25G,10G,1G]": ["etp5a", "etp5b"] + } }, "Ethernet40": { "index": "6,6,6,6", "lanes": "40,41,42,43", - "alias_at_lanes": "etp6a, etp6b, etp6c, etp6d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp6"], + "2x50G[40G,25G,10G,1G]": ["etp6a", "etp6b"] + } }, "Ethernet48": { "index": "7,7,7,7", "lanes": "48,49,50,51", - "alias_at_lanes": "etp7a, etp7b, etp7c, etp7d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp7"], + "2x50G[40G,25G,10G,1G]": ["etp7a", "etp7b"] + } }, "Ethernet56": { "index": "8,8,8,8", "lanes": "56,57,58,59", - "alias_at_lanes": "etp8a, etp8b, etp8c, etp8d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp8"], + "2x50G[40G,25G,10G,1G]": ["etp8a", "etp8b"] + } }, "Ethernet64": { "index": "9,9,9,9", "lanes": "64,65,66,67", - "alias_at_lanes": "etp9a, etp9b, etp9c, etp9d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp9"], + "2x50G[40G,25G,10G,1G]": ["etp9a", "etp9b"] + } }, "Ethernet72": { "index": "10,10,10,10", - "lanes": "72,73,74,75", - "alias_at_lanes": "etp10a, etp10b, etp10c, etp10d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "lanes": "72,73,74,75", + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp10"], + "2x50G[40G,25G,10G,1G]": ["etp10a", "etp10b"] + } }, "Ethernet80": { "index": "11,11,11,11", "lanes": "80,81,82,83", - "alias_at_lanes": "etp11a, etp11b, etp11c, etp11d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp11"], + "2x50G[40G,25G,10G,1G]": ["etp11a", "etp11b"] + } }, "Ethernet88": { "index": "12,12,12,12", "lanes": "88,89,90,91", - "alias_at_lanes": "etp12a, etp12b, etp12c, etp12d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" - }, + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp12"], + "2x50G[40G,25G,10G,1G]": ["etp12a", "etp12b"] + } + }, "Ethernet96": { "index": "13,13,13,13", "lanes": "96,97,98,99", - "alias_at_lanes": "etp13a, etp13b, etp13c, etp13d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp13"], + "2x50G[40G,25G,10G,1G]": ["etp13a", "etp13b"] + } }, "Ethernet104": { "index": "14,14,14,14", "lanes": "104,105,106,107", - "alias_at_lanes": "etp14a, etp14b, etp14c, etp14d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp14"], + "2x50G[40G,25G,10G,1G]": ["etp14a", "etp14b"] + } }, "Ethernet112": { "index": "15,15,15,15", "lanes": "112,113,114,115", - "alias_at_lanes": "etp15a, etp15b, etp15c, etp15d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp15"], + "2x50G[40G,25G,10G,1G]": ["etp15a", "etp15b"] + } }, "Ethernet120": { "index": "16,16,16,16", "lanes": "120,121,122,123", - "alias_at_lanes": "etp16a, etp16b, etp16c, etp16d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp16"], + "2x50G[40G,25G,10G,1G]": ["etp16a", "etp16b"] + } }, "Ethernet128": { "index": "17,17,17,17", "lanes": "128,129,130,131", - "alias_at_lanes": "etp17a, etp17b, etp17c, etp17d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp17"], + "2x50G[40G,25G,10G,1G]": ["etp17a", "etp17b"] + } }, "Ethernet136": { "index": "18,18,18,18", "lanes": "136,137,138,139", - "alias_at_lanes": "etp18a, etp18b, etp18c, etp18d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp18"], + "2x50G[40G,25G,10G,1G]": ["etp18a", "etp18b"] + } }, "Ethernet144": { "index": "19,19,19,19", "lanes": "144,145,146,147", - "alias_at_lanes": "etp19a, etp19b, etp19c, etp19d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp19"], + "2x50G[40G,25G,10G,1G]": ["etp19a", "etp19b"] + } }, "Ethernet152": { "index": "20,20,20,20", "lanes": "152,153,154,155", - "alias_at_lanes": "etp20a, etp20b, etp20c, etp20d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp20"], + "2x50G[40G,25G,10G,1G]": ["etp20a", "etp20b"] + } }, "Ethernet160": { "index": "21,21,21,21", "lanes": "160,161,162,163", - "alias_at_lanes": "etp21a, etp21b, etp21c, etp21d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp21"], + "2x50G[40G,25G,10G,1G]": ["etp21a", "etp21b"] + } }, "Ethernet168": { "index": "22,22,22,22", "lanes": "168,169,170,171", - "alias_at_lanes": "etp22a, etp22b, etp22c, etp22d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp22"], + "2x50G[40G,25G,10G,1G]": ["etp22a", "etp22b"] + } }, "Ethernet176": { "index": "23,23,23,23", "lanes": "176,177,178,179", - "alias_at_lanes": "etp23a, etp23b, etp23c, etp23d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp23"], + "2x50G[40G,25G,10G,1G]": ["etp23a", "etp23b"] + } }, "Ethernet184": { "index": "24,24,24,24", "lanes": "184,185,186,187", - "alias_at_lanes": "etp24a, etp24b, etp24c, etp24d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp24"], + "2x50G[40G,25G,10G,1G]": ["etp24a", "etp24b"] + } }, "Ethernet192": { "index": "25,25,25,25", "lanes": "192,193,194,195", - "alias_at_lanes": "etp25a, etp25b, etp25c, etp25d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp25"], + "2x50G[40G,25G,10G,1G]": ["etp25a", "etp25b"] + } }, "Ethernet200": { "index": "26,26,26,26", "lanes": "200,201,202,203", - "alias_at_lanes": "etp26a, etp26b, etp26c, etp26d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp26"], + "2x50G[40G,25G,10G,1G]": ["etp26a", "etp26b"] + } }, "Ethernet208": { "index": "27,27,27,27", "lanes": "208,209,210,211", - "alias_at_lanes": "etp27a, etp27b, etp27c, etp27d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp27"], + "2x50G[40G,25G,10G,1G]": ["etp27a", "etp27b"] + } }, "Ethernet216": { "index": "28,28,28,28", "lanes": "216,217,218,219", - "alias_at_lanes": "etp28a, etp28b, etp28c, etp28d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp28"], + "2x50G[40G,25G,10G,1G]": ["etp28a", "etp28b"] + } }, "Ethernet224": { "index": "29,29,29,29", "lanes": "224,225,226,227", - "alias_at_lanes": "etp29a, etp29b, etp29c, etp29d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp29"], + "2x50G[40G,25G,10G,1G]": ["etp29a", "etp29b"] + } }, "Ethernet232": { "index": "30,30,30,30", "lanes": "232,233,234,235", - "alias_at_lanes": "etp30a, etp30b, etp30c, etp30d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp30"], + "2x50G[40G,25G,10G,1G]": ["etp30a", "etp30b"] + } }, "Ethernet240": { "index": "31,31,31,31", "lanes": "240,241,242,243", - "alias_at_lanes": "etp31a, etp31b, etp31c, etp31d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp31"], + "2x50G[40G,25G,10G,1G]": ["etp31a", "etp31b"] + } }, "Ethernet248": { "index": "32,32,32,32", "lanes": "248,249,250,251", - "alias_at_lanes": "etp32a, etp32b, etp32c, etp32d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp32"], + "2x50G[40G,25G,10G,1G]": ["etp32a", "etp32b"] + } }, "Ethernet256": { "index": "33,33,33,33", "lanes": "256,257,258,259", - "alias_at_lanes": "etp33a, etp33b, etp33c, etp33d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp33"], + "2x50G[40G,25G,10G,1G]": ["etp33a", "etp33b"] + } }, "Ethernet264": { "index": "34,34,34,34", "lanes": "264,265,266,267", - "alias_at_lanes": "etp34a, etp34b, etp34c, etp34d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp34"], + "2x50G[40G,25G,10G,1G]": ["etp34a", "etp34b"] + } }, "Ethernet272": { "index": "35,35,35,35", "lanes": "272,273,274,275", - "alias_at_lanes": "etp35a, etp35b, etp35c, etp35d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp35"], + "2x50G[40G,25G,10G,1G]": ["etp35a", "etp35b"] + } }, "Ethernet280": { "index": "36,36,36,36", "lanes": "280,281,282,283", - "alias_at_lanes": "etp36a, etp36b, etp36c, etp36d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp36"], + "2x50G[40G,25G,10G,1G]": ["etp36a", "etp36b"] + } }, "Ethernet288": { "index": "37,37,37,37", "lanes": "288,289,290,291", - "alias_at_lanes": "etp37a, etp37b, etp37c, etp37d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp37"], + "2x50G[40G,25G,10G,1G]": ["etp37a", "etp37b"] + } }, "Ethernet296": { "index": "38,38,38,38", "lanes": "296,297,298,299", - "alias_at_lanes": "etp38a, etp38b, etp38c, etp38d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp38"], + "2x50G[40G,25G,10G,1G]": ["etp38a", "etp38b"] + } }, "Ethernet304": { "index": "39,39,39,39", "lanes": "304,305,306,307", - "alias_at_lanes": "etp39a, etp39b, etp39c, etp39d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp39"], + "2x50G[40G,25G,10G,1G]": ["etp39a", "etp39b"] + } }, "Ethernet312": { "index": "40,40,40,40", "lanes": "312,313,314,315", - "alias_at_lanes": "etp40a, etp40b, etp40c, etp40d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp40"], + "2x50G[40G,25G,10G,1G]": ["etp40a", "etp40b"] + } }, "Ethernet320": { "index": "41,41,41,41", "lanes": "320,321,322,323", - "alias_at_lanes": "etp41a, etp41b, etp41c, etp41d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp41"], + "2x50G[40G,25G,10G,1G]": ["etp42a", "etp42b"] + } }, "Ethernet328": { "index": "42,42,42,42", "lanes": "328,329,330,331", - "alias_at_lanes": "etp42a, etp42b, etp42c, etp42d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp42"], + "2x50G[40G,25G,10G,1G]": ["etp42a", "etp42b"] + } }, "Ethernet336": { "index": "43,43,43,43", "lanes": "336,337,338,339", - "alias_at_lanes": "etp43a, etp43b, etp43c, etp43d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp43"], + "2x50G[40G,25G,10G,1G]": ["etp43a", "etp43b"] + } }, "Ethernet344": { "index": "44,44,44,44", "lanes": "344,345,346,347", - "alias_at_lanes": "etp44a, etp44b, etp44c, etp44d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp44"], + "2x50G[40G,25G,10G,1G]": ["etp44a", "etp44b"] + } }, "Ethernet352": { "index": "45,45,45,45", "lanes": "352,353,354,355", - "alias_at_lanes": "etp45a, etp45b, etp45c, etp45d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp45"], + "2x50G[40G,25G,10G,1G]": ["etp45a", "etp45b"] + } }, "Ethernet360": { "index": "46,46,46,46", "lanes": "360,361,362,363", - "alias_at_lanes": "etp46a, etp46b, etp46c, etp46d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp46"], + "2x50G[40G,25G,10G,1G]": ["etp46a", "etp46b"] + } }, "Ethernet368": { "index": "47,47,47,47", "lanes": "368,369,370,371", - "alias_at_lanes": "etp47a, etp47b, etp47c, etp47d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp47"], + "2x50G[40G,25G,10G,1G]": ["etp47a", "etp47b"] + } }, "Ethernet376": { "index": "48,48,48,48", "lanes": "376,377,378,379", - "alias_at_lanes": "etp48a, etp48b, etp48c, etp48d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp48"], + "2x50G[40G,25G,10G,1G]": ["etp48a", "etp48b"] + } }, "Ethernet384": { "index": "49,49,49,49", "lanes": "384,385,386,387", - "alias_at_lanes": "etp49a, etp49b, etp49c, etp49d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp49"], + "2x50G[40G,25G,10G,1G]": ["etp49a", "etp49b"] + } }, "Ethernet392": { "index": "50,50,50,50", "lanes": "392,393,394,395", - "alias_at_lanes": "etp50a, etp50b, etp50c, etp50d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp50"], + "2x50G[40G,25G,10G,1G]": ["etp50a", "etp50b"] + } }, "Ethernet400": { "index": "51,51,51,51", "lanes": "400,401,402,403", - "alias_at_lanes": "etp51a, etp51b, etp51c, etp51d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp51"], + "2x50G[40G,25G,10G,1G]": ["etp51a", "etp51b"] + } }, "Ethernet408": { "index": "52,52,52,52", "lanes": "408,409,410,411", - "alias_at_lanes": "etp52a, etp52b, etp52c, etp52d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp52"], + "2x50G[40G,25G,10G,1G]": ["etp52a", "etp52b"] + } }, "Ethernet416": { "index": "53,53,53,53", "lanes": "416,417,418,419", - "alias_at_lanes": "etp53a, etp53b, etp53c, etp53d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp53"], + "2x50G[40G,25G,10G,1G]": ["etp53a", "etp53b"] + } }, "Ethernet424": { "index": "54,54,54,54", "lanes": "424,425,426,427", - "alias_at_lanes": "etp54a, etp54b, etp54c, etp54d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp54"], + "2x50G[40G,25G,10G,1G]": ["etp54a", "etp54b"] + } }, "Ethernet432": { "index": "55,55,55,55", "lanes": "432,433,434,435", - "alias_at_lanes": "etp55a, etp55b, etp55c, etp55d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp55"], + "2x50G[40G,25G,10G,1G]": ["etp55a", "etp55b"] + } }, "Ethernet440": { "index": "56,56,56,56", "lanes": "440,441,442,443", - "alias_at_lanes": "etp56a, etp56b, etp56c, etp56d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp56"], + "2x50G[40G,25G,10G,1G]": ["etp56a", "etp56b"] + } }, "Ethernet448": { "index": "57,57,57,57", "lanes": "448,449,450,451", - "alias_at_lanes": "etp57a, etp57b, etp57c, etp57d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp57"], + "2x50G[40G,25G,10G,1G]": ["etp57a", "etp57b"] + } }, "Ethernet456": { "index": "58,58,58,58", "lanes": "456,457,458,459", - "alias_at_lanes": "etp58a, etp58b, etp58c, etp58d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp58"], + "2x50G[40G,25G,10G,1G]": ["etp58a", "etp58b"] + } }, "Ethernet464": { "index": "59,59,59,59", "lanes": "464,465,466,467", - "alias_at_lanes": "etp59a, etp59b, etp59c, etp59d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp59"], + "2x50G[40G,25G,10G,1G]": ["etp59a", "etp59b"] + } }, "Ethernet472": { "index": "60,60,60,60", "lanes": "472,473,474,475", - "alias_at_lanes": "etp60a, etp60b, etp60c, etp60d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp60"], + "2x50G[40G,25G,10G,1G]": ["etp60a", "etp60b"] + } }, "Ethernet480": { "index": "61,61,61,61", "lanes": "480,481,482,483", - "alias_at_lanes": "etp61a, etp61b, etp61c, etp61d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp61"], + "2x50G[40G,25G,10G,1G]": ["etp61a", "etp61b"] + } }, "Ethernet488": { "index": "62,62,62,62", "lanes": "488,489,490,491", - "alias_at_lanes": "etp62a, etp62b, etp62c, etp62d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp62"], + "2x50G[40G,25G,10G,1G]": ["etp62a", "etp62b"] + } }, "Ethernet496": { "index": "63,63,63,63", "lanes": "496,497,498,499", - "alias_at_lanes": "etp63a, etp63b, etp63c, etp63d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp63"], + "2x50G[40G,25G,10G,1G]": ["etp63a", "etp63b"] + } }, "Ethernet504": { "index": "64,64,64,64", "lanes": "504,505,506,507", - "alias_at_lanes": "etp64a, etp64b, etp64c, etp64d", - "breakout_modes": "1x100G[50G,40G,25G,10G,1G],2x50G[40G,25G,10G,1G]" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["etp64"], + "2x50G[40G,25G,10G,1G]": ["etp64a", "etp64b"] + } } } -} \ No newline at end of file +} diff --git a/device/mellanox/x86_64-mlnx_msn4700-r0/platform.json b/device/mellanox/x86_64-mlnx_msn4700-r0/platform.json index 750fc49f6e..5822631ab0 100644 --- a/device/mellanox/x86_64-mlnx_msn4700-r0/platform.json +++ b/device/mellanox/x86_64-mlnx_msn4700-r0/platform.json @@ -2,195 +2,291 @@ "interfaces": { "Ethernet0": { "index": "1,1,1,1,1,1,1,1", - "lanes": "0,1,2,3,4,5,6,7", - "alias_at_lanes": "etp1a, etp1b, etp1c, etp1d, etp1e, etp1f, etp1g, etp1h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "lanes": "0,1,2,3,4,5,6,7", + "breakout_modes": { + "1x400G[200G,100G,50G,40G,25G,10G,1G]": ["etp1"], + "2x200G[100G,50G,40G,25G,10G,1G]": ["etp1a", "etp1b"], + "4x100G[50G,40G,25G,10G,1G]": ["etp1a", "etp1b", "etp1c", "etp1d"] + } }, "Ethernet8": { "index": "2,2,2,2,2,2,2,2", "lanes": "8,9,10,11,12,13,14,15", - "alias_at_lanes": "etp2a, etp2b, etp2c, etp2d, etp2e, etp2f, etp2g, etp2h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x400G[200G,100G,50G,40G,25G,10G,1G]": ["etp2"], + "2x200G[100G,50G,40G,25G,10G,1G]": ["etp2a", "etp2b"], + "4x100G[50G,40G,25G,10G,1G]": ["etp2a", "etp2b", "etp2c", "etp2d"] + } }, "Ethernet16": { "index": "3,3,3,3,3,3,3,3", "lanes": "16,17,18,19,20,21,22,23", - "alias_at_lanes": "etp3a, etp3b, etp3c, etp3d, etp3e, etp3f, etp3g, etp3h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x400G[200G,100G,50G,40G,25G,10G,1G]": ["etp3"], + "2x200G[100G,50G,40G,25G,10G,1G]": ["etp3a", "etp3b"], + "4x100G[50G,40G,25G,10G,1G]": ["etp3a", "etp3b", "etp3c", "etp3d"] + } }, "Ethernet24": { "index": "4,4,4,4,4,4,4,4", "lanes": "24,25,26,27,28,29,30,31", - "alias_at_lanes": "etp4a, etp4b, etp4c, etp4d, etp4e, etp4f, etp4g, etp4h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x400G[200G,100G,50G,40G,25G,10G,1G]": ["etp4"], + "2x200G[100G,50G,40G,25G,10G,1G]": ["etp4a", "etp4b"], + "4x100G[50G,40G,25G,10G,1G]": ["etp4a", "etp4b", "etp4c", "etp4d"] + } }, "Ethernet32": { "index": "5,5,5,5,5,5,5,5", "lanes": "32,33,34,35,36,37,38,39", - "alias_at_lanes": "etp5a, etp5b, etp5c, etp5d, etp5e, etp5f, etp5g, etp5h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x400G[200G,100G,50G,40G,25G,10G,1G]": ["etp5"], + "2x200G[100G,50G,40G,25G,10G,1G]": ["etp5a", "etp5b"], + "4x100G[50G,40G,25G,10G,1G]": ["etp5a", "etp5b", "etp5c", "etp5d"] + } }, "Ethernet40": { "index": "6,6,6,6,6,6,6,6", "lanes": "40,41,42,43,44,45,46,47", - "alias_at_lanes": "etp6a, etp6b, etp6c, etp6d, etp6e, etp6f, etp6g, etp6h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x400G[200G,100G,50G,40G,25G,10G,1G]": ["etp6"], + "2x200G[100G,50G,40G,25G,10G,1G]": ["etp6a", "etp6b"], + "4x100G[50G,40G,25G,10G,1G]": ["etp6a", "etp6b", "etp6c", "etp6d"] + } }, "Ethernet48": { "index": "7,7,7,7,7,7,7,7", "lanes": "48,49,50,51,52,53,54,55", - "alias_at_lanes": "etp7a, etp7b, etp7c, etp7d, etp7e, etp7f, etp7g, etp7h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x400G[200G,100G,50G,40G,25G,10G,1G]": ["etp7"], + "2x200G[100G,50G,40G,25G,10G,1G]": ["etp7a", "etp7b"], + "4x100G[50G,40G,25G,10G,1G]": ["etp7a", "etp7b", "etp7c", "etp7d"] + } }, "Ethernet56": { "index": "8,8,8,8,8,8,8,8", "lanes": "56,57,58,59,60,61,62,63", - "alias_at_lanes": "etp8a, etp8b, etp8c, etp8d, etp8e, etp8f, etp8g, etp8h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x400G[200G,100G,50G,40G,25G,10G,1G]": ["etp8"], + "2x200G[100G,50G,40G,25G,10G,1G]": ["etp8a", "etp8b"], + "4x100G[50G,40G,25G,10G,1G]": ["etp8a", "etp8b", "etp8c", "etp8d"] + } }, "Ethernet64": { "index": "9,9,9,9,9,9,9,9", "lanes": "64,65,66,67,68,69,70,71", - "alias_at_lanes": "etp9a, etp9b, etp9c, etp9d, etp9e, etp9f, etp9g, etp9h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x400G[200G,100G,50G,40G,25G,10G,1G]": ["etp9"], + "2x200G[100G,50G,40G,25G,10G,1G]": ["etp9a", "etp9b"], + "4x100G[50G,40G,25G,10G,1G]": ["etp9a", "etp9b", "etp9c", "etp9d"] + } }, "Ethernet72": { "index": "10,10,10,10,10,10,10,10", "lanes": "72,73,74,75,76,77,78,79", - "alias_at_lanes": "etp10a, etp10b, etp10c, etp10d, etp10e, etp10f, etp10g, etp10h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x400G[200G,100G,50G,40G,25G,10G,1G]": ["etp10"], + "2x200G[100G,50G,40G,25G,10G,1G]": ["etp10a", "etp10b"], + "4x100G[50G,40G,25G,10G,1G]": ["etp10a", "etp10b", "etp10c", "etp10d"] + } }, "Ethernet80": { "index": "11,11,11,11,11,11,11,11", "lanes": "80,81,82,83,84,85,86,87", - "alias_at_lanes": "etp11a, etp11b, etp11c, etp11d, etp11e, etp11f, etp11g, etp11h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x400G[200G,100G,50G,40G,25G,10G,1G]": ["etp11"], + "2x200G[100G,50G,40G,25G,10G,1G]": ["etp11a", "etp11b"], + "4x100G[50G,40G,25G,10G,1G]": ["etp11a", "etp11b", "etp11c", "etp11d"] + } }, "Ethernet88": { "index": "12,12,12,12,12,12,12,12", "lanes": "88,89,90,91,92,93,94,95", - "alias_at_lanes": "etp12a, etp12b, etp12c, etp12d, etp12e, etp12f, etp12g, etp12h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x400G[200G,100G,50G,40G,25G,10G,1G]": ["etp12"], + "2x200G[100G,50G,40G,25G,10G,1G]": ["etp12a", "etp12b"], + "4x100G[50G,40G,25G,10G,1G]": ["etp12a", "etp12b", "etp12c", "etp12d"] + } }, "Ethernet96": { "index": "13,13,13,13,13,13,13,13", "lanes": "96,97,98,99,100,101,102,103", - "alias_at_lanes": "etp13a, etp13b, etp13c, etp13d, etp13e, etp13f, etp13g, etp13h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x400G[200G,100G,50G,40G,25G,10G,1G]": ["etp13"], + "2x200G[100G,50G,40G,25G,10G,1G]": ["etp13a", "etp13b"], + "4x100G[50G,40G,25G,10G,1G]": ["etp13a", "etp13b", "etp13c", "etp13d"] + } }, "Ethernet104": { "index": "14,14,14,14,14,14,14,14", "lanes": "104,105,106,107,108,109,110,111", - "alias_at_lanes": "etp14a, etp14b, etp14c, etp14d, etp14e, etp14f, etp14g, etp14h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x400G[200G,100G,50G,40G,25G,10G,1G]": ["etp14"], + "2x200G[100G,50G,40G,25G,10G,1G]": ["etp14a", "etp14b"], + "4x100G[50G,40G,25G,10G,1G]": ["etp14a", "etp14b", "etp14c", "etp14d"] + } }, "Ethernet112": { "index": "15,15,15,15,15,15,15,15", "lanes": "112,113,114,115,116,117,118,119", - "alias_at_lanes": "etp15a, etp15b, etp15c, etp15d, etp15e, etp15f, etp15g, etp15h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x400G[200G,100G,50G,40G,25G,10G,1G]": ["etp15"], + "2x200G[100G,50G,40G,25G,10G,1G]": ["etp15a", "etp15b"], + "4x100G[50G,40G,25G,10G,1G]": ["etp15a", "etp15b", "etp15c", "etp15d"] + } }, "Ethernet120": { "index": "16,16,16,16,16,16,16,16", "lanes": "120,121,122,123,124,125,126,127", - "alias_at_lanes": "etp16a, etp16b, etp16c, etp16d, etp16e, etp16f, etp16g, etp16h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x400G[200G,100G,50G,40G,25G,10G,1G]": ["etp16"], + "2x200G[100G,50G,40G,25G,10G,1G]": ["etp16a", "etp16b"], + "4x100G[50G,40G,25G,10G,1G]": ["etp16a", "etp16b", "etp16c", "etp16d"] + } }, "Ethernet128": { "index": "17,17,17,17,17,17,17,17", "lanes": "128,129,130,131,132,133,134,135", - "alias_at_lanes": "etp17a, etp17b, etp17c, etp17d, etp17e, etp17f, etp17g, etp17h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x400G[200G,100G,50G,40G,25G,10G,1G]": ["etp17"], + "2x200G[100G,50G,40G,25G,10G,1G]": ["etp17a", "etp17b"], + "4x100G[50G,40G,25G,10G,1G]": ["etp17a", "etp17b", "etp17c", "etp17d"] + } }, "Ethernet136": { "index": "18,18,18,18,18,18,18,18", "lanes": "136,137,138,139,140,141,142,143", - "alias_at_lanes": "etp18a, etp18b, etp18c, etp18d, etp18e, etp18f, etp18g, etp18h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x400G[200G,100G,50G,40G,25G,10G,1G]": ["etp18"], + "2x200G[100G,50G,40G,25G,10G,1G]": ["etp18a", "etp18b"], + "4x100G[50G,40G,25G,10G,1G]": ["etp18a", "etp18b", "etp18c", "etp18d"] + } }, "Ethernet144": { "index": "19,19,19,19,19,19,19,19", "lanes": "144,145,146,147,148,149,150,151", - "alias_at_lanes": "etp19a, etp19b, etp19c, etp19d, etp19e, etp19f, etp19g, etp19h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x400G[200G,100G,50G,40G,25G,10G,1G]": ["etp19"], + "2x200G[100G,50G,40G,25G,10G,1G]": ["etp19a", "etp19b"], + "4x100G[50G,40G,25G,10G,1G]": ["etp19a", "etp19b", "etp19c", "etp19d"] + } }, "Ethernet152": { "index": "20,20,20,20,20,20,20,20", "lanes": "152,153,154,155,156,157,158,159", - "alias_at_lanes": "etp20a, etp20b, etp20c, etp20d, etp20e, etp20f, etp20g, etp20h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x400G[200G,100G,50G,40G,25G,10G,1G]": ["etp20"], + "2x200G[100G,50G,40G,25G,10G,1G]": ["etp20a", "etp20b"], + "4x100G[50G,40G,25G,10G,1G]": ["etp20a", "etp20b", "etp20c", "etp20d"] + } }, "Ethernet160": { "index": "21,21,21,21,21,21,21,21", "lanes": "160,161,162,163,164,165,166,167", - "alias_at_lanes": "etp21a, etp21b, etp21c, etp21d, etp21e, etp21f, etp21g, etp21h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x400G[200G,100G,50G,40G,25G,10G,1G]": ["etp21"], + "2x200G[100G,50G,40G,25G,10G,1G]": ["etp21a", "etp21b"], + "4x100G[50G,40G,25G,10G,1G]": ["etp21a", "etp21b", "etp21c", "etp21d"] + } }, "Ethernet168": { "index": "22,22,22,22,22,22,22,22", "lanes": "168,169,170,171,172,173,174,175", - "alias_at_lanes": "etp22a, etp22b, etp22c, etp22d, etp22e, etp22f, etp22g, etp22h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x400G[200G,100G,50G,40G,25G,10G,1G]": ["etp22"], + "2x200G[100G,50G,40G,25G,10G,1G]": ["etp22a", "etp22b"], + "4x100G[50G,40G,25G,10G,1G]": ["etp22a", "etp22b", "etp22c", "etp22d"] + } }, "Ethernet176": { "index": "23,23,23,23,23,23,23,23", "lanes": "176,177,178,179,180,181,182,183", - "alias_at_lanes": "etp23a, etp23b, etp23c, etp23d, etp23e, etp23f, etp23g, etp23h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x400G[200G,100G,50G,40G,25G,10G,1G]": ["etp23"], + "2x200G[100G,50G,40G,25G,10G,1G]": ["etp23a", "etp23b"], + "4x100G[50G,40G,25G,10G,1G]": ["etp23a", "etp23b", "etp23c", "etp23d"] + } }, "Ethernet184": { "index": "24,24,24,24,24,24,24,24", "lanes": "184,185,186,187,188,189,190,191", - "alias_at_lanes": "etp24a, etp24b, etp24c, etp24d, etp24e, etp24f, etp24g, etp24h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x400G[200G,100G,50G,40G,25G,10G,1G]": ["etp24"], + "2x200G[100G,50G,40G,25G,10G,1G]": ["etp24a", "etp24b"], + "4x100G[50G,40G,25G,10G,1G]": ["etp24a", "etp24b", "etp24c", "etp24d"] + } }, "Ethernet192": { "index": "25,25,25,25,25,25,25,25", "lanes": "192,193,194,195,196,197,198,199", - "alias_at_lanes": "etp25a, etp25b, etp25c, etp25d, etp25e, etp25f, etp25g, etp25h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x400G[200G,100G,50G,40G,25G,10G,1G]": ["etp25"], + "2x200G[100G,50G,40G,25G,10G,1G]": ["etp25a", "etp25b"], + "4x100G[50G,40G,25G,10G,1G]": ["etp25a", "etp25b", "etp25c", "etp25d"] + } }, "Ethernet200": { "index": "26,26,26,26,26,26,26,26", "lanes": "200,201,202,203,204,205,206,207", - "alias_at_lanes": "etp26a, etp26b, etp26c, etp26d, etp26e, etp26f, etp26g, etp26h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x400G[200G,100G,50G,40G,25G,10G,1G]": ["etp26"], + "2x200G[100G,50G,40G,25G,10G,1G]": ["etp26a", "etp26b"], + "4x100G[50G,40G,25G,10G,1G]": ["etp26a", "etp26b", "etp26c", "etp26d"] + } }, "Ethernet208": { "index": "27,27,27,27,27,27,27,27", "lanes": "208,209,210,211,212,213,214,215", - "alias_at_lanes": "etp27a, etp27b, etp27c, etp27d, etp27e, etp27f, etp27g, etp27h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x400G[200G,100G,50G,40G,25G,10G,1G]": ["etp27"], + "2x200G[100G,50G,40G,25G,10G,1G]": ["etp27a", "etp27b"], + "4x100G[50G,40G,25G,10G,1G]": ["etp27a", "etp27b", "etp27c", "etp27d"] + } }, "Ethernet216": { "index": "28,28,28,28,28,28,28,28", "lanes": "216,217,218,219,220,221,222,223", - "alias_at_lanes": "etp28a, etp28b, etp28c, etp28d, etp28e, etp28f, etp28g, etp28h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x400G[200G,100G,50G,40G,25G,10G,1G]": ["etp28"], + "2x200G[100G,50G,40G,25G,10G,1G]": ["etp28a", "etp28b"], + "4x100G[50G,40G,25G,10G,1G]": ["etp28a", "etp28b", "etp28c", "etp28d"] + } }, "Ethernet224": { "index": "29,29,29,29,29,29,29,29", "lanes": "224,225,226,227,228,229,230,231", - "alias_at_lanes": "etp29a, etp29b, etp29c, etp29d, etp29e, etp29f, etp29g, etp29h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x400G[200G,100G,50G,40G,25G,10G,1G]": ["etp29"], + "2x200G[100G,50G,40G,25G,10G,1G]": ["etp29a", "etp29b"], + "4x100G[50G,40G,25G,10G,1G]": ["etp29a", "etp29b", "etp29c", "etp29d"] + } }, "Ethernet232": { "index": "30,30,30,30,30,30,30,30", "lanes": "232,233,234,235,236,237,238,239", - "alias_at_lanes": "etp30a, etp30b, etp30c, etp30d, etp30e, etp30f, etp30g, etp30h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x400G[200G,100G,50G,40G,25G,10G,1G]": ["etp30"], + "2x200G[100G,50G,40G,25G,10G,1G]": ["etp30a", "etp30b"], + "4x100G[50G,40G,25G,10G,1G]": ["etp30a", "etp30b", "etp30c", "etp30d"] + } }, "Ethernet240": { "index": "31,31,31,31,31,31,31,31", "lanes": "240,241,242,243,244,245,246,247", - "alias_at_lanes": "etp31a, etp31b, etp31c, etp31d, etp31e, etp31f, etp31g, etp31h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x400G[200G,100G,50G,40G,25G,10G,1G]": ["etp31"], + "2x200G[100G,50G,40G,25G,10G,1G]": ["etp31a", "etp31b"], + "4x100G[50G,40G,25G,10G,1G]": ["etp31a", "etp31b", "etp31c", "etp31d"] + } }, "Ethernet248": { "index": "32,32,32,32,32,32,32,32", "lanes": "248,249,250,251,252,253,254,255", - "alias_at_lanes": "etp32a, etp32b, etp32c, etp32d, etp32e, etp32f, etp32g, etp32h", - "breakout_modes": "1x400G[200G,100G,50G,40G,25G,10G,1G],2x200G[100G,50G,40G,25G,10G,1G],4x100G[50G,40G,25G,10G,1G]" + "breakout_modes": { + "1x400G[200G,100G,50G,40G,25G,10G,1G]": ["etp32"], + "2x200G[100G,50G,40G,25G,10G,1G]": ["etp32a", "etp32b"], + "4x100G[50G,40G,25G,10G,1G]": ["etp32a", "etp32b", "etp32c", "etp32d"] + } } } -} \ No newline at end of file +} diff --git a/platform/vs/docker-sonic-vs/platform.json b/platform/vs/docker-sonic-vs/platform.json index 053fed5516..1d14ff3ca8 100644 --- a/platform/vs/docker-sonic-vs/platform.json +++ b/platform/vs/docker-sonic-vs/platform.json @@ -3,194 +3,350 @@ "Ethernet0": { "index": "0,0,0,0", "lanes": "25,26,27,28", - "alias_at_lanes": "fortyGigE0/0,fortyGigE0/1,fortyGigE0/2,fortyGigE0/3", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["fortyGigE0/0"], + "2x50G": ["fortyGigE0/0", "fortyGigE0/2"], + "4x25G[10G]": ["fortyGigE0/0", "fortyGigE0/1", "fortyGigE0/2", "fortyGigE0/3"], + "2x25G(2)+1x50G(2)": ["fortyGigE0/0", "fortyGigE0/1", "fortyGigE0/2"], + "1x50G(2)+2x25G(2)": ["fortyGigE0/0", "fortyGigE0/2", "fortyGigE0/3"] + } }, "Ethernet4": { "index": "1,1,1,1", "lanes": "29,30,31,32", - "alias_at_lanes": "fortyGigE0/4,fortyGigE0/5,fortyGigE0/6,fortyGigE0/7", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["fortyGigE0/4"], + "2x50G": ["fortyGigE0/4", "fortyGigE0/6"], + "4x25G[10G]": ["fortyGigE0/4", "fortyGigE0/5", "fortyGigE0/6", "fortyGigE0/7"] + } }, "Ethernet8": { "index": "2,2,2,2", "lanes": "33,34,35,36", - "alias_at_lanes": "fortyGigE0/8,fortyGigE0/9,fortyGigE0/10,fortyGigE0/11", - "breakout_modes": "1x100G[40G],2x50G,2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["fortyGigE0/8"], + "2x50G": ["fortyGigE0/8", "fortyGigE0/10"], + "2x25G(2)+1x50G(2)": ["fortyGigE0/8", "fortyGigE0/9", "fortyGigE0/10"], + "1x50G(2)+2x25G(2)": ["fortyGigE0/8", "fortyGigE0/10", "fortyGigE0/11"] + } }, "Ethernet12": { "index": "3,3,3,3", "lanes": "37,38,39,40", - "alias_at_lanes": "fortyGigE0/12,fortyGigE0/13,fortyGigE0/14,fortyGigE0/15", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["fortyGigE0/12"], + "2x50G": ["fortyGigE0/12", "fortyGigE0/14"], + "4x25G[10G]": ["fortyGigE0/12", "fortyGigE0/13", "fortyGigE0/14", "fortyGigE0/15"], + "2x25G(2)+1x50G(2)": ["fortyGigE0/12", "fortyGigE0/13", "fortyGigE0/14"], + "1x50G(2)+2x25G(2)": ["fortyGigE0/12", "fortyGigE0/14", "fortyGigE0/15"] + } }, "Ethernet16": { "index": "4,4,4,4", "lanes": "45,46,47,48", - "alias_at_lanes": "fortyGigE0/16,fortyGigE0/17,fortyGigE0/18,fortyGigE0/19", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["fortyGigE0/16"], + "2x50G": ["fortyGigE0/16", "fortyGigE0/18"], + "4x25G[10G]": ["fortyGigE0/16", "fortyGigE0/17", "fortyGigE0/18", "fortyGigE0/19"], + "2x25G(2)+1x50G(2)": ["fortyGigE0/16", "fortyGigE0/17", "fortyGigE0/18"], + "1x50G(2)+2x25G(2)": ["fortyGigE0/16", "fortyGigE0/18", "fortyGigE0/19"] + } }, "Ethernet20": { "index": "5,5,5,5", "lanes": "41,42,43,44", - "alias_at_lanes": "fortyGigE0/20,fortyGigE0/21,fortyGigE0/22,fortyGigE0/23", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["fortyGigE0/20"], + "2x50G": ["fortyGigE0/20", "fortyGigE0/22"], + "4x25G[10G]": ["fortyGigE0/20", "fortyGigE0/21", "fortyGigE0/22", "fortyGigE0/23"], + "2x25G(2)+1x50G(2)": ["fortyGigE0/20", "fortyGigE0/21", "fortyGigE0/22"], + "1x50G(2)+2x25G(2)": ["fortyGigE0/20", "fortyGigE0/22", "fortyGigE0/23"] + } }, "Ethernet24": { "index": "6,6,6,6", "lanes": "1,2,3,4", - "alias_at_lanes": "fortyGigE0/24,fortyGigE0/25,fortyGigE0/26,fortyGigE0/27", - "breakout_modes": "1x100G[40G],4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["fortyGigE0/24"], + "4x25G[10G]": ["fortyGigE0/24", "fortyGigE0/25", "fortyGigE0/26", "fortyGigE0/27"], + "2x25G(2)+1x50G(2)": ["fortyGigE0/24", "fortyGigE0/25", "fortyGigE0/26"], + "1x50G(2)+2x25G(2)": ["fortyGigE0/24", "fortyGigE0/26", "fortyGigE0/27"] + } }, "Ethernet28": { "index": "7,7,7,7", "lanes": "5,6,7,8", - "alias_at_lanes": "fortyGigE0/28,fortyGigE0/29,fortyGigE0/30,fortyGigE0/31", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["fortyGigE0/28"], + "2x50G": ["fortyGigE0/28", "fortyGigE0/30"], + "4x25G[10G]": ["fortyGigE0/28", "fortyGigE0/29", "fortyGigE0/30", "fortyGigE0/31"], + "2x25G(2)+1x50G(2)": ["fortyGigE0/28", "fortyGigE0/29", "fortyGigE0/30"], + "1x50G(2)+2x25G(2)": ["fortyGigE0/28", "fortyGigE0/30", "fortyGigE0/31"] + } }, "Ethernet32": { "index": "8,8,8,8", "lanes": "13,14,15,16", - "alias_at_lanes": "fortyGigE0/32,fortyGigE0/33,fortyGigE0/34,fortyGigE0/35", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["fortyGigE0/32"], + "2x50G": ["fortyGigE0/32", "fortyGigE0/34"], + "4x25G[10G]": ["fortyGigE0/32", "fortyGigE0/33", "fortyGigE0/34", "fortyGigE0/35"], + "2x25G(2)+1x50G(2)": ["fortyGigE0/32", "fortyGigE0/33", "fortyGigE0/34"], + "1x50G(2)+2x25G(2)": ["fortyGigE0/32", "fortyGigE0/34", "fortyGigE0/35"] + } }, "Ethernet36": { "index": "9,9,9,9", "lanes": "9,10,11,12", - "alias_at_lanes": "fortyGigE0/36,fortyGigE0/37,fortyGigE0/38,fortyGigE0/39", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["fortyGigE0/36"], + "2x50G": ["fortyGigE0/36", "fortyGigE0/38"], + "4x25G[10G]": ["fortyGigE0/36", "fortyGigE0/37", "fortyGigE0/38", "fortyGigE0/39"], + "2x25G(2)+1x50G(2)": ["fortyGigE0/36", "fortyGigE0/37", "fortyGigE0/38"], + "1x50G(2)+2x25G(2)": ["fortyGigE0/36", "fortyGigE0/38", "fortyGigE0/39"] + } }, "Ethernet40": { "index": "10,10,10,10", "lanes": "17,18,19,20", - "alias_at_lanes": "fortyGigE0/40,fortyGigE0/41,fortyGigE0/42,fortyGigE0/43", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["fortyGigE0/40"], + "2x50G": ["fortyGigE0/40", "fortyGigE0/42"], + "4x25G[10G]": ["fortyGigE0/40", "fortyGigE0/41", "fortyGigE0/42", "fortyGigE0/43"], + "2x25G(2)+1x50G(2)": ["fortyGigE0/40", "fortyGigE0/41", "fortyGigE0/42"], + "1x50G(2)+2x25G(2)": ["fortyGigE0/40", "fortyGigE0/42", "fortyGigE0/43"] + } }, "Ethernet44": { "index": "11,11,11,11", "lanes": "21,22,23,24", - "alias_at_lanes": "fortyGigE0/44,fortyGigE0/45,fortyGigE0/46,fortyGigE0/47", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["fortyGigE0/44"], + "2x50G": ["fortyGigE0/44", "fortyGigE0/46"], + "4x25G[10G]": ["fortyGigE0/44", "fortyGigE0/45", "fortyGigE0/46", "fortyGigE0/47"], + "2x25G(2)+1x50G(2)": ["fortyGigE0/44", "fortyGigE0/45", "fortyGigE0/46"], + "1x50G(2)+2x25G(2)": ["fortyGigE0/44", "fortyGigE0/46", "fortyGigE0/47"] + } }, "Ethernet48": { "index": "12,12,12,12", "lanes": "53,54,55,56", - "alias_at_lanes": "fortyGigE0/48,fortyGigE0/49,fortyGigE0/50,fortyGigE0/51", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["fortyGigE0/48"], + "2x50G": ["fortyGigE0/48", "fortyGigE0/50"], + "4x25G[10G]": ["fortyGigE0/48", "fortyGigE0/49", "fortyGigE0/50", "fortyGigE0/51"], + "2x25G(2)+1x50G(2)": ["fortyGigE0/48", "fortyGigE0/49", "fortyGigE0/50"], + "1x50G(2)+2x25G(2)": ["fortyGigE0/48", "fortyGigE0/50", "fortyGigE0/51"] + } }, "Ethernet52": { "index": "13,13,13,13", "lanes": "49,50,51,52", - "alias_at_lanes": "fortyGigE0/52,fortyGigE0/53,fortyGigE0/54,fortyGigE0/55", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["fortyGigE0/52"], + "2x50G": ["fortyGigE0/52", "fortyGigE0/54"], + "4x25G[10G]": ["fortyGigE0/52", "fortyGigE0/53", "fortyGigE0/54", "fortyGigE0/55"], + "2x25G(2)+1x50G(2)": ["fortyGigE0/52", "fortyGigE0/53", "fortyGigE0/54"], + "1x50G(2)+2x25G(2)": ["fortyGigE0/52", "fortyGigE0/54", "fortyGigE0/55"] + } }, "Ethernet56": { "index": "14,14,14,14", "lanes": "57,58,59,60", - "alias_at_lanes": "fortyGigE0/56,fortyGigE0/57,fortyGigE0/58,fortyGigE0/59", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["fortyGigE0/56"], + "2x50G": ["fortyGigE0/56", "fortyGigE0/58"], + "4x25G[10G]": ["fortyGigE0/56", "fortyGigE0/57", "fortyGigE0/58", "fortyGigE0/59"], + "2x25G(2)+1x50G(2)": ["fortyGigE0/56", "fortyGigE0/57", "fortyGigE0/58"], + "1x50G(2)+2x25G(2)": ["fortyGigE0/56", "fortyGigE0/58", "fortyGigE0/59"] + } }, "Ethernet60": { "index": "15,15,15,15", "lanes": "61,62,63,64", - "alias_at_lanes": "fortyGigE0/60,fortyGigE0/61,fortyGigE0/62,fortyGigE0/63", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["fortyGigE0/60"], + "2x50G": ["fortyGigE0/60", "fortyGigE0/62"], + "4x25G[10G]": ["fortyGigE0/60", "fortyGigE0/61", "fortyGigE0/62", "fortyGigE0/63"], + "2x25G(2)+1x50G(2)": ["fortyGigE0/60", "fortyGigE0/61", "fortyGigE0/62"], + "1x50G(2)+2x25G(2)": ["fortyGigE0/60", "fortyGigE0/62", "fortyGigE0/63"] + } }, "Ethernet64": { "index": "16,16,16,16", "lanes": "69,70,71,72", - "alias_at_lanes": "fortyGigE0/64,fortyGigE0/65,fortyGigE0/66,fortyGigE0/67", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["fortyGigE0/64"], + "2x50G": ["fortyGigE0/64", "fortyGigE0/65"], + "4x25G[10G]": ["fortyGigE0/64", "fortyGigE0/65", "fortyGigE0/66", "fortyGigE0/67"], + "2x25G(2)+1x50G(2)": ["fortyGigE0/64", "fortyGigE0/65", "fortyGigE0/66"], + "1x50G(2)+2x25G(2)": ["fortyGigE0/64", "fortyGigE0/66", "fortyGigE0/67"] + } }, "Ethernet68": { "index": "17,17,17,17", "lanes": "65,66,67,68", - "alias_at_lanes": "fortyGigE0/68,fortyGigE0/69,fortyGigE0/70,fortyGigE0/71", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["fortyGigE0/68"], + "2x50G": ["fortyGigE0/68", "fortyGigE0/70"], + "4x25G[10G]": ["fortyGigE0/68", "fortyGigE0/69", "fortyGigE0/70", "fortyGigE0/71"], + "2x25G(2)+1x50G(2)": ["fortyGigE0/68", "fortyGigE0/69", "fortyGigE0/70"], + "1x50G(2)+2x25G(2)": ["fortyGigE0/68", "fortyGigE0/70", "fortyGigE0/71"] + } }, "Ethernet72": { "index": "18,18,18,18", "lanes": "73,74,75,76", - "alias_at_lanes": "fortyGigE0/72,fortyGigE0/73,fortyGigE0/74,fortyGigE0/75", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["fortyGigE0/72"], + "2x50G": ["fortyGigE0/72", "fortyGigE0/74"], + "4x25G[10G]": ["fortyGigE0/72", "fortyGigE0/73", "fortyGigE0/74", "fortyGigE0/75"], + "2x25G(2)+1x50G(2)": ["fortyGigE0/72", "fortyGigE0/73", "fortyGigE0/74"], + "1x50G(2)+2x25G(2)": ["fortyGigE0/72", "fortyGigE0/74", "fortyGigE0/75"] + } }, "Ethernet76": { "index": "19,19,19,19", "lanes": "77,78,79,80", - "alias_at_lanes": "fortyGigE0/76,fortyGigE0/77,fortyGigE0/78,fortyGigE0/79", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["fortyGigE0/76"], + "2x50G": ["fortyGigE0/76", "fortyGigE0/78"], + "4x25G[10G]": ["fortyGigE0/76", "fortyGigE0/77", "fortyGigE0/78", "fortyGigE0/79"], + "2x25G(2)+1x50G(2)": ["fortyGigE0/76", "fortyGigE0/77", "fortyGigE0/78"], + "1x50G(2)+2x25G(2)": ["fortyGigE0/76", "fortyGigE0/78", "fortyGigE0/79"] + } }, "Ethernet80": { "index": "20,20,20,20", "lanes": "109,110,111,112", - "alias_at_lanes": "fortyGigE0/80,fortyGigE0/81,fortyGigE0/82,fortyGigE0/83", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["fortyGigE0/80"], + "2x50G": ["fortyGigE0/80", "fortyGigE0/82"], + "4x25G[10G]": ["fortyGigE0/80", "fortyGigE0/81", "fortyGigE0/82", "fortyGigE0/83"], + "2x25G(2)+1x50G(2)": ["fortyGigE0/80", "fortyGigE0/81", "fortyGigE0/82"], + "1x50G(2)+2x25G(2)": ["fortyGigE0/80", "fortyGigE0/82", "fortyGigE0/83"] + } }, "Ethernet84": { "index": "21,21,21,21", "lanes": "105,106,107,108", - "alias_at_lanes": "fortyGigE0/84,fortyGigE0/85,fortyGigE0/86,fortyGigE0/87", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["fortyGigE0/84"], + "2x50G": ["fortyGigE0/84", "fortyGigE0/86"], + "4x25G[10G]": ["fortyGigE0/84", "fortyGigE0/85", "fortyGigE0/86", "fortyGigE0/87"], + "2x25G(2)+1x50G(2)": ["fortyGigE0/84", "fortyGigE0/85", "fortyGigE0/86"], + "1x50G(2)+2x25G(2)": ["fortyGigE0/84", "fortyGigE0/86", "fortyGigE0/87"] + } }, "Ethernet88": { "index": "22,22,22,22", "lanes": "113,114,115,116", - "alias_at_lanes": "fortyGigE0/88,fortyGigE0/89,fortyGigE0/90,fortyGigE0/91", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["fortyGigE0/88"], + "2x50G": ["fortyGigE0/88", "fortyGigE0/90"], + "4x25G[10G]": ["fortyGigE0/88", "fortyGigE0/89", "fortyGigE0/90", "fortyGigE0/91"], + "2x25G(2)+1x50G(2)": ["fortyGigE0/88", "fortyGigE0/89", "fortyGigE0/90"], + "1x50G(2)+2x25G(2)": ["fortyGigE0/88", "fortyGigE0/90", "fortyGigE0/91"] + } }, "Ethernet92": { "index": "23,23,23,23", "lanes": "117,118,119,120", - "alias_at_lanes": "fortyGigE0/92,fortyGigE0/93,fortyGigE0/94,fortyGigE0/95", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["fortyGigE0/92"], + "2x50G": ["fortyGigE0/92", "fortyGigE0/94"], + "4x25G[10G]": ["fortyGigE0/92", "fortyGigE0/93", "fortyGigE0/94", "fortyGigE0/95"], + "2x25G(2)+1x50G(2)": ["fortyGigE0/92", "fortyGigE0/93", "fortyGigE0/94"], + "1x50G(2)+2x25G(2)": ["fortyGigE0/92", "fortyGigE0/94", "fortyGigE0/95"] + } }, "Ethernet96": { "index": "24,24,24,24", "lanes": "125,126,127,128", - "alias_at_lanes": "fortyGigE0/96,fortyGigE0/97,fortyGigE0/98,fortyGigE0/99", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["fortyGigE0/96"], + "2x50G": ["fortyGigE0/96", "fortyGigE0/98"], + "4x25G[10G]": ["fortyGigE0/96", "fortyGigE0/97", "fortyGigE0/98", "fortyGigE0/99"], + "2x25G(2)+1x50G(2)": ["fortyGigE0/96", "fortyGigE0/97", "fortyGigE0/98"], + "1x50G(2)+2x25G(2)": ["fortyGigE0/96", "fortyGigE0/98", "fortyGigE0/99"] + } }, "Ethernet100": { "index": "25,25,25,25", "lanes": "121,122,123,124", - "alias_at_lanes": "fortyGigE0/100,fortyGigE0/101,fortyGigE0/102,fortyGigE0/103", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["fortyGigE0/100"], + "2x50G": ["fortyGigE0/100", "fortyGigE0/102"], + "4x25G[10G]": ["fortyGigE0/100", "fortyGigE0/101", "fortyGigE0/102", "fortyGigE0/103"], + "2x25G(2)+1x50G(2)": ["fortyGigE0/100", "fortyGigE0/101", "fortyGigE0/102"], + "1x50G(2)+2x25G(2)": ["fortyGigE0/100", "fortyGigE0/102", "fortyGigE0/103"] + } }, "Ethernet104": { "index": "26,26,26,26", "lanes": "81,82,83,84", - "alias_at_lanes": "fortyGigE0/104,fortyGigE0/105,fortyGigE0/106,fortyGigE0/107", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["fortyGigE0/104"], + "2x50G": ["fortyGigE0/104", "fortyGigE0/106"], + "4x25G[10G]": ["fortyGigE0/104", "fortyGigE0/105", "fortyGigE0/106", "fortyGigE0/107"], + "2x25G(2)+1x50G(2)": ["fortyGigE0/104", "fortyGigE0/105", "fortyGigE0/106"], + "1x50G(2)+2x25G(2)": ["fortyGigE0/104", "fortyGigE0/106", "fortyGigE0/107"] + } }, "Ethernet108": { "index": "27,27,27,27", "lanes": "85,86,87,88", - "alias_at_lanes": "fortyGigE0/108,fortyGigE0/109,fortyGigE0/110,fortyGigE0/111", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["fortyGigE0/108"], + "2x50G": ["fortyGigE0/108", "fortyGigE0/110"], + "4x25G[10G]": ["fortyGigE0/108", "fortyGigE0/109", "fortyGigE0/110", "fortyGigE0/111"], + "2x25G(2)+1x50G(2)": ["fortyGigE0/108", "fortyGigE0/109", "fortyGigE0/110"], + "1x50G(2)+2x25G(2)": ["fortyGigE0/108", "fortyGigE0/110", "fortyGigE0/111"] + } }, "Ethernet112": { "index": "28,28,28,28", "lanes": "93,94,95,96", - "alias_at_lanes": "fortyGigE0/112,fortyGigE0/113,fortyGigE0/114,fortyGigE0/115", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["fortyGigE0/112"], + "2x50G": ["fortyGigE0/112", "fortyGigE0/114"], + "4x25G[10G]": ["fortyGigE0/112", "fortyGigE0/113", "fortyGigE0/114", "fortyGigE0/115"], + "2x25G(2)+1x50G(2)": ["fortyGigE0/112", "fortyGigE0/113", "fortyGigE0/114"], + "1x50G(2)+2x25G(2)": ["fortyGigE0/112", "fortyGigE0/114", "fortyGigE0/115"] + } }, "Ethernet116": { "index": "29,29,29,29", "lanes": "89,90,91,92", - "alias_at_lanes": "fortyGigE0/116,fortyGigE0/117,fortyGigE0/118,fortyGigE0/119", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["fortyGigE0/116"], + "2x50G": ["fortyGigE0/116", "fortyGigE0/118"], + "4x25G[10G]": ["fortyGigE0/116", "fortyGigE0/117", "fortyGigE0/118", "fortyGigE0/119"], + "2x25G(2)+1x50G(2)": ["fortyGigE0/116", "fortyGigE0/117", "fortyGigE0/118"], + "1x50G(2)+2x25G(2)": ["fortyGigE0/116", "fortyGigE0/118", "fortyGigE0/119"] + } }, "Ethernet120": { "index": "30,30,30,30", "lanes": "101,102,103,104", - "alias_at_lanes": "fortyGigE0/120,fortyGigE0/121,fortyGigE0/122,fortyGigE0/123", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["fortyGigE0/120"], + "2x50G": ["fortyGigE0/120", "fortyGigE0/122"], + "4x25G[10G]": ["fortyGigE0/120", "fortyGigE0/121", "fortyGigE0/122", "fortyGigE0/123"], + "2x25G(2)+1x50G(2)": ["fortyGigE0/120", "fortyGigE0/121", "fortyGigE0/122"], + "1x50G(2)+2x25G(2)": ["fortyGigE0/120", "fortyGigE0/122", "fortyGigE0/123"] + } }, "Ethernet124": { "index": "31,31,31,31", "lanes": "97,98,99,100", - "alias_at_lanes": "fortyGigE0/124,fortyGigE0/125,fortyGigE0/126,fortyGigE0/127", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["fortyGigE0/124"], + "2x50G": ["fortyGigE0/124", "fortyGigE0/126"], + "4x25G[10G]": ["fortyGigE0/124", "fortyGigE0/125", "fortyGigE0/126", "fortyGigE0/127"], + "2x25G(2)+1x50G(2)": ["fortyGigE0/124", "fortyGigE0/125", "fortyGigE0/126"], + "1x50G(2)+2x25G(2)": ["fortyGigE0/124", "fortyGigE0/126", "fortyGigE0/127"] + } } } } diff --git a/src/sonic-config-engine/portconfig.py b/src/sonic-config-engine/portconfig.py index 478198e5af..011642b2b8 100644 --- a/src/sonic-config-engine/portconfig.py +++ b/src/sonic-config-engine/portconfig.py @@ -26,8 +26,7 @@ CUR_BRKOUT_MODE = "brkout_mode" INTF_KEY = "interfaces" OPTIONAL_HWSKU_ATTRIBUTES = ["fec", "autoneg"] -BRKOUT_PATTERN = r'(\d{1,3})x(\d{1,3}G)(\[\d{1,3}G\])?(\((\d{1,3})\))?' - +BRKOUT_PATTERN = r'(\d{1,3})x(\d{1,3}G)(\[(\d{1,3}G,?)*\])?(\((\d{1,3})\))?' # # Helper Functions @@ -149,23 +148,24 @@ def parse_port_config_file(port_config_file): return (ports, port_alias_map, port_alias_asic_map) # Generate configs (i.e. alias, lanes, speed, index) for port -def gen_port_config(ports, parent_intf_id, index, alias_at_lanes, lanes, k, offset): +def gen_port_config(ports, parent_intf_id, index, alias_list, lanes, k, offset): if k is not None: - num_lane_used, speed, alt_speed, _ , assigned_lane = k[0], k[1], k[2], k[3], k[4] + num_lane_used, speed, alt_speed, _, _ , assigned_lane = k[0], k[1], k[2], k[3], k[4], k[5] # In case of symmetric mode if assigned_lane is None: assigned_lane = len(lanes.split(",")) parent_intf_id = int(offset)+int(parent_intf_id) - alias_start = 0 + offset + alias_position = 0 + int(offset)//int(num_lane_used) + lanes_start = 0 + int(offset) step = int(assigned_lane)//int(num_lane_used) for i in range(0,int(assigned_lane), step): intf_name = PORT_STR + str(parent_intf_id) ports[intf_name] = {} - ports[intf_name]['alias'] = alias_at_lanes.split(",")[alias_start] - ports[intf_name]['lanes'] = ','.join(lanes.split(",")[alias_start:alias_start+step]) + ports[intf_name]['alias'] = alias_list[alias_position] + ports[intf_name]['lanes'] = ','.join(lanes.split(",")[lanes_start:lanes_start+step]) if speed: speed_pat = re.search("^((\d+)G|\d+)$", speed.upper()) if speed_pat is None: @@ -179,11 +179,12 @@ def gen_port_config(ports, parent_intf_id, index, alias_at_lanes, lanes, k, off else: raise Exception('Regex return for speed is None...') - ports[intf_name]['index'] = index.split(",")[alias_start] + ports[intf_name]['index'] = index.split(",")[alias_position] ports[intf_name]['admin_status'] = "up" parent_intf_id += step - alias_start += step + alias_position += 1 + lanes_start += step offset = int(assigned_lane) + int(offset) return offset @@ -200,7 +201,7 @@ def get_child_ports(interface, breakout_mode, platform_json_file): port_dict = readJson(platform_json_file) index = port_dict[INTF_KEY][interface]['index'] - alias_at_lanes = port_dict[INTF_KEY][interface]['alias_at_lanes'] + alias_list = port_dict[INTF_KEY][interface]['breakout_modes'][breakout_mode] lanes = port_dict[INTF_KEY][interface]['lanes'] """ @@ -224,7 +225,7 @@ def get_child_ports(interface, breakout_mode, platform_json_file): offset = 0 parent_intf_id = int(re.search("Ethernet(\d+)", interface).group(1)) for k in match_list: - offset = gen_port_config(child_ports, parent_intf_id, index, alias_at_lanes, lanes, k, offset) + offset = gen_port_config(child_ports, parent_intf_id, index, alias_list, lanes, k, offset) return child_ports def parse_platform_json_file(hwsku_json_file, platform_json_file): diff --git a/src/sonic-config-engine/tests/sample_hwsku.json b/src/sonic-config-engine/tests/sample_hwsku.json index 5b450932c2..b4864d40eb 100644 --- a/src/sonic-config-engine/tests/sample_hwsku.json +++ b/src/sonic-config-engine/tests/sample_hwsku.json @@ -31,10 +31,10 @@ "default_brkout_mode": "1x50G(2)+2x25G(2)" }, "Ethernet40": { - "default_brkout_mode": "1x100G[40G]" + "default_brkout_mode": "1x100G[50G,40G,25G,10G,1G]" }, "Ethernet44": { - "default_brkout_mode": "2x50G" + "default_brkout_mode": "2x50G[40G,25G,10G,1G]" }, "Ethernet48": { "default_brkout_mode": "4x25G[10G]" diff --git a/src/sonic-config-engine/tests/sample_output/platform_output.json b/src/sonic-config-engine/tests/sample_output/platform_output.json index f4e031fbe5..bcc0f3468c 100644 --- a/src/sonic-config-engine/tests/sample_output/platform_output.json +++ b/src/sonic-config-engine/tests/sample_output/platform_output.json @@ -12,10 +12,10 @@ "Ethernet9": { "index": "3", "lanes": "9", - "description": " Eth3/2", + "description": "Eth3/2", "admin_status": "up", "mtu": "9100", - "alias": " Eth3/2", + "alias": "Eth3/2", "pfc_asym": "off", "speed": "25000" }, @@ -32,10 +32,10 @@ "Ethernet98": { "index": "25", "lanes": "98", - "description": " Eth25/3", + "description": "Eth25/2", "admin_status": "up", "mtu": "9100", - "alias": " Eth25/3", + "alias": "Eth25/2", "pfc_asym": "off", "speed": "25000" }, @@ -43,20 +43,20 @@ "index": "1", "lanes": "0,1,2,3", "fec": "rs", - "description": "Eth1/1", + "description": "Eth1", "admin_status": "up", "mtu": "9100", - "alias": "Eth1/1", + "alias": "Eth1", "pfc_asym": "off", "speed": "100000" }, "Ethernet6": { "index": "2", "lanes": "6,7", - "description": " Eth2/3", + "description": "Eth2/2", "admin_status": "up", "mtu": "9100", - "alias": " Eth2/3", + "alias": "Eth2/2", "pfc_asym": "off", "speed": "50000" }, @@ -73,10 +73,10 @@ "Ethernet109": { "index": "28", "lanes": "109", - "description": " Eth28/2", + "description": "Eth28/2", "admin_status": "up", "mtu": "9100", - "alias": " Eth28/2", + "alias": "Eth28/2", "pfc_asym": "off", "speed": "25000" }, @@ -93,10 +93,10 @@ "Ethernet18": { "index": "5", "lanes": "18", - "description": " Eth5/3", + "description": "Eth5/2", "admin_status": "up", "mtu": "9100", - "alias": " Eth5/3", + "alias": "Eth5/2", "pfc_asym": "off", "speed": "25000" }, @@ -104,20 +104,20 @@ "index": "26", "lanes": "100,101,102,103", "fec": "rs", - "description": "Eth26/1", + "description": "Eth26", "admin_status": "up", "mtu": "9100", - "alias": "Eth26/1", + "alias": "Eth26", "pfc_asym": "off", "speed": "100000" }, "Ethernet34": { "index": "9", "lanes": "34,35", - "description": " Eth9/3", + "description": "Eth9/3", "admin_status": "up", "mtu": "9100", - "alias": " Eth9/3", + "alias": "Eth9/3", "pfc_asym": "off", "speed": "50000" }, @@ -134,30 +134,30 @@ "Ethernet106": { "index": "27", "lanes": "106,107", - "description": " Eth27/3", + "description": "Eth27/2", "admin_status": "up", "mtu": "9100", - "alias": " Eth27/3", + "alias": "Eth27/2", "pfc_asym": "off", "speed": "50000" }, "Ethernet94": { "index": "24", "lanes": "94,95", - "description": " Eth24/3", + "description": "Eth24/3", "admin_status": "up", "mtu": "9100", - "alias": " Eth24/3", + "alias": "Eth24/3", "pfc_asym": "off", "speed": "50000" }, "Ethernet126": { "index": "32", "lanes": "126,127", - "description": " Eth32/3", + "description": "Eth32/2", "admin_status": "up", "mtu": "9100", - "alias": " Eth32/3", + "alias": "Eth32/2", "pfc_asym": "off", "speed": "50000" }, @@ -184,20 +184,20 @@ "Ethernet90": { "index": "23", "lanes": "90", - "description": " Eth23/3", + "description": "Eth23/3", "admin_status": "up", "mtu": "9100", - "alias": " Eth23/3", + "alias": "Eth23/3", "pfc_asym": "off", "speed": "25000" }, "Ethernet91": { "index": "23", "lanes": "91", - "description": " Eth23/4", + "description": "Eth23/4", "admin_status": "up", "mtu": "9100", - "alias": " Eth23/4", + "alias": "Eth23/4", "pfc_asym": "off", "speed": "25000" }, @@ -214,30 +214,30 @@ "Ethernet93": { "index": "24", "lanes": "93", - "description": " Eth24/2", + "description": "Eth24/2", "admin_status": "up", "mtu": "9100", - "alias": " Eth24/2", + "alias": "Eth24/2", "pfc_asym": "off", "speed": "25000" }, "Ethernet50": { "index": "13", "lanes": "50", - "description": " Eth13/3", + "description": "Eth13/3", "admin_status": "up", "mtu": "9100", - "alias": " Eth13/3", + "alias": "Eth13/3", "pfc_asym": "off", "speed": "25000" }, "Ethernet51": { "index": "13", "lanes": "51", - "description": " Eth13/4", + "description": "Eth13/4", "admin_status": "up", "mtu": "9100", - "alias": " Eth13/4", + "alias": "Eth13/4", "pfc_asym": "off", "speed": "25000" }, @@ -254,30 +254,30 @@ "Ethernet53": { "index": "14", "lanes": "53", - "description": " Eth14/2", + "description": "Eth14/2", "admin_status": "up", "mtu": "9100", - "alias": " Eth14/2", + "alias": "Eth14/2", "pfc_asym": "off", "speed": "25000" }, "Ethernet54": { "index": "14", "lanes": "54,55", - "description": " Eth14/3", + "description": "Eth14/3", "admin_status": "up", "mtu": "9100", - "alias": " Eth14/3", + "alias": "Eth14/3", "pfc_asym": "off", "speed": "50000" }, "Ethernet99": { "index": "25", "lanes": "99", - "description": " Eth25/4", + "description": "Eth25/3", "admin_status": "up", "mtu": "9100", - "alias": " Eth25/4", + "alias": "Eth25/3", "pfc_asym": "off", "speed": "25000" }, @@ -294,10 +294,10 @@ "Ethernet113": { "index": "29", "lanes": "113", - "description": " Eth29/2", + "description": "Eth29/2", "admin_status": "up", "mtu": "9100", - "alias": " Eth29/2", + "alias": "Eth29/2", "pfc_asym": "off", "speed": "25000" }, @@ -314,20 +314,20 @@ "Ethernet74": { "index": "19", "lanes": "74,75", - "description": " Eth19/3", + "description": "Eth19/3", "admin_status": "up", "mtu": "9100", - "alias": " Eth19/3", + "alias": "Eth19/3", "pfc_asym": "off", "speed": "50000" }, "Ethernet39": { "index": "10", "lanes": "39", - "description": " Eth10/4", + "description": "Eth10/3", "admin_status": "up", "mtu": "9100", - "alias": " Eth10/4", + "alias": "Eth10/3", "pfc_asym": "off", "speed": "25000" }, @@ -344,30 +344,30 @@ "Ethernet73": { "index": "19", "lanes": "73", - "description": " Eth19/2", + "description": "Eth19/2", "admin_status": "up", "mtu": "9100", - "alias": " Eth19/2", + "alias": "Eth19/2", "pfc_asym": "off", "speed": "25000" }, "Ethernet70": { "index": "18", "lanes": "70", - "description": " Eth18/3", + "description": "Eth18/3", "admin_status": "up", "mtu": "9100", - "alias": " Eth18/3", + "alias": "Eth18/3", "pfc_asym": "off", "speed": "25000" }, "Ethernet71": { "index": "18", "lanes": "71", - "description": " Eth18/4", + "description": "Eth18/4", "admin_status": "up", "mtu": "9100", - "alias": " Eth18/4", + "alias": "Eth18/4", "pfc_asym": "off", "speed": "25000" }, @@ -384,10 +384,10 @@ "Ethernet33": { "index": "9", "lanes": "33", - "description": " Eth9/2", + "description": "Eth9/2", "admin_status": "up", "mtu": "9100", - "alias": " Eth9/2", + "alias": "Eth9/2", "pfc_asym": "off", "speed": "25000" }, @@ -404,30 +404,30 @@ "Ethernet111": { "index": "28", "lanes": "111", - "description": " Eth28/4", + "description": "Eth28/4", "admin_status": "up", "mtu": "9100", - "alias": " Eth28/4", + "alias": "Eth28/4", "pfc_asym": "off", "speed": "25000" }, "Ethernet10": { "index": "3", "lanes": "10", - "description": " Eth3/3", + "description": "Eth3/3", "admin_status": "up", "mtu": "9100", - "alias": " Eth3/3", + "alias": "Eth3/3", "pfc_asym": "off", "speed": "25000" }, "Ethernet11": { "index": "3", "lanes": "11", - "description": " Eth3/4", + "description": "Eth3/4", "admin_status": "up", "mtu": "9100", - "alias": " Eth3/4", + "alias": "Eth3/4", "pfc_asym": "off", "speed": "25000" }, @@ -444,60 +444,60 @@ "Ethernet13": { "index": "4", "lanes": "13", - "description": " Eth4/2", + "description": "Eth4/2", "admin_status": "up", "mtu": "9100", - "alias": " Eth4/2", + "alias": "Eth4/2", "pfc_asym": "off", "speed": "25000" }, "Ethernet58": { "index": "15", "lanes": "58", - "description": " Eth15/3", + "description": "Eth15/2", "admin_status": "up", "mtu": "9100", - "alias": " Eth15/3", + "alias": "Eth15/2", "pfc_asym": "off", "speed": "25000" }, "Ethernet19": { "index": "5", "lanes": "19", - "description": " Eth5/4", + "description": "Eth5/3", "admin_status": "up", "mtu": "9100", - "alias": " Eth5/4", + "alias": "Eth5/3", "pfc_asym": "off", "speed": "25000" }, "Ethernet59": { "index": "15", "lanes": "59", - "description": " Eth15/4", + "description": "Eth15/3", "admin_status": "up", "mtu": "9100", - "alias": " Eth15/4", + "alias": "Eth15/3", "pfc_asym": "off", "speed": "25000" }, "Ethernet38": { "index": "10", "lanes": "38", - "description": " Eth10/3", + "description": "Eth10/2", "admin_status": "up", "mtu": "9100", - "alias": " Eth10/3", + "alias": "Eth10/2", "pfc_asym": "off", "speed": "25000" }, "Ethernet78": { "index": "20", "lanes": "78", - "description": " Eth20/3", + "description": "Eth20/2", "admin_status": "up", "mtu": "9100", - "alias": " Eth20/3", + "alias": "Eth20/2", "pfc_asym": "off", "speed": "25000" }, @@ -514,20 +514,20 @@ "Ethernet14": { "index": "4", "lanes": "14,15", - "description": " Eth4/3", + "description": "Eth4/3", "admin_status": "up", "mtu": "9100", - "alias": " Eth4/3", + "alias": "Eth4/3", "pfc_asym": "off", "speed": "50000" }, "Ethernet89": { "index": "23", "lanes": "89", - "description": " Eth23/2", + "description": "Eth23/2", "admin_status": "up", "mtu": "9100", - "alias": " Eth23/2", + "alias": "Eth23/2", "pfc_asym": "off", "speed": "25000" }, @@ -544,20 +544,20 @@ "Ethernet118": { "index": "30", "lanes": "118", - "description": " Eth30/3", + "description": "Eth30/2", "admin_status": "up", "mtu": "9100", - "alias": " Eth30/3", + "alias": "Eth30/2", "pfc_asym": "off", "speed": "25000" }, "Ethernet119": { "index": "30", "lanes": "119", - "description": " Eth30/4", + "description": "Eth30/3", "admin_status": "up", "mtu": "9100", - "alias": " Eth30/4", + "alias": "Eth30/3", "pfc_asym": "off", "speed": "25000" }, @@ -574,10 +574,10 @@ "Ethernet114": { "index": "29", "lanes": "114,115", - "description": " Eth29/3", + "description": "Eth29/3", "admin_status": "up", "mtu": "9100", - "alias": " Eth29/3", + "alias": "Eth29/3", "pfc_asym": "off", "speed": "50000" }, @@ -585,10 +585,10 @@ "index": "21", "lanes": "80,81,82,83", "fec": "rs", - "description": "Eth21/1", + "description": "Eth21", "admin_status": "up", "mtu": "9100", - "alias": "Eth21/1", + "alias": "Eth21", "pfc_asym": "off", "speed": "100000" }, @@ -605,20 +605,20 @@ "Ethernet86": { "index": "22", "lanes": "86,87", - "description": " Eth22/3", + "description": "Eth22/2", "admin_status": "up", "mtu": "9100", - "alias": " Eth22/3", + "alias": "Eth22/2", "pfc_asym": "off", "speed": "50000" }, "Ethernet110": { "index": "28", "lanes": "110", - "description": " Eth28/3", + "description": "Eth28/3", "admin_status": "up", "mtu": "9100", - "alias": " Eth28/3", + "alias": "Eth28/3", "pfc_asym": "off", "speed": "25000" }, @@ -635,20 +635,20 @@ "Ethernet31": { "index": "8", "lanes": "31", - "description": " Eth8/4", + "description": "Eth8/4", "admin_status": "up", "mtu": "9100", - "alias": " Eth8/4", + "alias": "Eth8/4", "pfc_asym": "off", "speed": "25000" }, "Ethernet49": { "index": "13", "lanes": "49", - "description": " Eth13/2", + "description": "Eth13/2", "admin_status": "up", "mtu": "9100", - "alias": " Eth13/2", + "alias": "Eth13/2", "pfc_asym": "off", "speed": "25000" }, @@ -665,30 +665,30 @@ "Ethernet46": { "index": "12", "lanes": "46,47", - "description": " Eth12/3", + "description": "Eth12/2", "admin_status": "up", "mtu": "9100", - "alias": " Eth12/3", + "alias": "Eth12/2", "pfc_asym": "off", "speed": "50000" }, "Ethernet30": { "index": "8", "lanes": "30", - "description": " Eth8/3", + "description": "Eth8/3", "admin_status": "up", "mtu": "9100", - "alias": " Eth8/3", + "alias": "Eth8/3", "pfc_asym": "off", "speed": "25000" }, "Ethernet29": { "index": "8", "lanes": "29", - "description": " Eth8/2", + "description": "Eth8/2", "admin_status": "up", "mtu": "9100", - "alias": " Eth8/2", + "alias": "Eth8/2", "pfc_asym": "off", "speed": "25000" }, @@ -696,10 +696,10 @@ "index": "11", "lanes": "40,41,42,43", "fec": "rs", - "description": "Eth11/1", + "description": "Eth11", "admin_status": "up", "mtu": "9100", - "alias": "Eth11/1", + "alias": "Eth11", "pfc_asym": "off", "speed": "100000" }, @@ -707,10 +707,10 @@ "index": "31", "lanes": "120,121,122,123", "fec": "rs", - "description": "Eth31/1", + "description": "Eth31", "admin_status": "up", "mtu": "9100", - "alias": "Eth31/1", + "alias": "Eth31", "pfc_asym": "off", "speed": "100000" }, @@ -727,10 +727,10 @@ "Ethernet66": { "index": "17", "lanes": "66,67", - "description": " Eth17/3", + "description": "Eth17/2", "admin_status": "up", "mtu": "9100", - "alias": " Eth17/3", + "alias": "Eth17/2", "pfc_asym": "off", "speed": "50000" }, @@ -738,10 +738,10 @@ "index": "16", "lanes": "60,61,62,63", "fec": "rs", - "description": "Eth16/1", + "description": "Eth16", "admin_status": "up", "mtu": "9100", - "alias": "Eth16/1", + "alias": "Eth16", "pfc_asym": "off", "speed": "100000" }, @@ -769,30 +769,30 @@ "index": "6", "lanes": "20,21,22,23", "fec": "rs", - "description": "Eth6/1", + "description": "Eth6", "admin_status": "up", "mtu": "9100", - "alias": "Eth6/1", + "alias": "Eth6", "pfc_asym": "off", "speed": "100000" }, "Ethernet79": { "index": "20", "lanes": "79", - "description": " Eth20/4", + "description": "Eth20/3", "admin_status": "up", "mtu": "9100", - "alias": " Eth20/4", + "alias": "Eth20/3", "pfc_asym": "off", "speed": "25000" }, "Ethernet69": { "index": "18", "lanes": "69", - "description": " Eth18/2", + "description": "Eth18/2", "admin_status": "up", "mtu": "9100", - "alias": " Eth18/2", + "alias": "Eth18/2", "pfc_asym": "off", "speed": "25000" }, @@ -809,10 +809,10 @@ "Ethernet26": { "index": "7", "lanes": "26,27", - "description": " Eth7/3", + "description": "Eth7/2", "admin_status": "up", "mtu": "9100", - "alias": " Eth7/3", + "alias": "Eth7/2", "pfc_asym": "off", "speed": "50000" } diff --git a/src/sonic-config-engine/tests/sample_platform.json b/src/sonic-config-engine/tests/sample_platform.json index fd11a49ed0..1d8887920c 100644 --- a/src/sonic-config-engine/tests/sample_platform.json +++ b/src/sonic-config-engine/tests/sample_platform.json @@ -3,194 +3,353 @@ "Ethernet0": { "index": "1,1,1,1", "lanes": "0,1,2,3", - "alias_at_lanes": "Eth1/1, Eth1/2, Eth1/3, Eth1/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["Eth1"], + "2x50G": ["Eth1/1", "Eth1/2"], + "4x25G[10G]": ["Eth1/1", "Eth1/2", "Eth1/3", "Eth1/4"], + "2x25G(2)+1x50G(2)": ["Eth1/1", "Eth1/2", "Eth1/3"], + "1x50G(2)+2x25G(2)": ["Eth1/1", "Eth1/2", "Eth1/3"] + } }, "Ethernet4": { "index": "2,2,2,2", "lanes": "4,5,6,7", - "alias_at_lanes": "Eth2/1, Eth2/2, Eth2/3, Eth2/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]" + "breakout_modes": { + "1x100G[40G]": ["Eth2"], + "2x50G": ["Eth2/1", "Eth2/2"], + "4x25G[10G]": ["Eth2/1", "Eth2/2", "Eth2/3", "Eth2/4"] + } }, "Ethernet8": { "index": "3,3,3,3", "lanes": "8,9,10,11", - "alias_at_lanes": "Eth3/1, Eth3/2, Eth3/3, Eth3/4", - "breakout_modes": "1x100G[40G],2x50G,2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["Eth3"], + "2x50G": ["Eth3/1", "Eth3/2"], + "4x25G[10G]": ["Eth3/1", "Eth3/2", "Eth3/3", "Eth3/4"], + "2x25G(2)+1x50G(2)": ["Eth3/1", "Eth3/2", "Eth3/3"], + "1x50G(2)+2x25G(2)": ["Eth3/1", "Eth3/2", "Eth3/3"] + } }, "Ethernet12": { "index": "4,4,4,4", "lanes": "12,13,14,15", - "alias_at_lanes": "Eth4/1, Eth4/2, Eth4/3, Eth4/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["Eth4"], + "2x50G": ["Eth4/1", "Eth4/2"], + "4x25G[10G]": ["Eth4/1", "Eth4/2", "Eth4/3", "Eth4/4"], + "2x25G(2)+1x50G(2)": ["Eth4/1", "Eth4/2", "Eth4/3"], + "1x50G(2)+2x25G(2)": ["Eth4/1", "Eth4/2", "Eth4/3"] + } }, "Ethernet16": { "index": "5,5,5,5", "lanes": "16,17,18,19", - "alias_at_lanes": "Eth5/1, Eth5/2, Eth5/3, Eth5/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["Eth5"], + "2x50G": ["Eth5/1", "Eth5/2"], + "4x25G[10G]": ["Eth5/1", "Eth5/2", "Eth5/3", "Eth5/4"], + "2x25G(2)+1x50G(2)": ["Eth5/1", "Eth5/2", "Eth5/3"], + "1x50G(2)+2x25G(2)": ["Eth5/1", "Eth5/2", "Eth5/3"] + } }, "Ethernet20": { "index": "6,6,6,6", "lanes": "20,21,22,23", - "alias_at_lanes": "Eth6/1, Eth6/2, Eth6/3, Eth6/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["Eth6"], + "2x50G": ["Eth6/1", "Eth6/2"], + "4x25G[10G]": ["Eth6/1", "Eth6/2", "Eth6/3", "Eth6/4"], + "2x25G(2)+1x50G(2)": ["Eth6/1", "Eth6/2", "Eth6/3"], + "1x50G(2)+2x25G(2)": ["Eth6/1", "Eth6/2", "Eth6/3"] + } }, "Ethernet24": { "index": "7,7,7,7", "lanes": "24,25,26,27", - "alias_at_lanes": "Eth7/1, Eth7/2, Eth7/3, Eth7/4", - "breakout_modes": "1x100G[40G],4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["Eth7"], + "2x50G": ["Eth7/1", "Eth7/2"], + "4x25G[10G]": ["Eth7/1", "Eth7/2", "Eth7/3", "Eth7/4"], + "2x25G(2)+1x50G(2)": ["Eth7/1", "Eth7/2", "Eth7/3"], + "1x50G(2)+2x25G(2)": ["Eth7/1", "Eth7/2", "Eth7/3"] + } }, "Ethernet28": { "index": "8,8,8,8", "lanes": "28,29,30,31", - "alias_at_lanes": "Eth8/1, Eth8/2, Eth8/3, Eth8/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["Eth8"], + "2x50G": ["Eth8/1", "Eth8/2"], + "4x25G[10G]": ["Eth8/1", "Eth8/2", "Eth8/3", "Eth8/4"], + "2x25G(2)+1x50G(2)": ["Eth8/1", "Eth8/2", "Eth8/3"], + "1x50G(2)+2x25G(2)": ["Eth8/1", "Eth8/2", "Eth8/3"] + } }, "Ethernet32": { "index": "9,9,9,9", "lanes": "32,33,34,35", - "alias_at_lanes": "Eth9/1, Eth9/2, Eth9/3, Eth9/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["Eth9"], + "2x50G": ["Eth9/1", "Eth9/2"], + "4x25G[10G]": ["Eth9/1", "Eth9/2", "Eth9/3", "Eth9/4"], + "2x25G(2)+1x50G(2)": ["Eth9/1", "Eth9/2", "Eth9/3"], + "1x50G(2)+2x25G(2)": ["Eth9/1", "Eth9/2", "Eth9/3"] + } }, "Ethernet36": { "index": "10,10,10,10", "lanes": "36,37,38,39", - "alias_at_lanes": "Eth10/1, Eth10/2, Eth10/3, Eth10/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["Eth10"], + "2x50G": ["Eth10/1", "Eth10/2"], + "4x25G[10G]": ["Eth10/1", "Eth10/2", "Eth10/3", "Eth10/4"], + "2x25G(2)+1x50G(2)": ["Eth10/1", "Eth10/2", "Eth10/3"], + "1x50G(2)+2x25G(2)": ["Eth10/1", "Eth10/2", "Eth10/3"] + } }, "Ethernet40": { "index": "11,11,11,11", "lanes": "40,41,42,43", - "alias_at_lanes": "Eth11/1, Eth11/2, Eth11/3, Eth11/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["Eth11"], + "2x50G[40G,25G,10G,1G]": ["Eth11/1", "Eth11/2"], + "4x25G[10G]": ["Eth11/1", "Eth11/2", "Eth11/3", "Eth11/4"], + "2x25G(2)+1x50G(2)": ["Eth11/1", "Eth11/2", "Eth11/3"], + "1x50G(2)+2x25G(2)": ["Eth11/1", "Eth11/2", "Eth11/3"] + } }, "Ethernet44": { "index": "12,12,12,12", "lanes": "44,45,46,47", - "alias_at_lanes": "Eth12/1, Eth12/2, Eth12/3, Eth12/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[50G,40G,25G,10G,1G]": ["Eth12"], + "2x50G[40G,25G,10G,1G]": ["Eth12/1", "Eth12/2"], + "4x25G[10G]": ["Eth12/1", "Eth12/2", "Eth12/3", "Eth12/4"], + "2x25G(2)+1x50G(2)": ["Eth12/1", "Eth12/2", "Eth12/3"], + "1x50G(2)+2x25G(2)": ["Eth12/1", "Eth12/2", "Eth12/3"] + } }, "Ethernet48": { "index": "13,13,13,13", "lanes": "48,49,50,51", - "alias_at_lanes": "Eth13/1, Eth13/2, Eth13/3, Eth13/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["Eth13"], + "2x50G": ["Eth13/1", "Eth13/2"], + "4x25G[10G]": ["Eth13/1", "Eth13/2", "Eth13/3", "Eth13/4"], + "2x25G(2)+1x50G(2)": ["Eth13/1", "Eth13/2", "Eth13/3"], + "1x50G(2)+2x25G(2)": ["Eth13/1", "Eth13/2", "Eth13/3"] + } }, "Ethernet52": { "index": "14,14,14,14", "lanes": "52,53,54,55", - "alias_at_lanes": "Eth14/1, Eth14/2, Eth14/3, Eth14/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["Eth14"], + "2x50G": ["Eth14/1", "Eth14/2"], + "4x25G[10G]": ["Eth14/1", "Eth14/2", "Eth14/3", "Eth14/4"], + "2x25G(2)+1x50G(2)": ["Eth14/1", "Eth14/2", "Eth14/3"], + "1x50G(2)+2x25G(2)": ["Eth14/1", "Eth14/2", "Eth14/3"] + } }, "Ethernet56": { "index": "15,15,15,15", "lanes": "56,57,58,59", - "alias_at_lanes": "Eth15/1, Eth15/2, Eth15/3, Eth15/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["Eth15"], + "2x50G": ["Eth15/1", "Eth15/2"], + "4x25G[10G]": ["Eth15/1", "Eth15/2", "Eth15/3", "Eth15/4"], + "2x25G(2)+1x50G(2)": ["Eth15/1", "Eth15/2", "Eth15/3"], + "1x50G(2)+2x25G(2)": ["Eth15/1", "Eth15/2", "Eth15/3"] + } }, "Ethernet60": { "index": "16,16,16,16", "lanes": "60,61,62,63", - "alias_at_lanes": "Eth16/1, Eth16/2, Eth16/3, Eth16/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["Eth16"], + "2x50G": ["Eth16/1", "Eth16/2"], + "4x25G[10G]": ["Eth16/1", "Eth16/2", "Eth16/3", "Eth16/4"], + "2x25G(2)+1x50G(2)": ["Eth16/1", "Eth16/2", "Eth16/3"], + "1x50G(2)+2x25G(2)": ["Eth16/1", "Eth16/2", "Eth16/3"] + } }, "Ethernet64": { "index": "17,17,17,17", "lanes": "64,65,66,67", - "alias_at_lanes": "Eth17/1, Eth17/2, Eth17/3, Eth17/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["Eth17"], + "2x50G": ["Eth17/1", "Eth17/2"], + "4x25G[10G]": ["Eth17/1", "Eth17/2", "Eth17/3", "Eth17/4"], + "2x25G(2)+1x50G(2)": ["Eth17/1", "Eth17/2", "Eth17/3"], + "1x50G(2)+2x25G(2)": ["Eth17/1", "Eth17/2", "Eth17/3"] + } }, "Ethernet68": { "index": "18,18,18,18", "lanes": "68,69,70,71", - "alias_at_lanes": "Eth18/1, Eth18/2, Eth18/3, Eth18/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["Eth18"], + "2x50G": ["Eth18/1", "Eth18/2"], + "4x25G[10G]": ["Eth18/1", "Eth18/2", "Eth18/3", "Eth18/4"], + "2x25G(2)+1x50G(2)": ["Eth18/1", "Eth18/2", "Eth18/3"], + "1x50G(2)+2x25G(2)": ["Eth18/1", "Eth18/2", "Eth18/3"] + } }, "Ethernet72": { "index": "19,19,19,19", "lanes": "72,73,74,75", - "alias_at_lanes": "Eth19/1, Eth19/2, Eth19/3, Eth19/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["Eth19"], + "2x50G": ["Eth19/1", "Eth19/2"], + "4x25G[10G]": ["Eth19/1", "Eth19/2", "Eth19/3", "Eth19/4"], + "2x25G(2)+1x50G(2)": ["Eth19/1", "Eth19/2", "Eth19/3"], + "1x50G(2)+2x25G(2)": ["Eth19/1", "Eth19/2", "Eth19/3"] + } }, "Ethernet76": { "index": "20,20,20,20", "lanes": "76,77,78,79", - "alias_at_lanes": "Eth20/1, Eth20/2, Eth20/3, Eth20/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["Eth20"], + "2x50G": ["Eth20/1", "Eth20/2"], + "4x25G[10G]": ["Eth20/1", "Eth20/2", "Eth20/3", "Eth20/4"], + "2x25G(2)+1x50G(2)": ["Eth20/1", "Eth20/2", "Eth20/3"], + "1x50G(2)+2x25G(2)": ["Eth20/1", "Eth20/2", "Eth20/3"] + } }, "Ethernet80": { "index": "21,21,21,21", "lanes": "80,81,82,83", - "alias_at_lanes": "Eth21/1, Eth21/2, Eth21/3, Eth21/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["Eth21"], + "2x50G": ["Eth21/1", "Eth21/2"], + "4x25G[10G]": ["Eth21/1", "Eth21/2", "Eth21/3", "Eth21/4"], + "2x25G(2)+1x50G(2)": ["Eth21/1", "Eth21/2", "Eth21/3"], + "1x50G(2)+2x25G(2)": ["Eth21/1", "Eth21/2", "Eth21/3"] + } }, "Ethernet84": { "index": "22,22,22,22", "lanes": "84,85,86,87", - "alias_at_lanes": "Eth22/1, Eth22/2, Eth22/3, Eth22/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["Eth22"], + "2x50G": ["Eth22/1", "Eth22/2"], + "4x25G[10G]": ["Eth22/1", "Eth22/2", "Eth22/3", "Eth22/4"], + "2x25G(2)+1x50G(2)": ["Eth22/1", "Eth22/2", "Eth22/3"], + "1x50G(2)+2x25G(2)": ["Eth22/1", "Eth22/2", "Eth22/3"] + } }, "Ethernet88": { "index": "23,23,23,23", "lanes": "88,89,90,91", "alias_at_lanes": "Eth23/1, Eth23/2, Eth23/3, Eth23/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["Eth23"], + "2x50G": ["Eth23/1", "Eth23/2"], + "4x25G[10G]": ["Eth23/1", "Eth23/2", "Eth23/3", "Eth23/4"], + "2x25G(2)+1x50G(2)": ["Eth23/1", "Eth23/2", "Eth23/3"], + "1x50G(2)+2x25G(2)": ["Eth23/1", "Eth23/2", "Eth23/3"] + } }, "Ethernet92": { "index": "24,24,24,24", "lanes": "92,93,94,95", - "alias_at_lanes": "Eth24/1, Eth24/2, Eth24/3, Eth24/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["Eth24"], + "2x50G": ["Eth24/1", "Eth24/2"], + "4x25G[10G]": ["Eth24/1", "Eth24/2", "Eth24/3", "Eth24/4"], + "2x25G(2)+1x50G(2)": ["Eth24/1", "Eth24/2", "Eth24/3"], + "1x50G(2)+2x25G(2)": ["Eth24/1", "Eth24/2", "Eth24/3"] + } }, "Ethernet96": { "index": "25,25,25,25", "lanes": "96,97,98,99", - "alias_at_lanes": "Eth25/1, Eth25/2, Eth25/3, Eth25/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["Eth25"], + "2x50G": ["Eth25/1", "Eth25/2"], + "4x25G[10G]": ["Eth25/1", "Eth25/2", "Eth25/3", "Eth25/4"], + "2x25G(2)+1x50G(2)": ["Eth25/1", "Eth25/2", "Eth25/3"], + "1x50G(2)+2x25G(2)": ["Eth25/1", "Eth25/2", "Eth25/3"] + } }, "Ethernet100": { "index": "26,26,26,26", "lanes": "100,101,102,103", - "alias_at_lanes": "Eth26/1, Eth26/2, Eth26/3, Eth26/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["Eth26"], + "2x50G": ["Eth26/1", "Eth26/2"], + "4x25G[10G]": ["Eth26/1", "Eth26/2", "Eth26/3", "Eth26/4"], + "2x25G(2)+1x50G(2)": ["Eth26/1", "Eth26/2", "Eth26/3"], + "1x50G(2)+2x25G(2)": ["Eth26/1", "Eth26/2", "Eth26/3"] + } }, "Ethernet104": { "index": "27,27,27,27", "lanes": "104,105,106,107", - "alias_at_lanes": "Eth27/1, Eth27/2, Eth27/3, Eth27/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["Eth27"], + "2x50G": ["Eth27/1", "Eth27/2"], + "4x25G[10G]": ["Eth27/1", "Eth27/2", "Eth27/3", "Eth27/4"], + "2x25G(2)+1x50G(2)": ["Eth27/1", "Eth27/2", "Eth27/3"], + "1x50G(2)+2x25G(2)": ["Eth27/1", "Eth27/2", "Eth27/3"] + } }, "Ethernet108": { "index": "28,28,28,28", "lanes": "108,109,110,111", - "alias_at_lanes": "Eth28/1, Eth28/2, Eth28/3, Eth28/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["Eth28"], + "2x50G": ["Eth28/1", "Eth28/2"], + "4x25G[10G]": ["Eth28/1", "Eth28/2", "Eth28/3", "Eth28/4"], + "2x25G(2)+1x50G(2)": ["Eth28/1", "Eth28/2", "Eth28/3"], + "1x50G(2)+2x25G(2)": ["Eth28/1", "Eth28/2", "Eth28/3"] + } }, "Ethernet112": { "index": "29,29,29,29", "lanes": "112,113,114,115", - "alias_at_lanes": "Eth29/1, Eth29/2, Eth29/3, Eth29/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["Eth29"], + "2x50G": ["Eth29/1", "Eth29/2"], + "4x25G[10G]": ["Eth29/1", "Eth29/2", "Eth29/3", "Eth29/4"], + "2x25G(2)+1x50G(2)": ["Eth29/1", "Eth29/2", "Eth29/3"], + "1x50G(2)+2x25G(2)": ["Eth29/1", "Eth29/2", "Eth29/3"] + } }, "Ethernet116": { "index": "30,30,30,30", "lanes": "116,117,118,119", - "alias_at_lanes": "Eth30/1, Eth30/2, Eth30/3, Eth30/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["Eth30"], + "2x50G": ["Eth30/1", "Eth30/2"], + "4x25G[10G]": ["Eth30/1", "Eth30/2", "Eth30/3", "Eth30/4"], + "2x25G(2)+1x50G(2)": ["Eth30/1", "Eth30/2", "Eth30/3"], + "1x50G(2)+2x25G(2)": ["Eth30/1", "Eth30/2", "Eth30/3"] + } }, "Ethernet120": { "index": "31,31,31,31", "lanes": "120,121,122,123", - "alias_at_lanes": "Eth31/1, Eth31/2, Eth31/3, Eth31/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["Eth31"], + "2x50G": ["Eth31/1", "Eth31/2"], + "4x25G[10G]": ["Eth31/1", "Eth31/2", "Eth31/3", "Eth31/4"], + "2x25G(2)+1x50G(2)": ["Eth31/1", "Eth31/2", "Eth31/3"], + "1x50G(2)+2x25G(2)": ["Eth31/1", "Eth31/2", "Eth31/3"] + } }, "Ethernet124": { "index": "32,32,32,32", "lanes": "124,125,126,127", - "alias_at_lanes": "Eth32/1, Eth32/2, Eth32/3, Eth32/4", - "breakout_modes": "1x100G[40G],2x50G,4x25G[10G],2x25G(2)+1x50G(2),1x50G(2)+2x25G(2)" + "breakout_modes": { + "1x100G[40G]": ["Eth32"], + "2x50G": ["Eth32/1", "Eth32/2"], + "4x25G[10G]": ["Eth32/1", "Eth32/2", "Eth32/3", "Eth32/4"], + "2x25G(2)+1x50G(2)": ["Eth32/1", "Eth32/2", "Eth32/3"], + "1x50G(2)+2x25G(2)": ["Eth32/1", "Eth32/2", "Eth32/3"] + } } } } diff --git a/src/sonic-device-data/tests/platform_json_checker b/src/sonic-device-data/tests/platform_json_checker index 1612c0082c..5385295ef5 100755 --- a/src/sonic-device-data/tests/platform_json_checker +++ b/src/sonic-device-data/tests/platform_json_checker @@ -6,7 +6,7 @@ import re import sys # Global variable -PORT_ATTRIBUTES = ["index", "lanes", "alias_at_lanes", "breakout_modes"] +PORT_ATTRIBUTES = ["index", "lanes", "breakout_modes"] ATTR_LEN = len(PORT_ATTRIBUTES) PORT_REG = "Ethernet(\d+)" PLATFORM_JSON = '*platform.json' @@ -23,12 +23,20 @@ def check_port_attr(port_attr): if each_key not in PORT_ATTRIBUTES: print("Error: "+ each_key + " is not the correct Port attribute.") return False + if not port_attr[each_key]: print("Error: "+ each_key + " has no value.") return False - if not isinstance(port_attr[each_key], str): - print("Error:value type of "+ each_key + " must be string.") - return False + + if each_key.lower() == "breakout_modes": + brkout_modes = port_attr[each_key] + if not isinstance(brkout_modes, dict): + print("Error:value type of "+ each_key + " must be dictionary.") + return False + else: + if not isinstance(port_attr[each_key], str): + print("Error:value type of "+ each_key + " must be string.") + return False return True diff --git a/src/sonic-utilities b/src/sonic-utilities index 42cab68df8..04300838a4 160000 --- a/src/sonic-utilities +++ b/src/sonic-utilities @@ -1 +1 @@ -Subproject commit 42cab68df8682d26de0a073c90b32c2276e990b5 +Subproject commit 04300838a47bc42c2f9ffad2dc5d89bf0cace44e