-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pd] deprecate old prefixes in radvd configuration on DHCPv6 PD change (
#2701) This commit addresses an issue where old prefixes were not being properly deprecated in the RADVD configuration when the upstream interface's delegated prefix changed. Previously, only the new prefix would be advertised, potentially leading to issues for OT still using the old prefix. Now, upon a new PD message, dhcpcd.enter-hook will: - Identify the old and new prefixes: It retrieves the old and new prefix information from the dhcpcd environment variables. - Configure radvd to deprecate the old prefix: If an old prefix exists and is different from the new prefix, the radvd.conf file is updated to include the old prefix with a preferred and valid lifetime of 0. This signals to OT that the prefix is deprecated and should no longer be used. - Publish the new prefix: The new prefix is added to radvd.conf with the appropriate lifetimes received from the DHCPv6 server. - Reload radvd: The radvd service is reloaded to apply the changes.
- Loading branch information
1 parent
1e20da3
commit 6868d1a
Showing
2 changed files
with
54 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters