diff --git a/lib/hypervisor/hv_kvm.py b/lib/hypervisor/hv_kvm.py index 13c09ddce547c8bfb9da5f096075a97d58641afb..76b4a1a60757d851a3fa8b1399a1d868e065fc2c 100644 --- a/lib/hypervisor/hv_kvm.py +++ b/lib/hypervisor/hv_kvm.py @@ -287,6 +287,7 @@ class KVMHypervisor(hv_base.BaseHypervisor): if nic.nicparams[constants.NIC_MODE] == constants.NIC_MODE_BRIDGED: script.write("export BRIDGE=%s\n" % nic.nicparams[constants.NIC_LINK]) script.write("export INTERFACE=$1\n") + script.write("export TAGS=\"%s\"\n" % " ".join(instance.tags)) # TODO: make this configurable at ./configure time script.write("if [ -x '%s' ]; then\n" % self._KVM_NETWORK_SCRIPT) script.write(" # Execute the user-specific vif file\n")