Page MenuHomeVyOS Platform

DHCPv6 client runs when dhcpv6-options is configured without requesting an address or PD
Closed, ResolvedPublicBUG

Description

If dhcpv6-options is configured without requesting a DHCPv6 address or PD, the DHCPv6 client runs with an empty configuration. This is because the dhcpv6pd variable on line 1106 of python/vyos/ifconfig/interface.py is assigned an empty dict.

To reproduce boot the ISO and configure as follows:

set interfaces ethernet eth0 dhcpv6-options
commit

Verify dhcp6c is running by running ps ax | grep dhcp6c.

Details

Difficulty level
Easy (less than an hour)
Version
1.4-rolling-202101270854
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

Looks good on 1.4-rolling-202101280218:

vyos@vyos:~$ configure
[edit]
vyos@vyos# set interfaces ethernet eth0 dhcpv6-options
[edit]
vyos@vyos# commit
[edit]
vyos@vyos# exit
Warning: configuration changes have not been saved.
exit
vyos@vyos:~$ ps ax | grep dhcp6c
 1860 ttyS0    R+     0:00 grep dhcp6c
vyos@vyos:~$ show version

Version:          VyOS 1.4-rolling-202101280218
Release Train:    sagitta

Built by:         autobuild@vyos.net
Built on:         Thu 28 Jan 2021 02:18 UTC
Build UUID:       959140d2-44da-4efc-be7f-f50c7d2f63e5
Build Commit ID:  37b270bab20d9f

Architecture:     x86_64
Boot via:         installed image
System type:      KVM guest

Hardware vendor:  QEMU
Hardware model:   Standard PC (Q35 + ICH9, 2009)
Hardware S/N:     
Hardware UUID:    d7e85bbb-ff78-4726-ab5b-831200623857

Copyright:        VyOS maintainers and contributors

Looks good on 1.3-beta-202102010443:

vyos@vyos:~$ configure
[edit]
vyos@vyos# set interfaces ethernet eth0 dhcpv6-options
[edit]
vyos@vyos# commit
[edit]
vyos@vyos# exit
Warning: configuration changes have not been saved.
exit
vyos@vyos:~$ ps ax | grep dhcp6c
 1877 ttyS0    R+     0:00 grep dhcp6c
vyos@vyos:~$ show version

Version:          VyOS 1.3-beta-202102010443
Release Train:    equuleus

Built by:         autobuild@vyos.net
Built on:         Mon 01 Feb 2021 04:43 UTC
Build UUID:       f0edd61b-8868-4537-913a-a4bce3f3ec11
Build Commit ID:  070e2e77e93f34

Architecture:     x86_64
Boot via:         installed image
System type:      KVM guest

Hardware vendor:  QEMU
Hardware model:   Standard PC (Q35 + ICH9, 2009)
Hardware S/N:     
Hardware UUID:    965e3c00-1113-4e3d-828a-c2f1394e5c99

Copyright:        VyOS maintainers and contributors
SrividyaA set Issue type to Bug (incorrect behavior).Aug 30 2021, 6:07 PM