aboutsummaryrefslogtreecommitdiffstats
path: root/tools/dhcpns/config/dhcp4.py
diff options
context:
space:
mode:
authorOle Mathias Heggem <olemathias.aa.heggem@gmail.com>2023-04-26 21:27:51 +0200
committerOle Mathias Heggem <olemathias.aa.heggem@gmail.com>2023-04-26 21:27:51 +0200
commit9dc4d7eedb7ddd89d1e95e3fd55ccffd30a3e0df (patch)
tree0e03c243eb2ae0c79a267526895722993cc1512d /tools/dhcpns/config/dhcp4.py
parent016bebe4e781153c4ed0a0129f4949317d7dddf9 (diff)
tg23 dhcpns dump
Diffstat (limited to 'tools/dhcpns/config/dhcp4.py')
-rw-r--r--tools/dhcpns/config/dhcp4.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/dhcpns/config/dhcp4.py b/tools/dhcpns/config/dhcp4.py
index d1a779d..eeabe5e 100644
--- a/tools/dhcpns/config/dhcp4.py
+++ b/tools/dhcpns/config/dhcp4.py
@@ -270,7 +270,7 @@ def subnet(vlan, prefix, domain_name, vlan_domain_name):
def fap(vlan, prefix):
network = ipaddress.ip_network(prefix.prefix)
gw, start_ip, end_ip = network[1], network[(
- math.ceil(network.num_addresses / 2))], network[-2]
+ math.ceil(network.num_addresses - 50))], network[-2]
return {
"id": prefix.id,