Page MenuHomeVyOS Platform

VIF-C interfaces don't verify configuration
Closed, ResolvedPublicBUG

Description

To reproduce:

configure
set interfaces ethernet eth0 vif-s 100 vif-c 100 dhcpv6-options parameters-only
set interfaces ethernet eth0 vif-s 100 vif-c 100 dhcpv6-options temporary
commit

Expected result:

DHCPv6 temporary and parameters-only options are mutually exclusive!
[[interfaces ethernet eth0]] failed
Commit failed

Details

Difficulty level
Easy (less than an hour)
Version
1.3-beta-202101290443
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Stricter validation
Issue type
Bug (incorrect behavior)

Event Timeline

Thanks! Fix also backported to equuleus branch.

Looks good on 1.4-rolling-202102010218 and 1.3-beta-202102010443:

vyos@vyos:~$ configure
[edit]
vyos@vyos:~$ set interfaces ethernet eth0 vif-s 100 vif-c 100 dhcpv6-options parameters-only
[edit]
vyos@vyos:~$ set interfaces ethernet eth0 vif-s 100 vif-c 100 dhcpv6-options temporary
[edit]
vyos@vyos# commit
DHCPv6 temporary and parameters-only options are mutually exclusive!
[[interfaces ethernet eth0]] failed
Commit failed
[edit]
vyos@vyos# exit discard
exit
vyos@vyos:~$ show version

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

Built by:         [email protected]
Built on:         Mon 01 Feb 2021 02:18 UTC
Build UUID:       46ccda2d-18c1-4582-be8c-1b3bdefb2da4
Build Commit ID:  27d0d96ccdcc2b

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:    1b18bf47-3125-41f6-bee6-47837dc2428a

Copyright:        VyOS maintainers and contributors
vyos@vyos:~$ configure
[edit]
vyos@vyos:~$ set interfaces ethernet eth0 vif-s 100 vif-c 100 dhcpv6-options parameters-only
[edit]
vyos@vyos:~$ set interfaces ethernet eth0 vif-s 100 vif-c 100 dhcpv6-options temporary
[edit]
vyos@vyos# commit
DHCPv6 temporary and parameters-only options are mutually exclusive!
[[interfaces ethernet eth0]] failed
Commit failed
[edit]
vyos@vyos# exit discard
exit
vyos@vyos:~$ show version

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

Built by:         [email protected]
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:10 PM