mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
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:
parent
b5664c73b3
commit
72d13d37e3
11
tests/virnetworkportxml2xmldata/plug-bridge-basic.xml
Normal file
11
tests/virnetworkportxml2xmldata/plug-bridge-basic.xml
Normal 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>
|
10
tests/virnetworkportxml2xmldata/plug-network-basic.xml
Normal file
10
tests/virnetworkportxml2xmldata/plug-network-basic.xml
Normal 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>
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user