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

ietf slice data test changed to match the ofc25 demo

parent 7f00bc97
Loading
Loading
Loading
Loading
+16 −20
Original line number Diff line number Diff line
@@ -58,16 +58,16 @@
                                        "id": "AC POP to VM1",
                                        "description": "AC VM1 connected to POP",
                                        "ac-node-id": "172.16.204.220",
                                        "ac-tp-id": "500"
                                        "ac-tp-id": "200"
                                    }
                                ]
                            }
                        },
                        {
                            "id": "2",
                            "node-id": "172.16.104.221",
                            "node-id": "172.16.61.10",
                            "sdp-ip-address": [
                                "172.16.104.221"
                                "172.16.61.10"
                            ],
                            "service-match-criteria": {
                                "match-criterion": [
@@ -77,29 +77,29 @@
                                            {
                                                "type": "ietf-network-slice-service:vlan",
                                                "value": [
                                                    "101"
                                                    "21"
                                                ]
                                            },
                                            {
                                                "type": "ietf-network-slice-service:destination-ip-prefix",
                                                "type": "ietf-network-slice-service:source-ip-prefix",
                                                "value": [
                                                    "172.16.104.221/24"
                                                ]
                                            },
                                            {
                                                "type": "ietf-network-slice-service:destination-tcp-port",
                                                "type": "ietf-network-slice-service:source-tcp-port",
                                                "value": [
                                                    "10500"
                                                ]
                                            },
                                            {
                                                "type": "ietf-network-slice-service:source-ip-prefix",
                                                "type": "ietf-network-slice-service:destination-ip-prefix",
                                                "value": [
                                                    "172.1.101.22/24"
                                                ]
                                            },
                                            {
                                                "type": "ietf-network-slice-service:source-tcp-port",
                                                "type": "ietf-network-slice-service:destination-tcp-port",
                                                "value": [
                                                    "10200"
                                                ]
@@ -112,10 +112,10 @@
                            "attachment-circuits": {
                                "attachment-circuit": [
                                    {
                                        "id": "AC POP to VM1",
                                        "description": "AC VM1 connected to POP",
                                        "ac-node-id": "172.16.104.221",
                                        "ac-tp-id": "eth0"
                                        "id": "AC ONT",
                                        "description": "AC connected to PC1",
                                        "ac-node-id": "172.16.61.10",
                                        "ac-tp-id": "200"
                                    }
                                ]
                            }
@@ -130,10 +130,8 @@
                            "connectivity-construct": [
                                {
                                    "id": 1,
                                    "p2mp-sender-sdp": "1",
                                    "p2mp-receiver-sdp": [
                                        "2"
                                    ],
                                    "p2p-sender-sdp": "1",
                                    "p2p-receiver-sdp": "2",
                                    "service-slo-sle-policy": {
                                        "slo-policy": {
                                            "metric-bound": [
@@ -158,10 +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": [
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ def test_create_slice():
    ietf_data = json.loads(slice_1.slice_config.config_rules[0].custom.resource_value)
    assert ietf_data == post_slice_request
    assert slice_1.slice_endpoint_ids[0].device_id.device_uuid.uuid == "172.16.204.220"
    assert slice_1.slice_endpoint_ids[1].device_id.device_uuid.uuid == "172.16.104.221"
    assert slice_1.slice_endpoint_ids[1].device_id.device_uuid.uuid == "172.16.61.10"
    assert slice_1.slice_id.slice_uuid.uuid == "slice1"