mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-27 21:02:14 +00:00
99619fe205
ra_interface_is_served looked up the interface name literally. With dhcpinterfaces=*, which Kea accepts, no interface was served and makedhcp wrote no advertisement. configure_router_advertisements returned when no IPv6 network was left, and the Kea callers ran it only with a DHCPv6 subnet. radvd then kept announcing the old prefix and default route. The wildcard now serves every interface. radvd_config starts its output with a marker line. When no IPv6 network remains and the file carries that marker, makedhcp stops and disables radvd and removes the file. radvd sends a router lifetime of zero when it stops. A radvd configuration without the marker is left alone. Both Kea paths now call configure_router_advertisements on every run. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>