Skip to content
Snippets Groups Projects
Commit 45383bf0 authored by Shayan Hajipour's avatar Shayan Hajipour
Browse files

debug: qos calculation fixed for slice creation

parent b49e1d8f
No related branches found
No related tags found
2 merge requests!359Release TeraFlowSDN 5.0,!307Resolve "(CTTC) L3Slice-IETFSlice Service Handler is Required"
...@@ -213,7 +213,12 @@ def extract_source_destination_device_endpoint_info( ...@@ -213,7 +213,12 @@ def extract_source_destination_device_endpoint_info(
raise Exception( raise Exception(
"There should be one common sdp in all connectivity constructs, otherwise, it is not supported" "There should be one common sdp in all connectivity constructs, otherwise, it is not supported"
) )
common_sdp = common_sdps.pop() if len(common_sdps) == 1:
common_sdp = common_sdps.pop()
elif len(common_sdps) == 2:
common_sdp = sender_sdp
else:
raise Exception('Invalid number of common sdps')
for (sender, receiver), metrics in cc_info.items(): for (sender, receiver), metrics in cc_info.items():
cc_bandwidth = metrics.bandwidth cc_bandwidth = metrics.bandwidth
cc_max_delay = metrics.delay cc_max_delay = metrics.delay
......
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