The RA settings API reads and writes the advertised prefixes, validates them, and syncs the shared list to cluster peers #192
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#193 The OpenAPI snapshot and Angular API client include the RA prefixes
lantea-one/ninlil
Reference
lantea-one/ninlil#192
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
See #191.
What changes
GetRa/PatchRa: a whole-array-replaceprefixesfield at the top level and in each interface override, shaped like the existingrouteshandling (DhcpSettingsController.cs:1118-1180): prefix, prefix length, on-link, autonomous, valid lifetime, preferred lifetime (RaAdvertisedPrefixOptions.cs:16-50). Messages name the field asprefixes[i].field.src/dotnet/src/Ninlil.Dhcp.Server.Ra/RaContentRules.cs(the lifetime rule at:241exists) and adding what is missing there so the configuration file gets the same checks:fe80::/10and not multicastff00::/8(RFC 4862 §5.5.3, RFC 4861 §6.3.4);IOptionsMonitor,:51-56), soPatchRakeeps returning the hot-reloaded note.prefixes, callClusterConfigSyncSettingsRecorder.RecordAndPublishAsync(src/dotnet/src/Ninlil.Web/ClusterSync/ClusterConfigSyncSettingsRecorder.cs:61) with only that setting, under its own sync key (for exampleDhcpServer:Ra:Prefixes) so it does not share last-writer-wins state with RA fields that do not sync. Check thatSettingsClusterConfigSyncApplierwrites by each entry's section path (:105) and accepts the key. Interface-override prefixes do not sync: interface names belong to one node. Update the recorder's summary (it lists the syncing controllers,:14-19).DhcpSettingsController.cs:64-75and ofDhcpRaSettingsDetail, which say prefixes are file-only.Acceptance
prefixeswith2001:db8:1::/64autonomous, then GET returns it and the next advertisement built byRaAdvertisementProvidercarries it.src/dotnet/tests/Ninlil.Dhcp.Server.Ra.Tests(the shared rules) andsrc/dotnet/tests/Ninlil.Dns.Server.ClusterSync.Testspass; Web.Tests pass exceptOpenApiSnapshotTests(#193, same PR).Source
#191.
Ghost referenced this issue2026-11-05 20:48:52 -05:00