T8243: dhcp: add RFC9463 DNR support for Kea DHCPv4/DHCPv6#4975
Open
jd82k wants to merge 1 commit intovyos:currentfrom
Open
T8243: dhcp: add RFC9463 DNR support for Kea DHCPv4/DHCPv6#4975jd82k wants to merge 1 commit intovyos:currentfrom
jd82k wants to merge 1 commit intovyos:currentfrom
Conversation
|
👍 |
f14b426 to
6ee7df5
Compare
Contributor
Author
|
I have read the CLA Document and I hereby sign the CLA |
c-po
requested changes
Feb 15, 2026
interface-definitions/include/dhcp/dnr-service-parameters.xml.i
Outdated
Show resolved
Hide resolved
interface-definitions/include/dhcp/dnr-service-parameters.xml.i
Outdated
Show resolved
Hide resolved
interface-definitions/include/dhcp/dnr-service-parameters.xml.i
Outdated
Show resolved
Hide resolved
interface-definitions/include/dhcp/dnr-service-parameters.xml.i
Outdated
Show resolved
Hide resolved
interface-definitions/include/dhcp/dnr-service-parameters.xml.i
Outdated
Show resolved
Hide resolved
c-po
reviewed
Feb 15, 2026
c-po
reviewed
Feb 15, 2026
Member
c-po
left a comment
There was a problem hiding this comment.
You should also probe in verify() that dohpath exists when required.
You should not rely on the KEA failsafe to not load an invalid config.
cpo@LR1.wue3# show service dhcp-server
shared-network-name DNR {
subnet 172.18.202.0/24 {
option {
dnr 10 {
+ address 1.2.3.4
authentication-domain-name resolver1.example
priority 100
+ service-parameter {
+ alpn dot
+ alpn h2
+ port 853
+ }
}
}
range zero {
start 172.18.202.101
stop 172.18.202.111
}
subnet-id 1
}
}
[edit]
cpo@LR1.wue3# commit
[ service dhcp-server ]
Unexpected error with Kea configuration: option data does not match
option definition (space: dhcp4, code: 162): DHCPv4 Encrypted DNS Option
(162) malformed: Wrong Svc Params syntax - dohpath SvcParam missing.
When alpn SvcParam indicates support for HTTP, dohpath must be present.
(/run/kea/kea-dhcp4.conf:54:33) (/run/kea/kea-dhcp4.conf:41:5)
[[service dhcp-server]] failed
Commit failed
Member
|
Smoketests failing |
Contributor
Author
Now it should work well. |
dmbaturin
approved these changes
Feb 19, 2026
Member
dmbaturin
left a comment
There was a problem hiding this comment.
I don't see any issues offhand now. We generally prefer using vyos.utils.dict.dict_search rather than .get() but for single-level keys it doesn't really matter.
Add CLI support for Discovery of Network-designated Resolvers (DNR) under DHCP option trees and render it to Kea option-data. - Add new DNR nodes for DHCPv4 and DHCPv6 option config: - priority - authentication-domain-name - address (v4/v6) - service-parameter (alpn/port/dohpath/raw) - Map DNR config in python/vyos/kea.py: - DHCPv4: emit a single v4-dnr option with instances joined by "|" - DHCPv6: emit one v6-dnr option per instance - Add smoke tests for DHCPv4 and DHCPv6 DNR rendering. Note: SLAAC/RA DNR is not part of this commit; current router-advert backend (radvd) does not expose RFC9463 DNR option support.
|
CI integration ❌ failed! Details
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change summary
Add CLI support for Discovery of Network-designated Resolvers (DNR) under DHCP option trees and render it to Kea option-data.
Note: SLAAC/RA DNR is not part of this commit; current router-advert backend (radvd) does not expose RFC9463 DNR option support.
Types of changes
Related Task(s)
https://vyos.dev/T8243
Related PR(s)
How to test / Smoketest result
Checklist: