diff options
-rw-r--r-- | tools/dhcpns/config/dhcp4.py | 2 | ||||
-rw-r--r-- | tools/dhcpns/config/dhcp6.py | 7 |
2 files changed, 8 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, diff --git a/tools/dhcpns/config/dhcp6.py b/tools/dhcpns/config/dhcp6.py index 028aa03..4799fa1 100644 --- a/tools/dhcpns/config/dhcp6.py +++ b/tools/dhcpns/config/dhcp6.py @@ -5,6 +5,13 @@ import ipaddress def base(subnet6): return { "hooks-libraries": [ + { + "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_run_script.so", + "parameters": { + "name": "/etc/kea/gondul.sh", + "sync": False + } + } ], "interfaces-config": { "interfaces": [ |