Repository navigation
pci_passthrough: add vlan_nic variant to run VLAN test on passthrough NIC! - #425
Open
Anushree-Mathur wants to merge 1 commit into
Open
Anushree-Mathur wants to merge 1 commit into
Anushree-Mathur wants to merge 1 commit into
Conversation
… NIC The tp-libvirt libvirt_pci_passthrough test gained a vlan_nic variant that creates an 802.1Q VLAN sub-interface on the passthrough NIC inside the guest, verifies its address, UP state, VLAN protocol and VLAN id for ids 1, 100 and 4094, and removes it again. Add a vlan_nic entry to pci_passthrough.cfg so the new test is picked up when this suite is run. It selects libvirt_pci_passthrough.vlan_nic and declares the only two parameters the test needs: vlan_ip IP address assigned to the VLAN sub-interface vlan_prefix prefix length of that address Following the convention used by the other user-specific values in this file, both are set to "ENTER.YOUR.*" placeholders with an example in the comment (20.20.20.1 and 24), so the user knows what to fill in. No physical connectivity on the VLAN is required, so any unused private address works. The remaining parameters the test uses (libvirt_pci_net_dev_label, libvirt_pci_net_ip, ...) are already defined at the top of this file. The variant is placed before guest_remove, since guest_remove deletes the guest that the test needs. Depends on the tp-libvirt change "passthrough/pci: add 802.1Q VLAN test on passthrough NIC". Signed-off-by: Anushree Mathur <anushree.mathur@linux.ibm.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The tp-libvirt libvirt_pci_passthrough test gained a vlan_nic variant that creates an 802.1Q VLAN sub-interface on the passthrough NIC inside the guest, verifies its address, UP state, VLAN protocol and VLAN id for ids 1, 100 and 4094, and removes it again.
Add a vlan_nic entry to pci_passthrough.cfg so the new test is picked up when this suite is run. It selects libvirt_pci_passthrough.vlan_nic and declares the only two parameters the test needs:
vlan_ip IP address assigned to the VLAN sub-interface
vlan_prefix prefix length of that address
Following the convention used by the other user-specific values in this file, both are set to "ENTER.YOUR.*" placeholders with an example in the comment (20.20.20.1 and 24), so the user knows what to fill in. No physical connectivity on the VLAN is required, so any unused private address works.
The remaining parameters the test uses (libvirt_pci_net_dev_label, libvirt_pci_net_ip, ...) are already defined at the top of this file.
The variant is placed before guest_remove, since guest_remove deletes the guest that the test needs.
Depends on the tp-libvirt change "passthrough/pci: add 802.1Q VLAN test on passthrough NIC".
Signed-off-by: Anushree-Mathur <anushree.mathur@linux.ibm.com>