forked from opencomputeproject/SAI
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add t0 configs: metadata, port (without serdes) (opencomputeproject#10)
Add two T0 configurations, metadata and port (without serdes) base on the config_db.json configuration file. Define the new setup method in T0 broadcom. Add a config file for the s6000_s1220_r0 Refactor the method for abstract the info from config.ini, make the key from the name to the index, which can map the the port index directly. Todo: Add the serdes config, which needs to read the config file and parse the info. Test done: Tested on the dut.
- Loading branch information
1 parent
8feee15
commit ae21282
Showing
3 changed files
with
266 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
ptf/platform_helper/broadcom/s6000_s1220-r0_port_config.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# name lanes alias index speed | ||
Ethernet0 29,30,31,32 fortyGigE0/0 0 40000 | ||
Ethernet4 25,26,27,28 fortyGigE0/4 1 40000 | ||
Ethernet8 37,38,39,40 fortyGigE0/8 2 40000 | ||
Ethernet12 33,34,35,36 fortyGigE0/12 3 40000 | ||
Ethernet16 41,42,43,44 fortyGigE0/16 4 40000 | ||
Ethernet20 45,46,47,48 fortyGigE0/20 5 40000 | ||
Ethernet24 5,6,7,8 fortyGigE0/24 6 40000 | ||
Ethernet28 1,2,3,4 fortyGigE0/28 7 40000 | ||
Ethernet32 9,10,11,12 fortyGigE0/32 8 40000 | ||
Ethernet36 13,14,15,16 fortyGigE0/36 9 40000 | ||
Ethernet40 21,22,23,24 fortyGigE0/40 10 40000 | ||
Ethernet44 17,18,19,20 fortyGigE0/44 11 40000 | ||
Ethernet48 49,50,51,52 fortyGigE0/48 12 40000 | ||
Ethernet52 53,54,55,56 fortyGigE0/52 13 40000 | ||
Ethernet56 61,62,63,64 fortyGigE0/56 14 40000 | ||
Ethernet60 57,58,59,60 fortyGigE0/60 15 40000 | ||
Ethernet64 65,66,67,68 fortyGigE0/64 16 40000 | ||
Ethernet68 69,70,71,72 fortyGigE0/68 17 40000 | ||
Ethernet72 77,78,79,80 fortyGigE0/72 18 40000 | ||
Ethernet76 73,74,75,76 fortyGigE0/76 19 40000 | ||
Ethernet80 105,106,107,108 fortyGigE0/80 20 40000 | ||
Ethernet84 109,110,111,112 fortyGigE0/84 21 40000 | ||
Ethernet88 117,118,119,120 fortyGigE0/88 22 40000 | ||
Ethernet92 113,114,115,116 fortyGigE0/92 23 40000 | ||
Ethernet96 121,122,123,124 fortyGigE0/96 24 40000 | ||
Ethernet100 125,126,127,128 fortyGigE0/100 25 40000 | ||
Ethernet104 85,86,87,88 fortyGigE0/104 26 40000 | ||
Ethernet108 81,82,83,84 fortyGigE0/108 27 40000 | ||
Ethernet112 89,90,91,92 fortyGigE0/112 28 40000 | ||
Ethernet116 93,94,95,96 fortyGigE0/116 29 40000 | ||
Ethernet120 97,98,99,100 fortyGigE0/120 30 40000 | ||
Ethernet124 101,102,103,104 fortyGigE0/124 31 40000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters