]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tests: fix missing test data for network port XML
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 25 Feb 2020 11:08:41 +0000 (11:08 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 25 Feb 2020 15:43:56 +0000 (15:43 +0000)
The network port XML files were not including any usage of vlan
tags or port options, and one of the files was not even processed.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
tests/virnetworkportxml2xmldata/plug-network.xml
tests/virnetworkportxml2xmltest.c

index a3a8899148a87a926f86d920083b2f39e98798a7..8e7fc6d010b21ec5a24707ad45ab8888d44b8d0f 100644 (file)
     <inbound average='1000' peak='4000' floor='2000' burst='1024'/>
     <outbound average='128' peak='256' burst='32768'/>
   </bandwidth>
+  <vlan trunk='yes'>
+    <tag id='2'/>
+    <tag id='1729'/>
+  </vlan>
+  <port isolated='yes'/>
   <rxfilters trustGuest='yes'/>
   <plug type='network' bridge='virbr0'/>
 </networkport>
index 1b2175dd9d72c3c6eb428bddb86c293855a4e408..039da96490706bdfb779841076edad049fbcadef 100644 (file)
@@ -94,6 +94,7 @@ mymain(void)
     DO_TEST("plug-bridge-mactbl");
     DO_TEST("plug-direct");
     DO_TEST("plug-hostdev-pci");
+    DO_TEST("plug-network");
 
     return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
 }