Loading src/nbi/service/rest_server/nbi_plugins/ietf_network_slice/ietf_slice_handler.py +5 −1 Original line number Diff line number Diff line Loading @@ -104,7 +104,11 @@ def validate_ietf_slice_data(request_data: Dict) -> None: class IETFSliceHandler: @staticmethod def get_all_ietf_slices(context_client: ContextClient) -> Dict: slices_list = context_client.ListSlices(Empty()) existing_context_ids = context_client.ListContextIds(Empty()) context_ids = list(existing_context_ids.context_ids) if len(context_ids) != 1: raise Exception("Number of contexts should be 1") slices_list = context_client.ListSlices(context_ids[0]) slices = slices_list.slices ietf_slices = {"network-slice-services": {"slice-service": []}} for slice in slices: Loading src/nbi/tests/data/camara-e2e-topology.json +3 −3 Original line number Diff line number Diff line Loading @@ -41,14 +41,14 @@ "action": 1, "custom": { "resource_key": "_connect/address", "resource_value": "10.1.7.194" "resource_value": "10.1.6.201" } }, { "action": 1, "custom": { "resource_key": "_connect/port", "resource_value": "80" "resource_value": "9091" } }, { Loading src/nbi/tests/data/slice/post_network_slice2.json +3 −3 Original line number Diff line number Diff line Loading @@ -156,8 +156,8 @@ }, { "id": 2, "p2mp-sender-sdp": "2", "p2mp-receiver-sdp": "1", "p2p-sender-sdp": "2", "p2p-receiver-sdp": "1", "service-slo-sle-policy": { "slo-policy": { "metric-bound": [ Loading Loading
src/nbi/service/rest_server/nbi_plugins/ietf_network_slice/ietf_slice_handler.py +5 −1 Original line number Diff line number Diff line Loading @@ -104,7 +104,11 @@ def validate_ietf_slice_data(request_data: Dict) -> None: class IETFSliceHandler: @staticmethod def get_all_ietf_slices(context_client: ContextClient) -> Dict: slices_list = context_client.ListSlices(Empty()) existing_context_ids = context_client.ListContextIds(Empty()) context_ids = list(existing_context_ids.context_ids) if len(context_ids) != 1: raise Exception("Number of contexts should be 1") slices_list = context_client.ListSlices(context_ids[0]) slices = slices_list.slices ietf_slices = {"network-slice-services": {"slice-service": []}} for slice in slices: Loading
src/nbi/tests/data/camara-e2e-topology.json +3 −3 Original line number Diff line number Diff line Loading @@ -41,14 +41,14 @@ "action": 1, "custom": { "resource_key": "_connect/address", "resource_value": "10.1.7.194" "resource_value": "10.1.6.201" } }, { "action": 1, "custom": { "resource_key": "_connect/port", "resource_value": "80" "resource_value": "9091" } }, { Loading
src/nbi/tests/data/slice/post_network_slice2.json +3 −3 Original line number Diff line number Diff line Loading @@ -156,8 +156,8 @@ }, { "id": 2, "p2mp-sender-sdp": "2", "p2mp-receiver-sdp": "1", "p2p-sender-sdp": "2", "p2p-receiver-sdp": "1", "service-slo-sle-policy": { "slo-policy": { "metric-bound": [ Loading