Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T7162: interface preflight #397

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

gaige
Copy link
Contributor

@gaige gaige commented Feb 20, 2025

Change Summary

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): test fixes

Related Task(s)

https://vyos.dev/T7162

Related PR(s)

Component(s) name

vyos_interfaces

Proposed changes

Changes to ensure that tests work correctly and thoroughly. Require the use of e1000e in a virtual environment as the virtio interfaces don't have all the functionality that the e1000e does.

How to test

ansible-test network-integration --inventory `pwd`/inventory.network vyos_interfaces 

Test results

  • Sanity tests passed
  • Unit tests passed

Tested against VyOS versions:

  • 1.3.8
  • 1.4.1
  • 1.5-rolling-202502030007

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • I have run the ansible sanity and unit tests
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have added unit tests to cover my changes
  • I have added a file to changelogs/fragments to describe the changes

@gaige gaige requested a review from a team as a code owner February 20, 2025 09:29
Copy link
Contributor

@omnom62 omnom62 left a comment

Choose a reason for hiding this comment

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

Looks ok to me

@omnom62
Copy link
Contributor

omnom62 commented Feb 20, 2025

@gaige I see you are adding the preflight details directly via _populate commands?
If so, then should we also add creating bond2 where this is required (almost all vyos*interfaces targets - l3, lag, ospf etc?

@gaige
Copy link
Contributor Author

gaige commented Feb 20, 2025

@gaige I see you are adding the preflight details directly via _populate commands? If so, then should we also add creating bond2 where this is required (almost all vyos*interfaces targets - l3, lag, ospf etc?

Yes, with the caveat that we should only add them where necessary. However, the l3 and lag interface tests should already be functioning properly (adding their prerequisites and removing them as necessary).

With that said, although the lag and l3 interface tests were working before, they are now failing after doing this change, so I'm going to throw it back into draft and take another look. They still work on the main branch for me, so I think there's some dependency on the difference between the prior and current initializers.

I need to look at this later,though.

@gaige gaige marked this pull request as draft February 20, 2025 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants