Commit 334ac0d1 authored by Javier Velázquez's avatar Javier Velázquez
Browse files

Organize requests

parent 361ed827
Loading
Loading
Loading
Loading
+174 −0
Original line number Diff line number Diff line
[
  {
    "ietf-network-slice-service:network-slice-services": {
      "slo-sle-templates": {
        "slo-sle-template": [
          {
            "id": "A",
            "description": "",
            "slo-policy": {
              "metric-bound": [
                {
                  "metric-type": "one-way-bandwidth",
                  "metric-unit": "kbps",
                  "bound": 2000
                },
                {
                  "metric-type": "one-way-delay-maximum",
                  "metric-unit": "milliseconds",
                  "bound": 5
                }
              ]
            },
            "sle-policy": {
              "security": "",
              "isolation": "",
              "path-constraints": {
                "service-functions": "",
                "diversity": {
                  "diversity": {
                    "diversity-type": ""
                  }
                }
              }
            }
          }
        ]
      },
      "slice-service": [
        {
          "id": "slice-service-11327140-7361-41b3-aa45-e84a7fb40be9",
          "description": "Transport network slice mapped with 3GPP slice NetworkSlice1",
          "service-tags": {
            "tag-type": [
              {
                "tag-type": "service",
                "tag-type-value": [
                  "L2"
                ]
              }
            ]
          },
          "slo-sle-template": "A",
          "status": {},
          "sdps": {
            "sdp": [
              {
                "id": "CU-N2",
                "geo-location": "",
                "node-id": "CU-N2",
                "sdp-ip-address": "10.60.11.3",
                "tp-ref": "",
                "service-match-criteria": {
                  "match-criterion": [
                    {
                      "index": 1,
                      "match-type": [
                        {
                          "type": "vlan",
                          "vlan": [
                            100
                          ]
                        }
                      ],
                      "target-connection-group-id": "CU-N2_AMF-N2"
                    }
                  ]
                },
                "incoming-qos-policy": "",
                "outgoing-qos-policy": "",
                "sdp-peering": {
                  "peer-sap-id": "",
                  "protocols": ""
                },
                "ac-svc-ref": [],
                "attachment-circuits": {
                  "attachment-circuit": [
                    {
                      "id": "100",
                      "ac-ipv4-address": "10.60.11.3",
                      "ac-ipv4-prefix-length": 0,
                      "sdp-peering": {
                        "peer-sap-id": "1.1.1.1"
                      },
                      "status": {}
                    }
                  ]
                },
                "status": {},
                "sdp-monitoring": ""
              },
              {
                "id": "AMF-N2",
                "geo-location": "",
                "node-id": "AMF-N2",
                "sdp-ip-address": "10.60.60.105",
                "tp-ref": "",
                "service-match-criteria": {
                  "match-criterion": [
                    {
                      "index": 1,
                      "match-type": [
                        {
                          "type": "vlan",
                          "vlan": [
                            100
                          ]
                        }
                      ],
                      "target-connection-group-id": "CU-N2_AMF-N2"
                    }
                  ]
                },
                "incoming-qos-policy": "",
                "outgoing-qos-policy": "",
                "sdp-peering": {
                  "peer-sap-id": "",
                  "protocols": ""
                },
                "ac-svc-ref": [],
                "attachment-circuits": {
                  "attachment-circuit": [
                    {
                      "id": "200",
                      "ac-ipv4-address": "10.60.60.105",
                      "ac-ipv4-prefix-length": 0,
                      "sdp-peering": {
                        "peer-sap-id": "3.3.3.3"
                      },
                      "status": {}
                    }
                  ]
                },
                "status": {},
                "sdp-monitoring": ""
              }
            ]
          },
          "connection-groups": {
            "connection-group": [
              {
                "id": "CU-N2_AMF-N2",
                "connectivity-type": "ietf-vpn-common:any-to-any",
                "connectivity-construct": [
                  {
                    "id": 1,
                    "a2a-sdp": [
                      {
                        "sdp-id": "01"
                      },
                      {
                        "sdp-id": "02"
                      }
                    ]
                  }
                ],
                "status": {}
              }
            ]
          }
        }
      ]
    }
  }
]
 No newline at end of file
+28 −34
Original line number Diff line number Diff line
@@ -3,29 +3,19 @@
    "slo-sle-templates": {
      "slo-sle-template": [
        {
          "id": "B",
          "id": "A",
          "description": "",
          "slo-policy": {
            "metric-bound": [
              {
                "metric-type": "energy_consumption",
                "metric-unit": "kWh",
                "bound": 20200
              },
              {
                "metric-type": "energy_efficiency",
                "metric-unit": "Wats/bps",
                "bound": 6
              },
              {
                "metric-type": "carbon_emission",
                "metric-unit": "grams of CO2 per kWh",
                "bound": 750
                "metric-type": "one-way-bandwidth",
                "metric-unit": "kbps",
                "bound": 2000
              },
              {
                "metric-type": "renewable_energy_usage",
                "metric-unit": "rate",
                "bound": 0.5
                "metric-type": "one-way-delay-maximum",
                "metric-unit": "milliseconds",
                "bound": 5
              }
            ]
          },
@@ -46,7 +36,7 @@
    },
    "slice-service": [
      {
        "id": "slice-service-88a585f7-a432-4312-8774-6210fb0b2342",
        "id": "slice-service-11327140-7361-41b3-aa45-e84a7fb40be9",
        "description": "Transport network slice mapped with 3GPP slice NetworkSlice1",
        "service-tags": {
          "tag-type": [
@@ -58,14 +48,14 @@
            }
          ]
        },
        "slo-sle-template": "B",
        "slo-sle-template": "A",
        "status": {},
        "sdps": {
          "sdp": [
            {
              "id": "A",
              "id": "CU-N2",
              "geo-location": "",
              "node-id": "CU-N32",
              "node-id": "CU-N2",
              "sdp-ip-address": "10.60.11.3",
              "tp-ref": "",
              "service-match-criteria": {
@@ -75,10 +65,12 @@
                    "match-type": [
                      {
                        "type": "vlan",
                          "vlan": [101]
                        "vlan": [
                          100
                        ]
                      }
                    ],
                    "target-connection-group-id": "CU-N32_UPF-N32"
                    "target-connection-group-id": "CU-N2_AMF-N2"
                  }
                ]
              },
@@ -96,7 +88,7 @@
                    "ac-ipv4-address": "10.60.11.3",
                    "ac-ipv4-prefix-length": 0,
                    "sdp-peering": {
                      "peer-sap-id": "4.4.4.4"
                      "peer-sap-id": "1.1.1.1"
                    },
                    "status": {}
                  }
@@ -106,10 +98,10 @@
              "sdp-monitoring": ""
            },
            {
              "id": "B",
              "id": "AMF-N2",
              "geo-location": "",
              "node-id": "UPF-N32",
              "sdp-ip-address": "10.60.10.6",
              "node-id": "AMF-N2",
              "sdp-ip-address": "10.60.60.105",
              "tp-ref": "",
              "service-match-criteria": {
                "match-criterion": [
@@ -118,10 +110,12 @@
                    "match-type": [
                      {
                        "type": "vlan",
                          "vlan": [101]
                        "vlan": [
                          100
                        ]
                      }
                    ],
                    "target-connection-group-id": "CU-N32_UPF-N32"
                    "target-connection-group-id": "CU-N2_AMF-N2"
                  }
                ]
              },
@@ -136,10 +130,10 @@
                "attachment-circuit": [
                  {
                    "id": "200",
                    "ac-ipv4-address": "10.60.10.6",
                    "ac-ipv4-address": "10.60.60.105",
                    "ac-ipv4-prefix-length": 0,
                    "sdp-peering": {
                      "peer-sap-id": "5.5.5.5"
                      "peer-sap-id": "3.3.3.3"
                    },
                    "status": {}
                  }
@@ -153,17 +147,17 @@
        "connection-groups": {
          "connection-group": [
            {
              "id": "CU-N32_UPF-N32",
              "id": "CU-N2_AMF-N2",
              "connectivity-type": "ietf-vpn-common:any-to-any",
              "connectivity-construct": [
                {
                  "id": 1,
                  "a2a-sdp": [
                    {
                      "sdp-id": "A"
                      "sdp-id": "01"
                    },
                    {
                      "sdp-id": "B"
                      "sdp-id": "02"
                    }
                  ]
                }
+37 −0
Original line number Diff line number Diff line
{
  "services": [
    {
      "ietf-l2vpn-svc:vpn-service": [
        {
          "vpn-id": "11327140-7361-41b3-aa45-e84a7fb40be9",
          "customer-name": "osm",
          "vpn-svc-type": "vpws",
          "svc-topo": "any-to-any",
          "site": [
            {
              "site-id": "1.1.1.1",
              "site-location": "CU-N2",
              "site-network-access": {
                "interface": {
                  "ip-address": "10.60.11.3",
                  "encapsulation": "ethernet"
                }
              }
            },
            {
              "site-id": "3.3.3.3",
              "site-location": "AMF-N2",
              "site-network-access": {
                "interface": {
                  "ip-address": "10.60.60.105",
                  "encapsulation": "ethernet"
                }
              }
            }
          ]
        }
      ],
      "path": "restconf/data/ietf-l2vpn-svc:l2vpn-svc/vpn-services"
    }
  ]
}
 No newline at end of file
Loading