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(a)redhat.com>
---
tests/virnetworkportxml2xmldata/plug-bridge-basic.xml | 11 +++++++++++
.../virnetworkportxml2xmldata/plug-network-basic.xml | 10 ++++++++++
tests/virnetworkportxml2xmltest.c | 2 ++
3 files changed, 23 insertions(+)
create mode 100644 tests/virnetworkportxml2xmldata/plug-bridge-basic.xml
create mode 100644 tests/virnetworkportxml2xmldata/plug-network-basic.xml
diff --git a/tests/virnetworkportxml2xmldata/plug-bridge-basic.xml
b/tests/virnetworkportxml2xmldata/plug-bridge-basic.xml
new file mode 100644
index 0000000000..5569297b79
--- /dev/null
+++ b/tests/virnetworkportxml2xmldata/plug-bridge-basic.xml
@@ -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>
diff --git a/tests/virnetworkportxml2xmldata/plug-network-basic.xml
b/tests/virnetworkportxml2xmldata/plug-network-basic.xml
new file mode 100644
index 0000000000..549b65a0d1
--- /dev/null
+++ b/tests/virnetworkportxml2xmldata/plug-network-basic.xml
@@ -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>
diff --git a/tests/virnetworkportxml2xmltest.c b/tests/virnetworkportxml2xmltest.c
index 21e3c6f697..2949fa9638 100644
--- a/tests/virnetworkportxml2xmltest.c
+++ b/tests/virnetworkportxml2xmltest.c
@@ -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;
}
--
2.43.0