Commit f1f40ca4 authored by Shayan Hajipour's avatar Shayan Hajipour
Browse files

debug: source and destination bandwidths replaced in l3vpn service handler

parent 4781c27e
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -86,7 +86,7 @@ def extract_qos_info_from_connection_group(
                == "ietf-network-slice-service:one-way-bandwidth"
                and metric_bound["metric-unit"] == "Mbps"
            ):
                bandwidth = int(metric_bound["bound"]) * 1e6
                bandwidth = int(metric_bound["bound"]) * 1000000
        return max_delay, bandwidth

    src_cc = next(
@@ -103,11 +103,11 @@ def extract_qos_info_from_connection_group(
    dst_max_delay, dst_bandwidth = extract_qos_info(dst_cc)
    return QoSInfo(
        src_qos_profile_latency=src_max_delay,
        src_input_bw=dst_bandwidth,
        src_output_bw=src_bandwidth,
        src_input_bw=src_bandwidth,
        src_output_bw=dst_bandwidth,
        dst_qos_profile_latency=dst_max_delay,
        dst_input_bw=src_bandwidth,
        dst_output_bw=dst_bandwidth,
        dst_input_bw=dst_bandwidth,
        dst_output_bw=src_bandwidth,
    )