Fix: hackfest_1 deployment using OSM LB returned
and network not found error. This fix ensures that
some default networks are always available for OSM.
Change-Id: I0ae791d64c527ea451b406452619d04e6f3b98af
Signed-off-by: peusterm <manuel.peuster@uni-paderborn.de>
diff --git a/src/emuvim/api/openstack/manage.py b/src/emuvim/api/openstack/manage.py
index f2aad33..5405e78 100755
--- a/src/emuvim/api/openstack/manage.py
+++ b/src/emuvim/api/openstack/manage.py
@@ -107,17 +107,18 @@
def net(self, value):
if self._net is None:
self._net = value
+ # create default networks
self.init_floating_network()
self._net = value
- def init_floating_network(self):
+ def init_floating_network(self, name="default"):
"""
Initialize the floating network component for the emulator.
Will not do anything if already initialized.
"""
if self.net is not None and self.floating_switch is None:
# create a floating network
- fn = self.floating_network = Net("default")
+ fn = self.floating_network = Net(name)
fn.id = str(uuid.uuid4())
fn.set_cidr(self.floating_netmask)