add bandwidth as a service option for ppp (l2tp, pppoe)

This commit is contained in:
Daniel Barlow
2025-03-27 20:23:26 +00:00
parent dd44fbaec1
commit 46ed8f0199
5 changed files with 12 additions and 1 deletions

View File

@@ -13,6 +13,7 @@
username,
password,
lcpEcho,
bandwidth,
ppp-options,
dependencies ? [ ],
}:
@@ -115,7 +116,7 @@ let
${command}
'';
notification-fd = 10;
# properties.bandwidth = 3 * 1000 * 1000;
properties.bandwidth = bandwidth;
timeout-up =
if lcpEcho.failure != null then (10 + lcpEcho.failure * lcpEcho.interval) * 1000 else 60 * 1000;
inherit dependencies;