Skip to content

Conversation

@c-po
Copy link
Member

@c-po c-po commented Oct 29, 2025

Change summary

Commit f08a570 (dhcpv6: T7646: restore missing default route after upgrade) introduced a regression affecting both non-VIF and VIF interfaces.

The addressing mode check in the migration logic was incorrect for both cases. For non-VIF interfaces, the migration was skipped entirely due to a missing configuration test. For VIF (VLAN) interfaces, the existing test always evaluated to true, since it incorrectly assumed that DHCPv6 was configured even when a static address was present.

Smoketests have been extended to cover for these cases.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • Other (please describe):

Related Task(s)

Related PR(s)

How to test / Smoketest result

Manual tests:

vyos@vyos# load /usr/libexec/vyos/tests/config/basic-ipv6
Load complete. Use 'commit' to make changes effective.
vyos@vyos# compare commands | match "set interfaces ethernet"
set interfaces ethernet eth0 vif 5 address 'dhcpv6'
set interfaces ethernet eth0 vif 5 ipv6 address autoconf
set interfaces ethernet eth0 vif-s 10 address 'dhcpv6'
set interfaces ethernet eth0 vif-s 10 ipv6 address autoconf
set interfaces ethernet eth0 vif-s 10 vif-c 20 address 'dhcpv6'
set interfaces ethernet eth0 vif-s 10 vif-c 20 ipv6 address autoconf
set interfaces ethernet eth1 vif 50 address '1.2.3.4/31'
set interfaces ethernet eth1 vif-s 60 vif-c 70 address '2.3.4.5/31'
set interfaces ethernet eth2 address 'dhcpv6'
set interfaces ethernet eth2 ipv6 address autoconf

Automatic tests from CI with extended smoketests:

DEBUG - test_basic_ipv6 (__main__.TestConfigBasicIpv6.test_basic_ipv6) ...  time: 27.780
DEBUG - ok

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • I have run the components SMOKETESTS if applicable
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

@github-actions
Copy link

github-actions bot commented Oct 29, 2025

👍
No issues in PR Title / Commit Title

@c-po c-po added bp/sagitta Create automatic backport for sagitta LTS version bp/circinus Create automatic backport for circinus labels Oct 29, 2025
Commit f08a570 ("dhcpv6: T7646: restore missing default route after upgrade")
introduced a regression affecting both non-VIF and VIF interfaces.

The addressing mode check in the migration logic was incorrect for both cases.
For non-VIF interfaces, the migration was skipped entirely due to a missing
configuration test. For VIF (VLAN) interfaces, the existing test always
evaluated to true, since it incorrectly assumed that DHCPv6 was configured
even when a static address was present.

Smoketests have been extended to cover for these cases.
@c-po c-po force-pushed the dhcpv6-migrator-fix branch from 0996c6e to c5ef4f4 Compare October 29, 2025 11:23
@c-po c-po requested review from natali-rs1985 and removed request for dmbaturin October 29, 2025 11:46
Copy link
Member

@dmbaturin dmbaturin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix seems obvious in hindsight... and we should certainly fix the bug, so let's merge this.

Copy link
Contributor

@natali-rs1985 natali-rs1985 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look correct and fix the issue

@github-actions
Copy link

CI integration 👍 passed!

Details

CI logs

  • CLI Smoketests (no interfaces) 👍 passed
  • CLI Smoketests VPP 👍 passed
  • CLI Smoketests (interfaces only) 👍 passed
  • Config tests 👍 passed
  • Config tests VPP 👍 passed
  • RAID1 tests 👍 passed
  • TPM tests 👍 passed

@c-po c-po merged commit 449f3d4 into vyos:current Oct 29, 2025
21 checks passed
@c-po c-po deleted the dhcpv6-migrator-fix branch October 29, 2025 15:10
@vyosbot vyosbot added mirror-initiated This PR initiated for mirror sync workflow mirror-completed and removed mirror-initiated This PR initiated for mirror sync workflow labels Oct 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bp/circinus Create automatic backport for circinus bp/sagitta Create automatic backport for sagitta LTS version current mirror-completed

Development

Successfully merging this pull request may close these issues.

4 participants