Starting from version 1.3.5, Libvirt allows to set a vlan tag for macvtap
passthrough mode on SR-IOV VFs. Libvirt also removes any vlan tags that
has been set externally, by the ip link command.
In order to support the older libvirt versions, this code will make
the behaviour backward compatible by checking the libvirt version.
This can be completely removed once the minimum libvirt version will increase.
Reviewed: https:/ /review. openstack. org/421186 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=bf3ba76a91e 362c0b3b8094964 adc06f6a4ec62e
Committed: https:/
Submitter: Jenkins
Branch: master
commit bf3ba76a91e362c 0b3b8094964adc0 6f6a4ec62e
Author: Vladik Romanovsky <email address hidden>
Date: Tue Jan 17 04:56:47 2017 -0500
libvirt: set vlan tag for macvtap on SR-IOV VFs
Starting from version 1.3.5, Libvirt allows to set a vlan tag for macvtap
passthrough mode on SR-IOV VFs. Libvirt also removes any vlan tags that
has been set externally, by the ip link command.
In order to support the older libvirt versions, this code will make
the behaviour backward compatible by checking the libvirt version.
This can be completely removed once the minimum libvirt version will increase.
Change-Id: Ia14e78e0eda81b 8d29d5aa6e07e68 777665d0710
Closes-Bug: #1657035