From e46ab6034c9804fa4a95600627e7622eff1b002c Mon Sep 17 00:00:00 2001 From: peusterm Date: Wed, 17 May 2017 10:08:50 +0200 Subject: [PATCH] Fix: Last fixes for OpenStack API imports after renaming --- src/emuvim/api/openstack/monitor_api.py | 6 +++--- .../api/openstack/openstack_dummies/neutron_dummy_api.py | 2 +- src/emuvim/api/openstack/resources/net.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/emuvim/api/openstack/monitor_api.py b/src/emuvim/api/openstack/monitor_api.py index b27a9fa..eb48947 100644 --- a/src/emuvim/api/openstack/monitor_api.py +++ b/src/emuvim/api/openstack/monitor_api.py @@ -97,7 +97,7 @@ class MonitorVnf(Resource): vnf_name = 'mn.' + vnf_name found = False - from emuvim.api.heat.openstack_api_endpoint import OpenstackApiEndpoint + from emuvim.api.openstack.openstack_api_endpoint import OpenstackApiEndpoint for api in OpenstackApiEndpoint.dc_apis: if vnf_name[3:] in api.compute.dc.net: found = True @@ -143,7 +143,7 @@ class MonitorVnfAbs(Resource): vnf_name = 'mn.' + vnf_name found = False - from emuvim.api.heat.openstack_api_endpoint import OpenstackApiEndpoint + from emuvim.api.openstack.openstack_api_endpoint import OpenstackApiEndpoint for api in OpenstackApiEndpoint.dc_apis: if vnf_name[3:] in api.compute.dc.net: found = True @@ -218,7 +218,7 @@ class MonitorVnfDcStack(Resource): # Returns a string or a Response object def _findName(self, dc, stack, vnf): dc_real = None - from emuvim.api.heat.openstack_api_endpoint import OpenstackApiEndpoint + from emuvim.api.openstack.openstack_api_endpoint import OpenstackApiEndpoint for api in OpenstackApiEndpoint.dc_apis: # search for datacenters if dc in api.manage.net.dcs: diff --git a/src/emuvim/api/openstack/openstack_dummies/neutron_dummy_api.py b/src/emuvim/api/openstack/openstack_dummies/neutron_dummy_api.py index 03c01c1..38a5ad4 100644 --- a/src/emuvim/api/openstack/openstack_dummies/neutron_dummy_api.py +++ b/src/emuvim/api/openstack/openstack_dummies/neutron_dummy_api.py @@ -461,7 +461,7 @@ class NeutronCreateSubnet(Resource): net.subnet_id = subnet_dict["subnet"]["id"] else: net.subnet_id = str(uuid.uuid4()) - import emuvim.api.heat.ip_handler as IP + import emuvim.api.openstack.ip_handler as IP net.set_cidr(IP.get_new_cidr(net.subnet_id)) if "tenant_id" in subnet_dict["subnet"]: diff --git a/src/emuvim/api/openstack/resources/net.py b/src/emuvim/api/openstack/resources/net.py index efb22be..8d8a5d3 100644 --- a/src/emuvim/api/openstack/resources/net.py +++ b/src/emuvim/api/openstack/resources/net.py @@ -139,7 +139,7 @@ class Net: """ if cidr is None: if self._cidr is not None: - import emuvim.api.heat.ip_handler as IP + import emuvim.api.openstack.ip_handler as IP IP.free_cidr(self._cidr, self.subnet_id) self._cidr = None self.reset_issued_ip_addresses() -- 2.25.1