]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: changing network interface types when backend tag is defined.
authorJulio Faracco <jcfaracco@gmail.com>
Fri, 17 Nov 2017 21:27:40 +0000 (19:27 -0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 23 Nov 2017 16:43:13 +0000 (17:43 +0100)
Some test cases have the backend tag inside wrong interfaces. The backend xml
tag does not support <interface type='user|direct|hostdev'>. So this commit
changes some network types inside the interfaces that have backend defined.

Signed-off-by: Julio Faracco <jcfaracco@gmail.com>
tests/qemuxml2argvdata/qemuxml2argv-tap-vhost-incorrect.xml
tests/qemuxml2argvdata/qemuxml2argv-tap-vhost.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-tap-vhost-incorrect.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-tap-vhost.xml

index a1532cb10f0f2745261e1d4bfd63dda004734782..4e1d67e4e18b7a6d31fae04143a5a6aa796e64a0 100644 (file)
     </controller>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <interface type='user'>
+    <interface type='network'>
       <mac address='52:54:00:e5:48:58'/>
+      <source network='default'/>
       <model type='e1000'/>
       <driver name='vhost' queues='5'/>
       <backend tap='/dev/null' vhost='/dev/zero'/>
     </interface>
-    <interface type='user'>
+    <interface type='network'>
       <mac address='52:54:00:e5:48:59'/>
+      <source network='default'/>
       <model type='virtio'/>
       <driver name='vhost' queues='1'/>
       <backend tap='/dev/null' vhost='/dev/zero'/>
index c2303b72aca7f04972dec217c3cddc595c48c90c..6d7ffb05a33ede9e17ee17be2e5f964fd257d47a 100644 (file)
@@ -35,8 +35,9 @@
     </controller>
     <controller type='ide' index='0'/>
     <controller type='pci' index='0' model='pci-root'/>
-    <interface type='user'>
+    <interface type='network'>
       <mac address='52:54:00:e5:48:58'/>
+      <source network='default'/>
       <model type='virtio'/>
       <driver name='vhost' queues='5'/>
       <backend tap='/dev/null' vhost='/dev/zero'/>
index 3a95b6088c46e562b3e220238285fa9a34f07e25..a6be7542c8d34d9e505bb10b50b0ebf0793ce732 100644 (file)
       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
     </controller>
     <controller type='pci' index='0' model='pci-root'/>
-    <interface type='user'>
+    <interface type='network'>
       <mac address='52:54:00:e5:48:58'/>
+      <source network='default'/>
       <model type='e1000'/>
       <backend tap='/dev/null'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
     </interface>
-    <interface type='user'>
+    <interface type='network'>
       <mac address='52:54:00:e5:48:59'/>
+      <source network='default'/>
       <model type='virtio'/>
       <driver name='vhost'/>
       <backend tap='/dev/null' vhost='/dev/zero'/>
index 759b8443956aaaebd0072c8ecf6ccef3780db93c..7787befb8888be1594339ec219d1a2a756ff11f1 100644 (file)
@@ -39,8 +39,9 @@
       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
     </controller>
     <controller type='pci' index='0' model='pci-root'/>
-    <interface type='user'>
+    <interface type='network'>
       <mac address='52:54:00:e5:48:58'/>
+      <source network='default'/>
       <model type='virtio'/>
       <driver name='vhost' queues='5'/>
       <backend tap='/dev/null' vhost='/dev/zero'/>