Resolve: "(CTTC) CAMARA Demo Integration tests"

Closes #250 (closed)

Merge request reports

Loading
+858 −0
Changes for src/tests/ofc25-camara-agg-net-controller/data/agg-net-descriptor.json: 858 added lines, 0 removed lines.
Original line number Diff line number Diff line
{
    "contexts": [
        {
            "context_id": {
                "context_uuid": {
                    "uuid": "admin"
                }
            }
        }
    ],
    "topologies": [
        {
            "topology_id": {
                "context_id": {
                    "context_uuid": {
                        "uuid": "admin"
                    }
                },
                "topology_uuid": {
                    "uuid": "admin"
                }
            }
        }
    ],
    "devices": [
        {
            "device_id": {
                "device_uuid": {
                    "uuid": "ip-net-controller"
                }
            },
            "name": "ip-net-controller",
            "device_type": "ip-sdn-controller",
            "device_operational_status": 1,
            "device_drivers": [
                13
            ],
            "device_config": {
                "config_rules": [
                    {
                        "action": 1,
                        "custom": {
                            "resource_key": "_connect/address",
                            "resource_value": "IP_NET_IP"
                        }
                    },
                    {
                        "action": 1,
                        "custom": {
                            "resource_key": "_connect/port",
                            "resource_value": "IP_NET_PORT"
                        }
                    },
                    {
                        "action": 1,
                        "custom": {
                            "resource_key": "_connect/settings",
                            "resource_value": {
                                "endpoints": [
                                    {
                                        "uuid": "mgmt",
                                        "name": "mgmt",
                                        "type": "mgmt"
                                    }
                                ],
                                "scheme": "http",
                                "username": "admin",
                                "password": "admin",
                                "base_url": "/restconf/v2/data",
                                "timeout": 120,
                                "verify": false
                            }
                        }
                    }
                ]
            },
            "device_endpoints": []
        },
        {
            "device_id": {
                "device_uuid": {
                    "uuid": "172.16.182.25"
                }
            },
            "name": "172.16.182.25",
            "device_type": "emu-packet-router",
            "controller_id": {
                "device_uuid": {
                    "uuid": "ip-net-controller"
                }
            },
            "device_operational_status": 1,
            "device_drivers": [
                13
            ],
            "device_config": {
                "config_rules": [
                    {
                        "action": 1,
                        "custom": {
                            "resource_key": "_connect/address",
                            "resource_value": "127.0.0.1"
                        }
                    },
                    {
                        "action": 1,
                        "custom": {
                            "resource_key": "_connect/port",
                            "resource_value": "0"
                        }
                    },
                    {
                        "action": 1,
                        "custom": {
                            "resource_key": "_connect/settings",
                            "resource_value": {
                                "endpoints": [
                                    {
                                        "uuid": "mgmt",
                                        "name": "mgmt",
                                        "type": "mgmt"
                                    },
                                    {
                                        "uuid": "200",
                                        "name": "200",
                                        "type": "optical",
                                        "address_ip": "128.32.33.254",
                                        "address_prefix": "24",
                                        "site_location": "access"
                                    },
                                    {
                                        "uuid": "500",
                                        "name": "500",
                                        "type": "optical"
                                    },
                                    {
                                        "uuid": "501",
                                        "name": "501",
                                        "type": "optical"
                                    }
                                ]
                            }
                        }
                    }
                ]
            }
        },
        {
            "device_id": {
                "device_uuid": {
                    "uuid": "172.16.185.31"
                }
            },
            "name": "172.16.185.31",
            "device_type": "emu-packet-router",
            "controller_id": {
                "device_uuid": {
                    "uuid": "ip-net-controller"
                }
            },
            "device_operational_status": 1,
            "device_drivers": [
                13
            ],
            "device_config": {
                "config_rules": [
                    {
                        "action": 1,
                        "custom": {
                            "resource_key": "_connect/address",
                            "resource_value": "127.0.0.1"
                        }
                    },
                    {
                        "action": 1,
                        "custom": {
                            "resource_key": "_connect/port",
                            "resource_value": "0"
                        }
                    },
                    {
                        "action": 1,
                        "custom": {
                            "resource_key": "_connect/settings",
                            "resource_value": {
                                "endpoints": [
                                    {
                                        "uuid": "mgmt",
                                        "name": "mgmt",
                                        "type": "mgmt"
                                    },
                                    {
                                        "uuid": "500",
                                        "name": "500",
                                        "type": "optical"
                                    },
                                    {
                                        "uuid": "501",
                                        "name": "501",
                                        "type": "optical"
                                    }
                                ]
                            }
                        }
                    }
                ]
            }
        },
        {
            "device_id": {
                "device_uuid": {
                    "uuid": "172.16.185.33"
                }
            },
            "name": "172.16.185.33",
            "device_type": "emu-packet-router",
            "controller_id": {
                "device_uuid": {
                    "uuid": "ip-net-controller"
                }
            },
            "device_operational_status": 1,
            "device_drivers": [
                13
            ],
            "device_config": {
                "config_rules": [
                    {
                        "action": 1,
                        "custom": {
                            "resource_key": "_connect/address",
                            "resource_value": "127.0.0.1"
                        }
                    },
                    {
                        "action": 1,
                        "custom": {
                            "resource_key": "_connect/port",
                            "resource_value": "0"
                        }
                    },
                    {
                        "action": 1,
                        "custom": {
                            "resource_key": "_connect/settings",
                            "resource_value": {
                                "endpoints": [
                                    {
                                        "uuid": "mgmt",
                                        "name": "mgmt",
                                        "type": "mgmt"
                                    },
                                    {
                                        "uuid": "500",
                                        "name": "500",
                                        "type": "optical"
                                    },
                                    {
                                        "uuid": "501",
                                        "name": "501",
                                        "type": "optical"
                                    }
                                ]
                            }
                        }
                    }
                ]
            }
        },
        {
            "device_id": {
                "device_uuid": {
                    "uuid": "172.16.185.32"
                }
            },
            "name": "172.16.185.32",
            "device_type": "emu-packet-router",
            "controller_id": {
                "device_uuid": {
                    "uuid": "ip-net-controller"
                }
            },
            "device_operational_status": 1,
            "device_drivers": [
                13
            ],
            "device_config": {
                "config_rules": [
                    {
                        "action": 1,
                        "custom": {
                            "resource_key": "_connect/address",
                            "resource_value": "127.0.0.1"
                        }
                    },
                    {
                        "action": 1,
                        "custom": {
                            "resource_key": "_connect/port",
                            "resource_value": "0"
                        }
                    },
                    {
                        "action": 1,
                        "custom": {
                            "resource_key": "_connect/settings",
                            "resource_value": {
                                "endpoints": [
                                    {
                                        "uuid": "mgmt",
                                        "name": "mgmt",
                                        "type": "mgmt"
                                    },
                                    {
                                        "uuid": "200",
                                        "name": "200",
                                        "type": "optical",
                                        "address_ip": "172.10.33.254",
                                        "address_prefix": "24",
                                        "site_location": "cloud"
                                    },
                                    {
                                        "uuid": "500",
                                        "name": "500",
                                        "type": "optical"
                                    },
                                    {
                                        "uuid": "501",
                                        "name": "501",
                                        "type": "optical"
                                    }
                                ]
                            }
                        }
                    }
                ]
            }
        },
        {
            "device_id": {
                "device_uuid": {
                    "uuid": "172.16.204.220"
                }
            },
            "device_type": "emu-datacenter",
            "device_drivers": [
                0
            ],
            "device_endpoints": [],
            "device_operational_status": 1,
            "device_config": {
                "config_rules": [
                    {
                        "action": 1,
                        "custom": {
                            "resource_key": "_connect/address",
                            "resource_value": "127.0.0.1"
                        }
                    },
                    {
                        "action": 1,
                        "custom": {
                            "resource_key": "_connect/port",
                            "resource_value": "0"
                        }
                    },
                    {
                        "action": 1,
                        "custom": {
                            "resource_key": "_connect/settings",
                            "resource_value": {
                                "endpoints": [
                                    {
                                        "sample_types": [],
                                        "type": "optical",
                                        "uuid": "500"
                                    },
                                    {
                                        "sample_types": [],
                                        "type": "optical",
                                        "uuid": "200"
                                    },
                                    {
                                        "sample_types": [],
                                        "type": "optical",
                                        "uuid": "201"
                                    }
                                ]
                            }
                        }
                    }
                ]
            }
        }
    ],
    "links": [
        {
            "link_id": {
                "link_uuid": {
                    "uuid": "ip-net-controller/mgmt==172.16.182.25/mgmt"
                }
            },
            "name": "ip-net-controller/mgmt==172.16.182.25/mgmt",
            "link_endpoint_ids": [
                {
                    "device_id": {
                        "device_uuid": {
                            "uuid": "ip-net-controller"
                        }
                    },
                    "endpoint_uuid": {
                        "uuid": "mgmt"
                    }
                },
                {
                    "device_id": {
                        "device_uuid": {
                            "uuid": "172.16.182.25"
                        }
                    },
                    "endpoint_uuid": {
                        "uuid": "mgmt"
                    }
                }
            ]
        },
        {
            "link_id": {
                "link_uuid": {
                    "uuid": "ip-net-controller/mgmt==172.16.185.31/mgmt"
                }
            },
            "name": "ip-net-controller/mgmt==172.16.185.31/mgmt",
            "link_endpoint_ids": [
                {
                    "device_id": {
                        "device_uuid": {
                            "uuid": "ip-net-controller"
                        }
                    },
                    "endpoint_uuid": {
                        "uuid": "mgmt"
                    }
                },
                {
                    "device_id": {
                        "device_uuid": {
                            "uuid": "172.16.185.31"
                        }
                    },
                    "endpoint_uuid": {
                        "uuid": "mgmt"
                    }
                }
            ]
        },
        {
            "link_id": {
                "link_uuid": {
                    "uuid": "ip-net-controller/mgmt==172.16.185.33/mgmt"
                }
            },
            "name": "ip-net-controller/mgmt==172.16.185.33/mgmt",
            "link_endpoint_ids": [
                {
                    "device_id": {
                        "device_uuid": {
                            "uuid": "ip-net-controller"
                        }
                    },
                    "endpoint_uuid": {
                        "uuid": "mgmt"
                    }
                },
                {
                    "device_id": {
                        "device_uuid": {
                            "uuid": "172.16.185.33"
                        }
                    },
                    "endpoint_uuid": {
                        "uuid": "mgmt"
                    }
                }
            ]
        },
        {
            "link_id": {
                "link_uuid": {
                    "uuid": "ip-net-controller/mgmt==172.16.185.32/mgmt"
                }
            },
            "name": "ip-net-controller/mgmt==172.16.185.32/mgmt",
            "link_endpoint_ids": [
                {
                    "device_id": {
                        "device_uuid": {
                            "uuid": "ip-net-controller"
                        }
                    },
                    "endpoint_uuid": {
                        "uuid": "mgmt"
                    }
                },
                {
                    "device_id": {
                        "device_uuid": {
                            "uuid": "172.16.185.32"
                        }
                    },
                    "endpoint_uuid": {
                        "uuid": "mgmt"
                    }
                }
            ]
        },
        {
            "link_id": {
                "link_uuid": {
                    "uuid": "172.16.182.25-500"
                }
            },
            "name": "172.16.182.25-500",
            "attributes": {
                "total_capacity_gbps": 10,
                "used_capacity_gbps": 0
            },
            "link_endpoint_ids": [
                {
                    "device_id": {
                        "device_uuid": {
                            "uuid": "172.16.182.25"
                        }
                    },
                    "endpoint_uuid": {
                        "uuid": "500"
                    }
                },
                {
                    "device_id": {
                        "device_uuid": {
                            "uuid": "172.16.185.33"
                        }
                    },
                    "endpoint_uuid": {
                        "uuid": "500"
                    }
                }
            ]
        },
        {
            "link_id": {
                "link_uuid": {
                    "uuid": "172.16.185.33-500"
                }
            },
            "name": "172.16.185.33-500",
            "attributes": {
                "total_capacity_gbps": 10,
                "used_capacity_gbps": 0
            },
            "link_endpoint_ids": [
                {
                    "device_id": {
                        "device_uuid": {
                            "uuid": "172.16.185.33"
                        }
                    },
                    "endpoint_uuid": {
                        "uuid": "500"
                    }
                },
                {
                    "device_id": {
                        "device_uuid": {
                            "uuid": "172.16.182.25"
                        }
                    },
                    "endpoint_uuid": {
                        "uuid": "500"
                    }
                }
            ]
        },
        {
            "link_id": {
                "link_uuid": {
                    "uuid": "172.16.182.25-501"
                }
            },
            "name": "172.16.182.25-501",
            "attributes": {
                "total_capacity_gbps": 10,
                "used_capacity_gbps": 0
            },
            "link_endpoint_ids": [
                {
                    "device_id": {
                        "device_uuid": {
                            "uuid": "172.16.182.25"
                        }
                    },
                    "endpoint_uuid": {
                        "uuid": "501"
                    }
                },
                {
                    "device_id": {
                        "device_uuid": {
                            "uuid": "172.16.185.31"
                        }
                    },
                    "endpoint_uuid": {
                        "uuid": "501"
                    }
                }
            ]
        },
        {
            "link_id": {
                "link_uuid": {
                    "uuid": "172.16.185.31-501"
                }
            },
            "name": "172.16.185.31-501",
            "attributes": {
                "total_capacity_gbps": 10,
                "used_capacity_gbps": 0
            },
            "link_endpoint_ids": [
                {
                    "device_id": {
                        "device_uuid": {
                            "uuid": "172.16.185.31"
                        }
                    },
                    "endpoint_uuid": {
                        "uuid": "501"
                    }
                },
                {
                    "device_id": {
                        "device_uuid": {
                            "uuid": "172.16.182.25"
                        }
                    },
                    "endpoint_uuid": {
                        "uuid": "501"
                    }
                }
            ]
        },
        {
            "link_id": {
                "link_uuid": {
                    "uuid": "172.16.185.31-500"
                }
            },
            "name": "172.16.185.31-500",
            "attributes": {
                "total_capacity_gbps": 10,
                "used_capacity_gbps": 0
            },
            "link_endpoint_ids": [
                {
                    "device_id": {
                        "device_uuid": {
                            "uuid": "172.16.185.31"
                        }
                    },
                    "endpoint_uuid": {
                        "uuid": "500"
                    }
                },
                {
                    "device_id": {
                        "device_uuid": {
                            "uuid": "172.16.185.32"
                        }
                    },
                    "endpoint_uuid": {
                        "uuid": "500"
                    }
                }
            ]
        },
        {
            "link_id": {
                "link_uuid": {
                    "uuid": "172.16.185.32-500"
                }
            },
            "name": "172.16.185.32-500",
            "attributes": {
                "total_capacity_gbps": 10,
                "used_capacity_gbps": 0
            },
            "link_endpoint_ids": [
                {
                    "device_id": {
                        "device_uuid": {
                            "uuid": "172.16.185.32"
                        }
                    },
                    "endpoint_uuid": {
                        "uuid": "500"
                    }
                },
                {
                    "device_id": {
                        "device_uuid": {
                            "uuid": "172.16.185.31"
                        }
                    },
                    "endpoint_uuid": {
                        "uuid": "500"
                    }
                }
            ]
        },
        {
            "link_id": {
                "link_uuid": {
                    "uuid": "172.16.185.33-501"
                }
            },
            "name": "172.16.185.33-501",
            "attributes": {
                "total_capacity_gbps": 10,
                "used_capacity_gbps": 0
            },
            "link_endpoint_ids": [
                {
                    "device_id": {
                        "device_uuid": {
                            "uuid": "172.16.185.33"
                        }
                    },
                    "endpoint_uuid": {
                        "uuid": "501"
                    }
                },
                {
                    "device_id": {
                        "device_uuid": {
                            "uuid": "172.16.185.32"
                        }
                    },
                    "endpoint_uuid": {
                        "uuid": "501"
                    }
                }
            ]
        },
        {
            "link_id": {
                "link_uuid": {
                    "uuid": "172.16.185.32-501"
                }
            },
            "name": "172.16.185.32-501",
            "attributes": {
                "total_capacity_gbps": 10,
                "used_capacity_gbps": 0
            },
            "link_endpoint_ids": [
                {
                    "device_id": {
                        "device_uuid": {
                            "uuid": "172.16.185.32"
                        }
                    },
                    "endpoint_uuid": {
                        "uuid": "501"
                    }
                },
                {
                    "device_id": {
                        "device_uuid": {
                            "uuid": "172.16.185.33"
                        }
                    },
                    "endpoint_uuid": {
                        "uuid": "501"
                    }
                }
            ]
        },
        {
            "link_id": {
                "link_uuid": {
                    "uuid": "172.16.185.32-200"
                }
            },
            "name": "172.16.185.32-200",
            "attributes": {
                "total_capacity_gbps": 10,
                "used_capacity_gbps": 0
            },
            "link_endpoint_ids": [
                {
                    "device_id": {
                        "device_uuid": {
                            "uuid": "172.16.185.32"
                        }
                    },
                    "endpoint_uuid": {
                        "uuid": "200"
                    }
                },
                {
                    "device_id": {
                        "device_uuid": {
                            "uuid": "172.16.204.220"
                        }
                    },
                    "endpoint_uuid": {
                        "uuid": "500"
                    }
                }
            ]
        },
        {
            "link_id": {
                "link_uuid": {
                    "uuid": "172.16.204.220-500"
                }
            },
            "name": "172.16.204.220-500",
            "attributes": {
                "total_capacity_gbps": 10,
                "used_capacity_gbps": 0
            },
            "link_endpoint_ids": [
                {
                    "device_id": {
                        "device_uuid": {
                            "uuid": "172.16.204.220"
                        }
                    },
                    "endpoint_uuid": {
                        "uuid": "500"
                    }
                },
                {
                    "device_id": {
                        "device_uuid": {
                            "uuid": "172.16.185.32"
                        }
                    },
                    "endpoint_uuid": {
                        "uuid": "200"
                    }
                }
            ]
        }
    ]
}
+190 −0
Changes for src/tests/ofc25-camara-agg-net-controller/data/pc1_slice1_post_ietf_network_slice.json: 190 added lines, 0 removed lines.
Original line number Diff line number Diff line
{
  "network-slice-services": {
    "slice-service": [
      {
        "connection-groups": {
          "connection-group": [
            {
              "connectivity-construct": [
                {
                  "id": 1,
                  "p2p-receiver-sdp": "2",
                  "p2p-sender-sdp": "1",
                  "service-slo-sle-policy": {
                    "slo-policy": {
                      "metric-bound": [
                        {
                          "bound": 10,
                          "metric-type": "ietf-network-slice-service:one-way-delay-maximum",
                          "metric-unit": "milliseconds"
                        },
                        {
                          "bound": 5000,
                          "metric-type": "ietf-network-slice-service:one-way-bandwidth",
                          "metric-unit": "Mbps"
                        },
                        {
                          "metric-type": "ietf-network-slice-service:two-way-packet-loss",
                          "metric-unit": "percentage",
                          "percentile-value": 0.001
                        }
                      ]
                    }
                  }
                },
                {
                  "id": 2,
                  "p2p-receiver-sdp": "1",
                  "p2p-sender-sdp": "2",
                  "service-slo-sle-policy": {
                    "slo-policy": {
                      "metric-bound": [
                        {
                          "bound": 20,
                          "metric-type": "ietf-network-slice-service:one-way-delay-maximum",
                          "metric-unit": "milliseconds"
                        },
                        {
                          "bound": 1000,
                          "metric-type": "ietf-network-slice-service:one-way-bandwidth",
                          "metric-unit": "Mbps"
                        },
                        {
                          "metric-type": "ietf-network-slice-service:two-way-packet-loss",
                          "metric-unit": "percentage",
                          "percentile-value": 0.001
                        }
                      ]
                    }
                  }
                }
              ],
              "connectivity-type": "point-to-point",
              "id": "line1"
            }
          ]
        },
        "description": "dsc",
        "id": "slice1",
        "sdps": {
          "sdp": [
            {
              "attachment-circuits": {
                "attachment-circuit": [
                  {
                    "ac-node-id": "172.16.185.32",
                    "ac-tp-id": "200",
                    "description": "dsc",
                    "id": "0"
                  }
                ]
              },
              "id": "1",
              "node-id": "172.16.185.32",
              "sdp-ip-address": [
                "172.16.185.32"
              ],
              "service-match-criteria": {
                "match-criterion": [
                  {
                    "index": 1,
                    "match-type": [
                      {
                        "type": "ietf-network-slice-service:vlan",
                        "value": [
                          "101"
                        ]
                      },
                      {
                        "type": "ietf-network-slice-service:source-ip-prefix",
                        "value": [
                          "172.1.101.22/24"
                        ]
                      },
                      {
                        "type": "ietf-network-slice-service:source-tcp-port",
                        "value": [
                          "10200"
                        ]
                      },
                      {
                        "type": "ietf-network-slice-service:destination-ip-prefix",
                        "value": [
                          "172.16.104.221/24"
                        ]
                      },
                      {
                        "type": "ietf-network-slice-service:destination-tcp-port",
                        "value": [
                          "10500"
                        ]
                      }
                    ],
                    "target-connection-group-id": "line1"
                  }
                ]
              }
            },
            {
              "attachment-circuits": {
                "attachment-circuit": [
                  {
                    "ac-node-id": "172.16.182.25",
                    "ac-tp-id": "200",
                    "description": "dsc",
                    "id": "0"
                  }
                ]
              },
              "id": "2",
              "node-id": "172.16.182.25",
              "sdp-ip-address": [
                "172.16.182.25"
              ],
              "service-match-criteria": {
                "match-criterion": [
                  {
                    "index": 1,
                    "match-type": [
                      {
                        "type": "ietf-network-slice-service:vlan",
                        "value": [
                          "21"
                        ]
                      },
                      {
                        "type": "ietf-network-slice-service:source-ip-prefix",
                        "value": [
                          "172.16.104.221/24"
                        ]
                      },
                      {
                        "type": "ietf-network-slice-service:source-tcp-port",
                        "value": [
                          "10500"
                        ]
                      },
                      {
                        "type": "ietf-network-slice-service:destination-ip-prefix",
                        "value": [
                          "172.1.101.22/24"
                        ]
                      },
                      {
                        "type": "ietf-network-slice-service:destination-tcp-port",
                        "value": [
                          "10200"
                        ]
                      }
                    ],
                    "target-connection-group-id": "line1"
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  }
}
+58 −0
Changes for src/tests/ofc25-camara-agg-net-controller/data/pc1_slice1_put_ietf_network_slice.json: 58 added lines, 0 removed lines.
Original line number Diff line number Diff line
{
      "connectivity-construct": [
        {
          "id": 1,
          "p2p-receiver-sdp": "2",
          "p2p-sender-sdp": "1",
          "service-slo-sle-policy": {
            "slo-policy": {
              "metric-bound": [
                {
                  "bound": 10,
                  "metric-type": "ietf-network-slice-service:one-way-delay-maximum",
                  "metric-unit": "milliseconds"
                },
                {
                  "bound": 5000,
                  "metric-type": "ietf-network-slice-service:one-way-bandwidth",
                  "metric-unit": "Mbps"
                },
                {
                  "metric-type": "ietf-network-slice-service:two-way-packet-loss",
                  "metric-unit": "percentage",
                  "percentile-value": 0.001
                }
              ]
            }
          }
        },
        {
          "id": 2,
          "p2p-receiver-sdp": "1",
          "p2p-sender-sdp": "2",
          "service-slo-sle-policy": {
            "slo-policy": {
              "metric-bound": [
                {
                  "bound": 20,
                  "metric-type": "ietf-network-slice-service:one-way-delay-maximum",
                  "metric-unit": "milliseconds"
                },
                {
                  "bound": 1000,
                  "metric-type": "ietf-network-slice-service:one-way-bandwidth",
                  "metric-unit": "Mbps"
                },
                {
                  "metric-type": "ietf-network-slice-service:two-way-packet-loss",
                  "metric-unit": "percentage",
                  "percentile-value": 0.001
                }
              ]
            }
          }
        }
      ],
      "connectivity-type": "point-to-point",
      "id": "line1"
    }
+190 −0
Changes for src/tests/ofc25-camara-agg-net-controller/data/pc1_slice2_post_ietf_network_slice.json: 190 added lines, 0 removed lines.
Original line number Diff line number Diff line
{
  "network-slice-services": {
    "slice-service": [
      {
        "connection-groups": {
          "connection-group": [
            {
              "connectivity-construct": [
                {
                  "id": 1,
                  "p2p-receiver-sdp": "2",
                  "p2p-sender-sdp": "1",
                  "service-slo-sle-policy": {
                    "slo-policy": {
                      "metric-bound": [
                        {
                          "bound": 10,
                          "metric-type": "ietf-network-slice-service:one-way-delay-maximum",
                          "metric-unit": "milliseconds"
                        },
                        {
                          "bound": 5000,
                          "metric-type": "ietf-network-slice-service:one-way-bandwidth",
                          "metric-unit": "Mbps"
                        },
                        {
                          "metric-type": "ietf-network-slice-service:two-way-packet-loss",
                          "metric-unit": "percentage",
                          "percentile-value": 0.001
                        }
                      ]
                    }
                  }
                },
                {
                  "id": 2,
                  "p2p-receiver-sdp": "1",
                  "p2p-sender-sdp": "2",
                  "service-slo-sle-policy": {
                    "slo-policy": {
                      "metric-bound": [
                        {
                          "bound": 20,
                          "metric-type": "ietf-network-slice-service:one-way-delay-maximum",
                          "metric-unit": "milliseconds"
                        },
                        {
                          "bound": 1000,
                          "metric-type": "ietf-network-slice-service:one-way-bandwidth",
                          "metric-unit": "Mbps"
                        },
                        {
                          "metric-type": "ietf-network-slice-service:two-way-packet-loss",
                          "metric-unit": "percentage",
                          "percentile-value": 0.001
                        }
                      ]
                    }
                  }
                }
              ],
              "connectivity-type": "point-to-point",
              "id": "line1"
            }
          ]
        },
        "description": "dsc",
        "id": "slice2",
        "sdps": {
          "sdp": [
            {
              "attachment-circuits": {
                "attachment-circuit": [
                  {
                    "ac-node-id": "172.16.185.32",
                    "ac-tp-id": "200",
                    "description": "dsc",
                    "id": "0"
                  }
                ]
              },
              "id": "1",
              "node-id": "172.16.185.32",
              "sdp-ip-address": [
                "172.16.185.32"
              ],
              "service-match-criteria": {
                "match-criterion": [
                  {
                    "index": 1,
                    "match-type": [
                      {
                        "type": "ietf-network-slice-service:vlan",
                        "value": [
                          "201"
                        ]
                      },
                      {
                        "type": "ietf-network-slice-service:source-ip-prefix",
                        "value": [
                          "172.1.201.22/24"
                        ]
                      },
                      {
                        "type": "ietf-network-slice-service:source-tcp-port",
                        "value": [
                          "10200"
                        ]
                      },
                      {
                        "type": "ietf-network-slice-service:destination-ip-prefix",
                        "value": [
                          "172.16.104.221/24"
                        ]
                      },
                      {
                        "type": "ietf-network-slice-service:destination-tcp-port",
                        "value": [
                          "10500"
                        ]
                      }
                    ],
                    "target-connection-group-id": "line1"
                  }
                ]
              }
            },
            {
              "attachment-circuits": {
                "attachment-circuit": [
                  {
                    "ac-node-id": "172.16.182.25",
                    "ac-tp-id": "200",
                    "description": "dsc",
                    "id": "0"
                  }
                ]
              },
              "id": "2",
              "node-id": "172.16.182.25",
              "sdp-ip-address": [
                "172.16.182.25"
              ],
              "service-match-criteria": {
                "match-criterion": [
                  {
                    "index": 1,
                    "match-type": [
                      {
                        "type": "ietf-network-slice-service:vlan",
                        "value": [
                          "31"
                        ]
                      },
                      {
                        "type": "ietf-network-slice-service:source-ip-prefix",
                        "value": [
                          "172.16.104.221/24"
                        ]
                      },
                      {
                        "type": "ietf-network-slice-service:source-tcp-port",
                        "value": [
                          "10500"
                        ]
                      },
                      {
                        "type": "ietf-network-slice-service:destination-ip-prefix",
                        "value": [
                          "172.1.201.22/24"
                        ]
                      },
                      {
                        "type": "ietf-network-slice-service:destination-tcp-port",
                        "value": [
                          "10200"
                        ]
                      }
                    ],
                    "target-connection-group-id": "line1"
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  }
}
+58 −0
Changes for src/tests/ofc25-camara-agg-net-controller/data/pc1_slice2_put_ietf_network_slice.json: 58 added lines, 0 removed lines.
Original line number Diff line number Diff line
{
  "connectivity-construct": [
    {
      "id": 1,
      "p2p-receiver-sdp": "2",
      "p2p-sender-sdp": "1",
      "service-slo-sle-policy": {
        "slo-policy": {
          "metric-bound": [
            {
              "bound": 10,
              "metric-type": "ietf-network-slice-service:one-way-delay-maximum",
              "metric-unit": "milliseconds"
            },
            {
              "bound": 5000,
              "metric-type": "ietf-network-slice-service:one-way-bandwidth",
              "metric-unit": "Mbps"
            },
            {
              "metric-type": "ietf-network-slice-service:two-way-packet-loss",
              "metric-unit": "percentage",
              "percentile-value": 0.001
            }
          ]
        }
      }
    },
    {
      "id": 2,
      "p2p-receiver-sdp": "1",
      "p2p-sender-sdp": "2",
      "service-slo-sle-policy": {
        "slo-policy": {
          "metric-bound": [
            {
              "bound": 20,
              "metric-type": "ietf-network-slice-service:one-way-delay-maximum",
              "metric-unit": "milliseconds"
            },
            {
              "bound": 1000,
              "metric-type": "ietf-network-slice-service:one-way-bandwidth",
              "metric-unit": "Mbps"
            },
            {
              "metric-type": "ietf-network-slice-service:two-way-packet-loss",
              "metric-unit": "percentage",
              "percentile-value": 0.001
            }
          ]
        }
      }
    }
  ],
  "connectivity-type": "point-to-point",
  "id": "line1"
}
Loading
Loading