Skip to content

Commit

Permalink
[sonic-cfggen]: Update UT to add port lanes (#10362)
Browse files Browse the repository at this point in the history
Why I did it
Need to run yang validation for sonic-cfggen unit test, and many unit test does not provide lanes for port table.

How I did it
Update port config file.

How to verify it
Run sonic-cfggen unit test,
Use below PR to verify
#10228

Signed-off-by: Gang Lv [email protected]
  • Loading branch information
ganglyu authored and judyjoseph committed Apr 18, 2022
1 parent d224315 commit c3e1e2d
Show file tree
Hide file tree
Showing 6 changed files with 155 additions and 96 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# name lanes alias index asic_port_name role
Ethernet0 33,34,35,36 Ethernet1/1 0 Eth0-ASIC0 Ext
Ethernet4 29,30,31,32 Ethernet1/2 1 Eth1-ASIC0 Ext
Ethernet8 41,42,43,44 Ethernet1/3 2 Eth2-ASIC0 Ext
Ethernet12 37,38,39,40 Ethernet1/4 3 Eth3-ASIC0 Ext
Ethernet-BP0 13,14,15,16 Eth4-ASIC0 4 Eth4-ASIC0 Int
Ethernet-BP4 17,18,19,20 Eth5-ASIC0 5 Eth5-ASIC0 Int
Ethernet-BP8 21,22,23,24 Eth6-ASIC0 6 Eth6-ASIC0 Int
Ethernet-BP12 25,26,27,28 Eth7-ASIC0 7 Eth7-ASIC0 Int
Ethernet16 33,34,35,36 Ethernet1/5 8 Eth0-ASIC1 Ext
Ethernet20 29,30,31,32 Ethernet1/6 9 Eth1-ASIC1 Ext
Ethernet24 41,42,43,44 Ethernet1/7 10 Eth2-ASIC1 Ext
Ethernet28 37,38,39,40 Ethernet1/8 11 Eth3-ASIC1 Ext
Ethernet-BP16 13,14,15,16 Eth4-ASIC1 12 Eth4-ASIC1 Int
Ethernet-BP20 17,18,19,20 Eth5-ASIC1 13 Eth5-ASIC1 Int
Ethernet-BP24 21,22,23,24 Eth6-ASIC1 14 Eth6-ASIC1 Int
Ethernet-BP28 25,26,27,28 Eth7-ASIC1 15 Eth7-ASIC1 Int
Ethernet-BP256 61,62,63,64 Eth0-ASIC2 16 Eth0-ASIC2 Int
Ethernet-BP260 57,58,59,60 Eth1-ASIC2 17 Eth1-ASIC2 Int
Ethernet-BP264 53,54,55,56 Eth2-ASIC2 18 Eth2-ASIC2 Int
Ethernet-BP268 49,50,51,52 Eth3-ASIC2 19 Eth3-ASIC2 Int
Ethernet-BP272 45,46,47,48 Eth4-ASIC2 20 Eth4-ASIC2 Int
Ethernet-BP276 41,42,43,44 Eth5-ASIC2 21 Eth5-ASIC2 Int
Ethernet-BP280 37,38,39,40 Eth6-ASIC2 22 Eth6-ASIC2 Int
Ethernet-BP284 33,34,35,36 Eth7-ASIC2 23 Eth7-ASIC2 Int
Ethernet-BP384 29,30,31,32 Eth0-ASIC3 24 Eth0-ASIC3 Int
Ethernet-BP388 25,26,27,28 Eth1-ASIC3 25 Eth1-ASIC3 Int
Ethernet-BP392 21,22,23,24 Eth2-ASIC3 26 Eth2-ASIC3 Int
Ethernet-BP396 17,18,19,20 Eth3-ASIC3 27 Eth3-ASIC3 Int
Ethernet-BP400 13,14,15,16 Eth4-ASIC3 28 Eth4-ASIC3 Int
Ethernet-BP404 9,10,11,12 Eth5-ASIC3 29 Eth5-ASIC3 Int
Ethernet-BP408 5,6,7,8 Eth6-ASIC3 30 Eth6-ASIC3 Int
Ethernet-BP412 1,2,3,4 Eth7-ASIC3 31 Eth7-ASIC3 Int

Loading

0 comments on commit c3e1e2d

Please sign in to comment.