Page MenuHomeVyOS Platform

DHCPv6-PD config broken by recent change
Closed, ResolvedPublic


Starting with 1.3-rolling-202007251937 (it works in 1.3-rolling-202007251937), the list of prefix-delegated interfaces dhcpv6_pd_interfaces never makes it to the template in /usr/share/vyos/templates/dhcp-client/ipv6.tmpl.

I believe the change likely related to the get_config_dict() changes in T2653 that were merged on July 25.

To demonstrate, as far as I can tell, have any config with DHCPv6-PD, such as:

interfaces {
    ethernet eth0 {
        address dhcpv6
        dhcpv6-options {
            prefix-delegation {
                interface eth1 {
                    address 1
                    sla-id 1
                    sla-len 4
                interface eth2 {
                    address 1
                    sla-id 2
                    sla-len 4
        ipv6 {
            address {
    ethernet eth1 {
    ethernet eth2 {

And then note the following contents of /run/dhcp6c/dhcp6c.eth0.conf:

# generated by
# man

interface eth0 {
    request domain-name-servers;
    request domain-name;
    send ia-na 1; # non-temporary address

id-assoc na 1 {
    # Identity association NA

There's no send ia-pd 2; # prefix delegation or id-assoc pd 2 { section, so it seems like the new config code isn't propagating the dhcpv6_pd_interfaces value to the _DHCPv6 class in vyos/ifconfig/ from vyos/ifconfig/

I also tried setting int eth eth0 dhcpv6-options temporary just to see if that made it to the config file. It did not.


Difficulty level
Unknown (require assessment)
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

gadams created this task.Jul 29 2020, 9:08 AM
gadams created this object in space S1 VyOS Public.
c-po claimed this task.Aug 3 2020, 9:37 AM
c-po added a comment.Aug 3 2020, 9:44 AM

I have to apologize here: While working on I knew I must change this and did it on PPPoE but I totally forgot about this on all other interfaces as PPPoE has a special case here.

c-po closed this task as Resolved.Aug 3 2020, 10:57 AM