virnetworkportxml2xmltest: Add simple versions of bridge/network tests

Add versions stripping vlans and bandwidth setup so that they can be
used in qemuxml2argvtest for interfaces which don't support the above.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Peter Krempa 2023-12-01 23:09:48 +01:00
parent b5664c73b3
commit 72d13d37e3
3 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,11 @@
<networkport>
<uuid>5d744f21-ba4a-4d6e-bdb2-30a35ff3207d</uuid>
<owner>
<name>memtest</name>
<uuid>d54df46f-1ab5-4a22-8618-4560ef5fac2c</uuid>
</owner>
<group>web1</group>
<mac address='52:54:00:7b:35:93'/>
<rxfilters trustGuest='yes'/>
<plug type='bridge' bridge='virbr0'/>
</networkport>

View File

@ -0,0 +1,10 @@
<networkport>
<uuid>5d744f21-ba4a-4d6e-bdb2-30a35ff3207d</uuid>
<owner>
<name>memtest</name>
<uuid>d54df46f-1ab5-4a22-8618-4560ef5fac2c</uuid>
</owner>
<group>web1</group>
<mac address='52:54:00:7b:35:93'/>
<plug type='network' bridge='virbr0'/>
</networkport>

View File

@ -81,11 +81,13 @@ mymain(void)
DO_TEST("plug-none");
DO_TEST("plug-bridge");
DO_TEST("plug-bridge-basic");
DO_TEST("plug-bridge-mactbl");
DO_TEST("plug-direct");
DO_TEST("plug-hostdev-pci");
DO_TEST("plug-hostdev-pci-unmanaged");
DO_TEST("plug-network");
DO_TEST("plug-network-basic");
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}