How do you add a VLAN tag to a libvirt SR-IOV VF network using
the "virsh net-update" command? I couldn't find the section to pass
to the "virsh net-update" command to add the VLAN tag.
I have the following libvirt network defined for a SR-IOV VF:
<forward mode='hostdev' managed='yes'>
<address type='pci' domain='0x0000' bus='0x02' slot='0x10' function='0x0'/>
I am trying to add VLAN 100 to this network. If I use the following command to
add a VLAN tag to this network:
virsh net-update GE0-0-SRIOV-1 modify bridge --xml "<vlan trunk='no'><tag id='100'/></vlan>"
It fails as the section "bridge" doesn't support adding a VLAN tag. I have tried
other section values like domain and all of them fail.
I am able to add the VLAN to the portgroup section, but then the VLAN configuration
is not propagated to the underlying physical PF interface.
If I manually add the VLAN configuration using the "virsh net-edit" command and
then connect a VM to this network, then the VLAN information is correctly propagated
to the underlying physical NIC device. I need a way to automate this configuration.