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

debug:

- p2mp changed to p2p in post_network_slice2.json
- changes in ietf_slice_handler.py
parent fc4c353c
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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:
+3 −3
Original line number Diff line number Diff line
@@ -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"
                        }
                    },
                    {
+3 −3
Original line number Diff line number Diff line
@@ -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": [