Skip to content

pci_passthrough: add vlan_nic variant to run VLAN test on passthrough NIC! - #425

Open
Anushree-Mathur wants to merge 1 commit into
lop-devops:masterfrom
Anushree-Mathur:vlan_nic
Open

Anushree-Mathur wants to merge 1 commit into
lop-devops:masterfrom
Anushree-Mathur:vlan_nic

Conversation

@Anushree-Mathur

Copy link
Copy Markdown
Contributor

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>

… 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>
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.

1 participant