-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor get_vf_count_and_functions() in 3 different ones. It was doing too many things and was hard to read. Three of its 5 parameters were being used as output and one of them was being changed by _get_target_interface() in the same call chain. The new _get_physical_functions() will also return interfaces that only have the property embedded_switch_mode. This is a requirement to enable netplan to change the eswitch mode even if it doesn't have VFs. See LP: #2020409 Adapt the unit tests to the new functions and implement new tests.
- Loading branch information
1 parent
1dc1332
commit bdce7ff
Showing
2 changed files
with
351 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.