-
Notifications
You must be signed in to change notification settings - Fork 32
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
Support for vf testing in enrt #375
Support for vf testing in enrt #375
Conversation
Signed-off-by: Jan Tluka <[email protected]>
Signed-off-by: Jan Tluka <[email protected]>
Signed-off-by: Jan Tluka <[email protected]>
Enables use of VFs in ENRT recipes without need of code modification. Signed-off-by: Jan Tluka <[email protected]>
Signed-off-by: Jan Tluka <[email protected]>
TODO: add testwide description |
4d47614
to
b3e0826
Compare
Signed-off-by: Jan Tluka <[email protected]>
b3e0826
to
a87cb8a
Compare
VlansRecipe shows incorrect order of network configuration - first vlan devices are created over PFs, then VFs are created:
The DoubleBondRecipe and LinuxBridgeOverBondRecipe are working fine. |
The problem seems to be the VlansRecipe code that firstly creates VlanDevices, then calls lnst/lnst/Recipes/ENRT/VlansRecipe.py Line 99 in cf77e38
|
Same issue is in following recipes:
|
There was a problem hiding this 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.
eef8291
to
0abffb6
Compare
Fixed. I will rerun the tests for the updated recipes to check I did not miss anything. |
Additional tests for tests with fixed Since our internal test coverage does not include BondRecipe, TeamRecipe and TeamVsBondRecipe, I did not include these. |
All tests except VxlanMulticastRecipe ran fine with and without I'll update the patch that modifies VxlanMulticastRecipe and this can be merged. |
To properly use the UseVfsMixin, the test_wide_configuration must be called before creating any devices, otherwise the PFs could be used as parent device for e.g. Bond or VlanDevice instead of VFs. Signed-off-by: Jan Tluka <[email protected]>
0abffb6
to
798c83c
Compare
Description
This adds new mixin that can be used in ENRT recipes to use VFs of the NICs (PFs) defined by DeviceReq recipe requirements instead of PFs. This is configurable through a bool parameter without need of any additional changes to the original recipe.
Tests
Reviews
@olichtne @enhaut