Skip to content
Snippets Groups Projects
Commit 9537ddb3 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Interdomain component:

- use same slice_uuid in remote domains for simplicity
parent fcc6fd44
No related branches found
No related tags found
2 merge requests!54Release 2.0.0,!24Integrate NFV-SDN'22 demo
...@@ -90,11 +90,11 @@ class InterdomainServiceServicerImpl(InterdomainServiceServicer): ...@@ -90,11 +90,11 @@ class InterdomainServiceServicerImpl(InterdomainServiceServicer):
dlt_record_sender = DltRecordSender(context_client, dlt_connector_client) dlt_record_sender = DltRecordSender(context_client, dlt_connector_client)
for domain_uuid, is_local_domain, endpoint_ids in traversed_domains: for domain_uuid, is_local_domain, endpoint_ids in traversed_domains:
slice_uuid = str(uuid.uuid4())
LOGGER.info('[loop] domain_uuid={:s} is_local_domain={:s} slice_uuid={:s}'.format(
str(domain_uuid), str(is_local_domain), str(slice_uuid)))
if is_local_domain: if is_local_domain:
slice_uuid = str(uuid.uuid4())
LOGGER.info('[loop] [local] domain_uuid={:s} is_local_domain={:s} slice_uuid={:s}'.format(
str(domain_uuid), str(is_local_domain), str(slice_uuid)))
# local slices always in DEFAULT_CONTEXT_UUID # local slices always in DEFAULT_CONTEXT_UUID
#context_uuid = request.slice_id.context_id.context_uuid.uuid #context_uuid = request.slice_id.context_id.context_uuid.uuid
context_uuid = DEFAULT_CONTEXT_UUID context_uuid = DEFAULT_CONTEXT_UUID
...@@ -105,6 +105,10 @@ class InterdomainServiceServicerImpl(InterdomainServiceServicer): ...@@ -105,6 +105,10 @@ class InterdomainServiceServicerImpl(InterdomainServiceServicer):
LOGGER.info('[loop] [local] sub_slice={:s}'.format(grpc_message_to_json_string(sub_slice))) LOGGER.info('[loop] [local] sub_slice={:s}'.format(grpc_message_to_json_string(sub_slice)))
sub_slice_id = slice_client.CreateSlice(sub_slice) sub_slice_id = slice_client.CreateSlice(sub_slice)
else: else:
slice_uuid = request.slice_id.slice_uuid.uuid
LOGGER.info('[loop] [remote] domain_uuid={:s} is_local_domain={:s} slice_uuid={:s}'.format(
str(domain_uuid), str(is_local_domain), str(slice_uuid)))
# create context/topology for the remote domains where we are creating slices # create context/topology for the remote domains where we are creating slices
create_context(context_client, domain_uuid) create_context(context_client, domain_uuid)
create_topology(context_client, domain_uuid, DEFAULT_TOPOLOGY_UUID) create_topology(context_client, domain_uuid, DEFAULT_TOPOLOGY_UUID)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment