Skip to content

Commit

Permalink
Support dynamic port breakout on AS4630-54PE
Browse files Browse the repository at this point in the history
  • Loading branch information
chihhan123 committed Aug 22, 2022
1 parent 509e3bd commit 88dc66c
Show file tree
Hide file tree
Showing 4 changed files with 1,044 additions and 55 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,267 @@
{
"interfaces": {
"Ethernet0": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet1": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet2": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet3": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet4": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet5": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet6": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet7": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet8": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet9": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet10": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet11": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet12": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet13": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet14": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet15": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet16": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet17": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet18": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet19": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet20": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet21": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet22": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet23": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet24": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet25": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet26": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet27": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet28": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet29": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet30": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet31": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet32": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet33": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet34": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet35": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet36": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet37": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet38": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet39": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet40": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet41": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet42": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet43": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet44": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet45": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet46": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet47": {
"default_brkout_mode": "1x1G",
"autoneg": "on"
},

"Ethernet48": {
"default_brkout_mode": "1x25G[10G]"
},

"Ethernet49": {
"default_brkout_mode": "1x25G[10G]"
},

"Ethernet50": {
"default_brkout_mode": "1x25G[10G]"
},

"Ethernet51": {
"default_brkout_mode": "1x25G[10G]"
},

"Ethernet52": {
"default_brkout_mode": "1x100G[40G]"
},

"Ethernet56": {
"default_brkout_mode": "1x100G[40G]"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,19 @@ ifp_inports_support_enable=1
#3x PM4x10Q (3 * 16 = 48 physical ports)
#Doesn't support oversubscribe in Q mode
#MCQ0
port_gmii_mode_1=1 #Q mode
port_gmii_mode_1=1 #Q mode

#riot vxlan
#dport_map_direct=1
flow_init_mode=1
riot_enable=1
riot_overlay_l3_intf_mem_size=4096
riot_overlay_l3_egress_mem_size=8192
l3_ecmp_levels=2
riot_overlay_ecmp_resilient_hash_size=16384
use_all_splithorizon_groups=1
host_as_route_disable=1
max_vp_lags=448

#PHY4 U56 xx1, MDC/MDIO2, PHYADDR:0x00-0x07, 0x08
port_phy_addr_1=0x40
Expand Down
Original file line number Diff line number Diff line change
@@ -1,55 +1,55 @@
# name lanes alias index speed autoneg
Ethernet0 26 thousandE1 1 1000 on
Ethernet1 25 thousandE2 2 1000 on
Ethernet2 28 thousandE3 3 1000 on
Ethernet3 27 thousandE4 4 1000 on
Ethernet4 30 thousandE5 5 1000 on
Ethernet5 29 thousandE6 6 1000 on
Ethernet6 32 thousandE7 7 1000 on
Ethernet7 31 thousandE8 8 1000 on
Ethernet8 38 thousandE9 9 1000 on
Ethernet9 37 thousandE10 10 1000 on
Ethernet10 40 thousandE11 11 1000 on
Ethernet11 39 thousandE12 12 1000 on
Ethernet12 34 thousandE13 13 1000 on
Ethernet13 33 thousandE14 14 1000 on
Ethernet14 36 thousandE15 15 1000 on
Ethernet15 35 thousandE16 16 1000 on
Ethernet16 46 thousandE17 17 1000 on
Ethernet17 45 thousandE18 18 1000 on
Ethernet18 48 thousandE19 19 1000 on
Ethernet19 47 thousandE20 20 1000 on
Ethernet20 42 thousandE21 21 1000 on
Ethernet21 41 thousandE22 22 1000 on
Ethernet22 44 thousandE23 23 1000 on
Ethernet23 43 thousandE24 24 1000 on
Ethernet24 2 thousandE25 25 1000 on
Ethernet25 1 thousandE26 26 1000 on
Ethernet26 4 thousandE27 27 1000 on
Ethernet27 3 thousandE28 28 1000 on
Ethernet28 6 thousandE29 29 1000 on
Ethernet29 5 thousandE30 30 1000 on
Ethernet30 8 thousandE31 31 1000 on
Ethernet31 7 thousandE32 32 1000 on
Ethernet32 10 thousandE33 33 1000 on
Ethernet33 9 thousandE34 34 1000 on
Ethernet34 12 thousandE35 35 1000 on
Ethernet35 11 thousandE36 36 1000 on
Ethernet36 14 thousandE37 37 1000 on
Ethernet37 13 thousandE38 38 1000 on
Ethernet38 16 thousandE39 39 1000 on
Ethernet39 15 thousandE40 40 1000 on
Ethernet40 18 thousandE41 41 1000 on
Ethernet41 17 thousandE42 42 1000 on
Ethernet42 20 thousandE43 43 1000 on
Ethernet43 19 thousandE44 44 1000 on
Ethernet44 22 thousandE45 45 1000 on
Ethernet45 21 thousandE46 46 1000 on
Ethernet46 24 thousandE47 47 1000 on
Ethernet47 23 thousandE48 48 1000 on
Ethernet48 67 twentyfiveGigE49 49 25000 off
Ethernet49 66 twentyfiveGigE50 50 25000 off
Ethernet50 65 twentyfiveGigE51 51 25000 off
Ethernet51 68 twentyfiveGigE52 52 25000 off
Ethernet52 73,74,75,76 hundredGigE53 53 100000 off
Ethernet56 69,70,71,72 hundredGigE54 54 100000 off
Ethernet0 26 Eth1(Port1) 1 1000 on
Ethernet1 25 Eth2(Port2) 2 1000 on
Ethernet2 28 Eth3(Port3) 3 1000 on
Ethernet3 27 Eth4(Port4) 4 1000 on
Ethernet4 30 Eth5(Port5) 5 1000 on
Ethernet5 29 Eth6(Port6) 6 1000 on
Ethernet6 32 Eth7(Port7) 7 1000 on
Ethernet7 31 Eth8(Port8) 8 1000 on
Ethernet8 38 Eth9(Port9) 9 1000 on
Ethernet9 37 Eth10(Port10) 10 1000 on
Ethernet10 40 Eth11(Port11) 11 1000 on
Ethernet11 39 Eth12(Port12) 12 1000 on
Ethernet12 34 Eth13(Port13) 13 1000 on
Ethernet13 33 Eth14(Port14) 14 1000 on
Ethernet14 36 Eth15(Port15) 15 1000 on
Ethernet15 35 Eth16(Port16) 16 1000 on
Ethernet16 46 Eth17(Port17) 17 1000 on
Ethernet17 45 Eth18(Port18) 18 1000 on
Ethernet18 48 Eth19(Port19) 19 1000 on
Ethernet19 47 Eth20(Port20) 20 1000 on
Ethernet20 42 Eth21(Port21) 21 1000 on
Ethernet21 41 Eth22(Port22) 22 1000 on
Ethernet22 44 Eth23(Port23) 23 1000 on
Ethernet23 43 Eth24(Port24) 24 1000 on
Ethernet24 2 Eth25(Port25) 25 1000 on
Ethernet25 1 Eth26(Port26) 26 1000 on
Ethernet26 4 Eth27(Port27) 27 1000 on
Ethernet27 3 Eth28(Port28) 28 1000 on
Ethernet28 6 Eth29(Port29) 29 1000 on
Ethernet29 5 Eth30(Port30) 30 1000 on
Ethernet30 8 Eth31(Port31) 31 1000 on
Ethernet31 7 Eth32(Port32) 32 1000 on
Ethernet32 10 Eth33(Port33) 33 1000 on
Ethernet33 9 Eth34(Port34) 34 1000 on
Ethernet34 12 Eth35(Port35) 35 1000 on
Ethernet35 11 Eth36(Port36) 36 1000 on
Ethernet36 14 Eth37(Port37) 37 1000 on
Ethernet37 13 Eth38(Port38) 38 1000 on
Ethernet38 16 Eth39(Port39) 39 1000 on
Ethernet39 15 Eth40(Port40) 40 1000 on
Ethernet40 18 Eth41(Port41) 41 1000 on
Ethernet41 17 Eth42(Port42) 42 1000 on
Ethernet42 20 Eth43(Port43) 43 1000 on
Ethernet43 19 Eth44(Port44) 44 1000 on
Ethernet44 22 Eth45(Port45) 45 1000 on
Ethernet45 21 Eth46(Port46) 46 1000 on
Ethernet46 24 Eth47(Port47) 47 1000 on
Ethernet47 23 Eth48(Port48) 48 1000 on
Ethernet48 67 Eth49(Port49) 49 25000 off
Ethernet49 66 Eth50(Port50) 50 25000 off
Ethernet50 65 Eth51(Port51) 51 25000 off
Ethernet51 68 Eth52(Port52) 52 25000 off
Ethernet52 73,74,75,76 Eth53(Port53) 53 100000 off
Ethernet56 69,70,71,72 Eth54(Port54) 54 100000 off
Loading

0 comments on commit 88dc66c

Please sign in to comment.