sonic-buildimage/device/mellanox/x86_64-mlnx_msn2410-r0/platform.json
Sangita Maity 18263c99dd
[DPB|master] Update Dynamic Port Breakout Logic for flexible alias support a… (#6831)
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 <samaity@linkedin.com>
2021-02-26 00:13:33 -08:00

405 lines
10 KiB
JSON

{
"interfaces": {
"Ethernet0": {
"index": "1",
"lanes": "0",
"breakout_modes": {
"1x25G[10G]" : ["etp1"]
}
},
"Ethernet4": {
"index": "2",
"lanes": "4",
"breakout_modes": {
"1x25G[10G]" : ["etp2"]
}
},
"Ethernet8": {
"index": "3",
"lanes": "8",
"breakout_modes": {
"1x25G[10G]" : ["etp3"]
}
},
"Ethernet12": {
"index": "4",
"lanes": "12",
"breakout_modes": {
"1x25G[10G]" : ["etp4"]
}
},
"Ethernet16": {
"index": "5",
"lanes": "16",
"breakout_modes": {
"1x25G[10G]" : ["etp5"]
}
},
"Ethernet20": {
"index": "6",
"lanes": "20",
"breakout_modes": {
"1x25G[10G]" : ["etp6"]
}
},
"Ethernet24": {
"index": "7",
"lanes": "24",
"breakout_modes": {
"1x25G[10G]" : ["etp7"]
}
},
"Ethernet28": {
"index": "8",
"lanes": "28",
"breakout_modes": {
"1x25G[10G]" : ["etp8"]
}
},
"Ethernet32": {
"index": "9",
"lanes": "32",
"breakout_modes": {
"1x25G[10G]" : ["etp9"]
}
},
"Ethernet36": {
"index": "10",
"lanes": "36",
"breakout_modes": {
"1x25G[10G]" : ["etp10"]
}
},
"Ethernet40": {
"index": "11",
"lanes": "40",
"breakout_modes": {
"1x25G[10G]" : ["etp11"]
}
},
"Ethernet44": {
"index": "12",
"lanes": "44",
"breakout_modes": {
"1x25G[10G]" : ["etp12"]
}
},
"Ethernet48": {
"index": "13",
"lanes": "48",
"breakout_modes": {
"1x25G[10G]" : ["etp13"]
}
},
"Ethernet52": {
"index": "14",
"lanes": "52",
"breakout_modes": {
"1x25G[10G]" : ["etp14"]
}
},
"Ethernet56": {
"index": "15",
"lanes": "56",
"breakout_modes": {
"1x25G[10G]" : ["etp15"]
}
},
"Ethernet60": {
"index": "16",
"lanes": "60",
"breakout_modes": {
"1x25G[10G]" : ["etp16"]
}
},
"Ethernet64": {
"index": "17",
"lanes": "64",
"breakout_modes": {
"1x25G[10G]" : ["etp17"]
}
},
"Ethernet68": {
"index": "18",
"lanes": "68",
"breakout_modes": {
"1x25G[10G]" : ["etp18"]
}
},
"Ethernet72": {
"index": "19",
"lanes": "72",
"breakout_modes": {
"1x25G[10G]" : ["etp19"]
}
},
"Ethernet76": {
"index": "20",
"lanes": "76",
"breakout_modes": {
"1x25G[10G]" : ["etp20"]
}
},
"Ethernet80": {
"index": "21",
"lanes": "80",
"breakout_modes": {
"1x25G[10G]" : ["etp21"]
}
},
"Ethernet84": {
"index": "22",
"lanes": "84",
"breakout_modes": {
"1x25G[10G]" : ["etp22"]
}
},
"Ethernet88": {
"index": "23",
"lanes": "88",
"breakout_modes": {
"1x25G[10G]" : ["etp23"]
}
},
"Ethernet92": {
"index": "24",
"lanes": "92",
"breakout_modes": {
"1x25G[10G]" : ["etp24"]
}
},
"Ethernet96": {
"index": "25",
"lanes": "96",
"breakout_modes": {
"1x25G[10G]" : ["etp25"]
}
},
"Ethernet100": {
"index": "26",
"lanes": "100",
"breakout_modes": {
"1x25G[10G]" : ["etp26"]
}
},
"Ethernet104": {
"index": "27",
"lanes": "104",
"breakout_modes": {
"1x25G[10G]" : ["etp27"]
}
},
"Ethernet108": {
"index": "28",
"lanes": "108",
"breakout_modes": {
"1x25G[10G]" : ["etp28"]
}
},
"Ethernet112": {
"index": "29",
"lanes": "112",
"breakout_modes": {
"1x25G[10G]" : ["etp29"]
}
},
"Ethernet116": {
"index": "30",
"lanes": "116",
"breakout_modes": {
"1x25G[10G]" : ["etp30"]
}
},
"Ethernet120": {
"index": "31",
"lanes": "120",
"breakout_modes": {
"1x25G[10G]" : ["etp31"]
}
},
"Ethernet124": {
"index": "32",
"lanes": "124",
"breakout_modes": {
"1x25G[10G]" : ["etp32"]
}
},
"Ethernet128": {
"index": "33",
"lanes": "128",
"breakout_modes": {
"1x25G[10G]" : ["etp33"]
}
},
"Ethernet132": {
"index": "34",
"lanes": "132",
"breakout_modes": {
"1x25G[10G]" : ["etp34"]
}
},
"Ethernet136": {
"index": "35",
"lanes": "136",
"breakout_modes": {
"1x25G[10G]" : ["etp35"]
}
},
"Ethernet140": {
"index": "36",
"lanes": "140",
"breakout_modes": {
"1x25G[10G]" : ["etp36"]
}
},
"Ethernet144": {
"index": "37",
"lanes": "144",
"breakout_modes": {
"1x25G[10G]" : ["etp37"]
}
},
"Ethernet148": {
"index": "38",
"lanes": "148",
"breakout_modes": {
"1x25G[10G]" : ["etp38"]
}
},
"Ethernet152": {
"index": "39",
"lanes": "152",
"breakout_modes": {
"1x25G[10G]" : ["etp39"]
}
},
"Ethernet156": {
"index": "40",
"lanes": "156",
"breakout_modes": {
"1x25G[10G]" : ["etp40"]
}
},
"Ethernet160": {
"index": "41",
"lanes": "160",
"breakout_modes": {
"1x25G[10G]" : ["etp41"]
}
},
"Ethernet164": {
"index": "42",
"lanes": "164",
"breakout_modes": {
"1x25G[10G]" : ["etp42"]
}
},
"Ethernet168": {
"index": "43",
"lanes": "168",
"breakout_modes": {
"1x25G[10G]" : ["etp43"]
}
},
"Ethernet172": {
"index": "44",
"lanes": "172",
"breakout_modes": {
"1x25G[10G]" : ["etp44"]
}
},
"Ethernet176": {
"index": "45",
"lanes": "176",
"breakout_modes": {
"1x25G[10G]" : ["etp45"]
}
},
"Ethernet180": {
"index": "46",
"lanes": "180",
"breakout_modes": {
"1x25G[10G]" : ["etp46"]
}
},
"Ethernet184": {
"index": "47",
"lanes": "184",
"breakout_modes": {
"1x25G[10G]" : ["etp47"]
}
},
"Ethernet188": {
"index": "48",
"lanes": "188",
"breakout_modes": {
"1x25G[10G]" : ["etp48"]
}
},
"Ethernet192": {
"index": "49,49,49,49",
"lanes": "192,193,194,195",
"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",
"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",
"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",
"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",
"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",
"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",
"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",
"breakout_modes": {
"1x100G[50G,40G,25G,10G]": ["etp56"],
"2x50G[40G,25G,10G]": ["etp56a", "etp56b"]
}
}
}
}