support maps in firewallgen

This commit is contained in:
Daniel Barlow
2025-03-21 21:19:18 +00:00
parent 45047dc023
commit 0ae5689a40
2 changed files with 35 additions and 3 deletions

View File

@@ -151,6 +151,18 @@ in
"eth0"
"eth1"
];
};
map-intf-limits-ip6 = {
name = "intf-limits";
kind = "map";
family = "ip6";
type = { ifname = "bytes"; };
elements = {
# XXX keys need to be generated from interface outputs
ppp0 = builtins.floor (70*1000*1000 * 0.05); # 5% of 70MB fttp connection
lan = builtins.floor (1000*1000*1000 * 0.05); # GB ethernet
};
};
}