diff options
author | Ole Mathias Heggem <olemathias.aa.heggem@gmail.com> | 2023-04-26 21:27:51 +0200 |
---|---|---|
committer | Ole Mathias Heggem <olemathias.aa.heggem@gmail.com> | 2023-04-26 21:27:51 +0200 |
commit | 9dc4d7eedb7ddd89d1e95e3fd55ccffd30a3e0df (patch) | |
tree | 0e03c243eb2ae0c79a267526895722993cc1512d | |
parent | 016bebe4e781153c4ed0a0129f4949317d7dddf9 (diff) |
tg23 dhcpns dump
-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": [ |