18263c99dd
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>
517 lines
17 KiB
JSON
517 lines
17 KiB
JSON
{
|
|
"interfaces": {
|
|
"Ethernet0": {
|
|
"index": "1,1,1,1",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"breakout_modes": {
|
|
"1x100G[50G,40G,25G,10G,1G]": ["etp64"],
|
|
"2x50G[40G,25G,10G,1G]": ["etp64a", "etp64b"]
|
|
}
|
|
}
|
|
}
|
|
}
|