]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: Prepare for stricter NIC model validation
authorAndrea Bolognani <abologna@redhat.com>
Tue, 25 Jul 2017 14:46:14 +0000 (16:46 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Wed, 26 Jul 2017 15:13:01 +0000 (17:13 +0200)
While using "definitely-not-virtio" as a model name is very
cute, it will also cause the relevant test to fail once we
introduce stricter validation.

Use "e1000", which is definitely not virtio but also a valid
model name, instead.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
tests/qemuxml2argvdata/qemuxml2argv-tap-vhost-incorrect.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-tap-vhost-incorrect.xml

index 1d6c0ff89d0260517850c14bf3b2d9617a3bd2be..a1532cb10f0f2745261e1d4bfd63dda004734782 100644 (file)
@@ -24,7 +24,7 @@
     <controller type='pci' index='0' model='pci-root'/>
     <interface type='user'>
       <mac address='52:54:00:e5:48:58'/>
-      <model type='definitely-not-virtio'/>
+      <model type='e1000'/>
       <driver name='vhost' queues='5'/>
       <backend tap='/dev/null' vhost='/dev/zero'/>
     </interface>
index a39b8cb9a3c5d8b5a9f2188a923ed05ba0738ec9..3a95b6088c46e562b3e220238285fa9a34f07e25 100644 (file)
@@ -28,7 +28,7 @@
     <controller type='pci' index='0' model='pci-root'/>
     <interface type='user'>
       <mac address='52:54:00:e5:48:58'/>
-      <model type='definitely-not-virtio'/>
+      <model type='e1000'/>
       <backend tap='/dev/null'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
     </interface>