Skip to content

Commit

Permalink
Add txcontroller max-rate rules for 40Gbps uplinks (#349)
Browse files Browse the repository at this point in the history
The new Ziply sites have 40Gbps uplinks.
  • Loading branch information
nkinkade authored Oct 4, 2024
1 parent 9b0cfd6 commit 97353f0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/site.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,21 @@ local version = std.extVar('version');
else
// 300Mbits/s
300000000
else
else if uplink == '10g' then
if subnet == 26 then
// 2.5Gbits/s
2500000000
else
// 7.5Gbits/s
7500000000
else if uplink == '40g' then
if subnet == 26 then
// 10Gbits/s
10000000000
else
// 30Gbits/s
30000000000
else error 'Unknown uplink speed for site %s: %d' % [$.name, uplink]
),

// Extract the last octet as an integer.
Expand Down

0 comments on commit 97353f0

Please sign in to comment.