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
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
# 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:
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"]:
"""
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()