<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div>Hi all,</div><div><br></div><div>How do you add a VLAN tag to a libvirt SR-IOV VF network using</div><div>the "virsh net-update" command? I couldn't find the section to pass</div><div>to the "virsh net-update" command to add the VLAN tag.</div><div><br></div><div>I have the following libvirt network defined for a SR-IOV VF:</div><div><br></div><div><span><div><network></div><div>  <name>GE0-0-SRIOV-1</name></div><div>  <uuid>7bc67166-c78e-4bcf-89ee-377dd9086631</uuid></div><div>  <forward mode='hostdev' managed='yes'></div><div>    <driver name='vfio'/></div><div>    <address type='pci' domain='0x0000' bus='0x02' slot='0x10' function='0x0'/></div><div>  </forward></div><div></network><br></div><div><br></div><div>I am trying to add VLAN 100 to this network. If I use the following command to</div><div>add a VLAN tag to this network:</div><div><br></div><div><span>virsh net-update GE0-0-SRIOV-1 modify bridge --xml "<vlan trunk='no'><tag id='100'/></vlan>"</span><br></div></span><br></div><div>It fails as the section "bridge" doesn't support adding a VLAN tag. I have tried</div><div>other section values like domain and all of them fail.</div><div><br></div><div>I am able to add the VLAN to the portgroup section, but then the VLAN configuration</div><div>is not propagated to the underlying physical PF interface.</div><div><br></div><div>If I manually add the VLAN configuration using the "virsh net-edit" command and</div><div>then connect a VM to this network, then the VLAN information is correctly propagated</div><div>to the underlying physical NIC device. I need a way to automate this configuration.</div><div><br></div><div>Any pointers?</div><div><br></div><div>Thanks,</div><div>Yegappan</div><div><br></div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"></div></div></div></body></html>