Commit 33c00658 by Guba Sándor

vm: changed NATIVE_OVS to be parsed by celery worker

parent e8f0b363
import lxml.etree as ET import lxml.etree as ET
from os import getenv from os import getenv
from vmcelery import native_ovs
NATIVE_OVS = getenv('NATIVE_OVS') == 'True'
# VM Instance class # VM Instance class
...@@ -265,7 +265,7 @@ class VMNetwork: ...@@ -265,7 +265,7 @@ class VMNetwork:
self.ipv6 = ipv6 self.ipv6 = ipv6
self.model = model self.model = model
if not network_type: if not network_type:
if NATIVE_OVS: if native_ovs:
self.network_type = 'bridge' self.network_type = 'bridge'
self.virtual_port = 'openvswitch' self.virtual_port = 'openvswitch'
else: else:
......
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