Commit 33c00658 by Guba Sándor

vm: changed NATIVE_OVS to be parsed by celery worker

parent e8f0b363
import lxml.etree as ET
from os import getenv
from vmcelery import native_ovs
NATIVE_OVS = getenv('NATIVE_OVS') == 'True'
# VM Instance class
......@@ -265,7 +265,7 @@ class VMNetwork:
self.ipv6 = ipv6
self.model = model
if not network_type:
if native_ovs:
self.network_type = 'bridge'
self.virtual_port = 'openvswitch'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment