Skip to content

Commit

Permalink
[Fix]Add necessary test data file for sai test (opencomputeproject#1520)
Browse files Browse the repository at this point in the history
In order to set up the port on different platforms, need to read the data for port configuration when turning on the admin state

This PR is a bug fix for adding the config_db into test resources folder.

Test Done:
Test within SONiC mgmt container

Signed-off-by: richardyu-ms <richard.yu@microsoft.com>
Signed-off-by: Chris Sommers <chrispsommers@gmail.com>
  • Loading branch information
richardyu-ms authored and chrispsommers committed Jul 11, 2022
1 parent 1410039 commit 14ccb36
Showing 1 changed file with 356 additions and 0 deletions.
356 changes: 356 additions & 0 deletions test/sai_test/resources/config_db.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,356 @@
{
"PORT": {
"Ethernet0": {
"admin_status": "up",
"alias": "etp1",
"description": "ARISTA01T2:Ethernet1",
"fec": "rs",
"index": "1",
"lanes": "65,66,67,68",
"mtu": "9100",
"pfc_asym": "off",
"speed": "100000"
},
"Ethernet4": {
"admin_status": "up",
"alias": "etp2",
"description": "ARISTA02T2:Ethernet1",
"fec": "rs",
"index": "2",
"lanes": "69,70,71,72",
"mtu": "9100",
"pfc_asym": "off",
"speed": "100000"
},
"Ethernet8": {
"admin_status": "up",
"alias": "etp3",
"description": "ARISTA03T2:Ethernet1",
"fec": "rs",
"index": "3",
"lanes": "73,74,75,76",
"mtu": "9100",
"pfc_asym": "off",
"speed": "100000"
},
"Ethernet12": {
"admin_status": "up",
"alias": "etp4",
"description": "ARISTA04T2:Ethernet1",
"fec": "rs",
"index": "4",
"lanes": "77,78,79,80",
"mtu": "9100",
"pfc_asym": "off",
"speed": "100000"
},
"Ethernet16": {
"admin_status": "up",
"alias": "etp5",
"description": "ARISTA05T2:Ethernet1",
"fec": "rs",
"index": "5",
"lanes": "33,34,35,36",
"mtu": "9100",
"pfc_asym": "off",
"speed": "100000"
},
"Ethernet20": {
"admin_status": "up",
"alias": "etp6",
"description": "ARISTA06T2:Ethernet1",
"fec": "rs",
"index": "6",
"lanes": "37,38,39,40",
"mtu": "9100",
"pfc_asym": "off",
"speed": "100000"
},
"Ethernet24": {
"admin_status": "up",
"alias": "etp7",
"description": "ARISTA07T2:Ethernet1",
"fec": "rs",
"index": "7",
"lanes": "41,42,43,44",
"mtu": "9100",
"pfc_asym": "off",
"speed": "100000"
},
"Ethernet28": {
"admin_status": "up",
"alias": "etp8",
"description": "ARISTA08T2:Ethernet1",
"fec": "rs",
"index": "8",
"lanes": "45,46,47,48",
"mtu": "9100",
"pfc_asym": "off",
"speed": "100000"
},
"Ethernet32": {
"admin_status": "up",
"alias": "etp9",
"description": "ARISTA09T2:Ethernet1",
"fec": "rs",
"index": "9",
"lanes": "49,50,51,52",
"mtu": "9100",
"pfc_asym": "off",
"speed": "100000"
},
"Ethernet36": {
"admin_status": "up",
"alias": "etp10",
"description": "ARISTA10T2:Ethernet1",
"fec": "rs",
"index": "10",
"lanes": "53,54,55,56",
"mtu": "9100",
"pfc_asym": "off",
"speed": "100000"
},
"Ethernet40": {
"admin_status": "up",
"alias": "etp11",
"description": "ARISTA11T2:Ethernet1",
"fec": "rs",
"index": "11",
"lanes": "57,58,59,60",
"mtu": "9100",
"pfc_asym": "off",
"speed": "100000"
},
"Ethernet44": {
"admin_status": "up",
"alias": "etp12",
"description": "ARISTA12T2:Ethernet1",
"fec": "rs",
"index": "12",
"lanes": "61,62,63,64",
"mtu": "9100",
"pfc_asym": "off",
"speed": "100000"
},
"Ethernet48": {
"admin_status": "up",
"alias": "etp13",
"description": "ARISTA13T2:Ethernet1",
"fec": "rs",
"index": "13",
"lanes": "81,82,83,84",
"mtu": "9100",
"pfc_asym": "off",
"speed": "100000"
},
"Ethernet52": {
"admin_status": "up",
"alias": "etp14",
"description": "ARISTA14T2:Ethernet1",
"fec": "rs",
"index": "14",
"lanes": "85,86,87,88",
"mtu": "9100",
"pfc_asym": "off",
"speed": "100000"
},
"Ethernet56": {
"admin_status": "up",
"alias": "etp15",
"description": "ARISTA15T2:Ethernet1",
"fec": "rs",
"index": "15",
"lanes": "89,90,91,92",
"mtu": "9100",
"pfc_asym": "off",
"speed": "100000"
},
"Ethernet60": {
"admin_status": "up",
"alias": "etp16",
"description": "ARISTA16T2:Ethernet1",
"fec": "rs",
"index": "16",
"lanes": "93,94,95,96",
"mtu": "9100",
"pfc_asym": "off",
"speed": "100000"
},
"Ethernet64": {
"admin_status": "up",
"alias": "etp17",
"description": "ARISTA01T0:Ethernet1",
"fec": "rs",
"index": "17",
"lanes": "97,98,99,100",
"mtu": "9100",
"pfc_asym": "off",
"speed": "100000"
},
"Ethernet68": {
"admin_status": "up",
"alias": "etp18",
"description": "ARISTA02T0:Ethernet1",
"fec": "rs",
"index": "18",
"lanes": "101,102,103,104",
"mtu": "9100",
"pfc_asym": "off",
"speed": "100000"
},
"Ethernet72": {
"admin_status": "up",
"alias": "etp19",
"description": "ARISTA03T0:Ethernet1",
"fec": "rs",
"index": "19",
"lanes": "105,106,107,108",
"mtu": "9100",
"pfc_asym": "off",
"speed": "100000"
},
"Ethernet76": {
"admin_status": "up",
"alias": "etp20",
"description": "ARISTA04T0:Ethernet1",
"fec": "rs",
"index": "20",
"lanes": "109,110,111,112",
"mtu": "9100",
"pfc_asym": "off",
"speed": "100000"
},
"Ethernet80": {
"admin_status": "up",
"alias": "etp21",
"description": "ARISTA05T0:Ethernet1",
"fec": "rs",
"index": "21",
"lanes": "1,2,3,4",
"mtu": "9100",
"pfc_asym": "off",
"speed": "100000"
},
"Ethernet84": {
"admin_status": "up",
"alias": "etp22",
"description": "ARISTA06T0:Ethernet1",
"fec": "rs",
"index": "22",
"lanes": "5,6,7,8",
"mtu": "9100",
"pfc_asym": "off",
"speed": "100000"
},
"Ethernet88": {
"admin_status": "up",
"alias": "etp23",
"description": "ARISTA07T0:Ethernet1",
"fec": "rs",
"index": "23",
"lanes": "9,10,11,12",
"mtu": "9100",
"pfc_asym": "off",
"speed": "100000"
},
"Ethernet92": {
"admin_status": "up",
"alias": "etp24",
"description": "ARISTA08T0:Ethernet1",
"fec": "rs",
"index": "24",
"lanes": "13,14,15,16",
"mtu": "9100",
"pfc_asym": "off",
"speed": "100000"
},
"Ethernet96": {
"admin_status": "up",
"alias": "etp25",
"description": "ARISTA09T0:Ethernet1",
"fec": "rs",
"index": "25",
"lanes": "17,18,19,20",
"mtu": "9100",
"pfc_asym": "off",
"speed": "100000"
},
"Ethernet100": {
"admin_status": "up",
"alias": "etp26",
"description": "ARISTA10T0:Ethernet1",
"fec": "rs",
"index": "26",
"lanes": "21,22,23,24",
"mtu": "9100",
"pfc_asym": "off",
"speed": "100000"
},
"Ethernet104": {
"admin_status": "up",
"alias": "etp27",
"description": "ARISTA11T0:Ethernet1",
"fec": "rs",
"index": "27",
"lanes": "25,26,27,28",
"mtu": "9100",
"pfc_asym": "off",
"speed": "100000"
},
"Ethernet108": {
"admin_status": "up",
"alias": "etp28",
"description": "ARISTA12T0:Ethernet1",
"fec": "rs",
"index": "28",
"lanes": "29,30,31,32",
"mtu": "9100",
"pfc_asym": "off",
"speed": "100000"
},
"Ethernet112": {
"admin_status": "up",
"alias": "etp29",
"description": "ARISTA13T0:Ethernet1",
"fec": "rs",
"index": "29",
"lanes": "113,114,115,116",
"mtu": "9100",
"pfc_asym": "off",
"speed": "100000"
},
"Ethernet116": {
"admin_status": "up",
"alias": "etp30",
"description": "ARISTA14T0:Ethernet1",
"fec": "rs",
"index": "30",
"lanes": "117,118,119,120",
"mtu": "9100",
"pfc_asym": "off",
"speed": "100000"
},
"Ethernet120": {
"admin_status": "up",
"alias": "etp31",
"description": "ARISTA15T0:Ethernet1",
"fec": "rs",
"index": "31",
"lanes": "121,122,123,124",
"mtu": "9100",
"pfc_asym": "off",
"speed": "100000"
},
"Ethernet124": {
"admin_status": "up",
"alias": "etp32",
"description": "ARISTA16T0:Ethernet1",
"fec": "rs",
"index": "32",
"lanes": "125,126,127,128",
"mtu": "9100",
"pfc_asym": "off",
"speed": "100000"
}
}
}

0 comments on commit 14ccb36

Please sign in to comment.