Skip to content

feat: Add InterfaceType.VPORT to supported interface types for Virtualization feature#49

Merged
mchromin merged 1 commit into
intel:mainfrom
KTokarze:add_vport_to_supported_types
May 19, 2026
Merged

feat: Add InterfaceType.VPORT to supported interface types for Virtualization feature#49
mchromin merged 1 commit into
intel:mainfrom
KTokarze:add_vport_to_supported_types

Conversation

@KTokarze
Copy link
Copy Markdown
Contributor

This pull request expands the supported interface types for virtualization features in linux.py to include VPORT, in addition to the existing PF and BTS types. It updates both the implementation and all related docstrings to reflect this change, and adds a new unit test to verify the new behavior.

Support for VPORT interface type:

  • Updated _raise_error_if_not_supported_type to allow VPORT as a supported interface type, alongside PF and BTS (linux.py).
  • Modified all relevant method docstrings in linux.py to indicate that VirtualizationWrongInterfaceException is now raised for non-PF/BTS/VPORT interfaces, instead of just non-PF interfaces. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15]

Testing:

  • Added a new unit test test__raise_error_if_not_pf_passes_vport to ensure that VPORT is accepted as a valid interface type for virtualization features (test_virtualization_linux.py).

Copilot AI review requested due to automatic review settings May 18, 2026 13:52
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR expands Linux virtualization feature support to accept InterfaceType.VPORT in addition to the existing PF and BTS interface types, and updates related documentation/tests accordingly.

Changes:

  • Allow InterfaceType.VPORT in LinuxVirtualization._raise_error_if_not_supported_type().
  • Update multiple docstrings to reflect the expanded set of supported interface types.
  • Add a unit test asserting that VPORT passes the supported-type check.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
mfd_network_adapter/network_interface/feature/virtualization/linux.py Extends supported interface type validation to include VPORT and updates docstrings.
tests/unit/test_mfd_network_adapter/test_network_interface/test_feature/test_virtualization/test_virtualization_linux.py Adds coverage to ensure VPORT is accepted by the supported-type guard.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread mfd_network_adapter/network_interface/feature/virtualization/linux.py Outdated
Comment thread mfd_network_adapter/network_interface/feature/virtualization/linux.py Outdated
@KTokarze KTokarze force-pushed the add_vport_to_supported_types branch from 2db5a9d to f581306 Compare May 18, 2026 15:20
…lization feature

Signed-off-by: Kacper Tokarzewski <kacper.tokarzewski@intel.com>
@KTokarze KTokarze force-pushed the add_vport_to_supported_types branch from f581306 to 54cde66 Compare May 18, 2026 15:27
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

@mchromin mchromin merged commit be9f7fb into intel:main May 19, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants