Create an L3VPN service with the specified properties. Custom attributes are used to configure properties that are supported by the service but cannot be specified directly through NSP. The UUID returned as part of the response can be used in subsequent operations on the service.
Request:
{ "data": { "tenantId": "0", "adminState": "UP", "objective": "HOPS", "autobind": "rsvp_te", "bidirectional": "ANY_REVERSE_ROUTE", "name": "L3 VPN Service", "action": "TRAVERSE", "appId": "101", "encryption": false, "mtu": 1500, "topology": null, "endpoints": [ { "appId": "221", "adminState": "UP", "customAttributes": [ { "attributeName": "description", "attributeValue": "NSPPORTDESC" }, { "attributeName": "physicalAddress", "attributeValue": "2A-96-01-01-00-0A" } ], "siteServiceQosProfile": { "egressOverrideQueues": null, "ingressOverrideQueues": null, "egressParam": null, "ingressParam": null, "qosProfile": 0 }, "routingStatic": { "routes": [ { "targetIpAddress": { "ipv4Address": { "string": "200.1.1.11" } }, "preference": null, "routeType": "next_hop", "destination": { "ipv4Prefix": { "string": "201.1.1.0/24" } } } ] }, "innerTag": "-1", "name": "Port1_Name", "outerTag": "72", "secondaryAddresses": [ { "ipv4Prefix": { "string": "21.1.1.1/24" } } ], "isHub": "false", "routingBgp": { "routes": [ { "peerIpAddress": { "ipv4Address": { "string": "200.1.1.15" } }, "peerAS": 7000 } ] }, "routingOspf": null, "primaryAddress": { "ipv4Prefix": { "string": "200.1.1.10/24" } }, "id": "1746-bbaad24f-cd39-4b3a-97aa-83a180dc058a" }, { "appId": "201", "adminState": "UP", "customAttributes": [ { "attributeName": "description", "attributeValue": "NSPPORTDESC" }, { "attributeName": "physicalAddress", "attributeValue": "2A-96-01-01-00-0A" } ], "siteServiceQosProfile": { "egressOverrideQueues": null, "ingressOverrideQueues": null, "egressParam": null, "ingressParam": null, "qosProfile": 0 }, "routingStatic": { "routes": [ { "targetIpAddress": { "ipv4Address": { "string": "10.1.1.11" } }, "preference": null, "routeType": "next_hop", "destination": { "ipv4Prefix": { "string": "101.1.1.0/24" } } } ] }, "innerTag": "-1", "name": "Port1_Name", "outerTag": "71", "secondaryAddresses": [ { "ipv4Prefix": { "string": "3.2.1.1/24" } } ], "isHub": "false", "routingBgp": { "routes": [ { "peerIpAddress": { "ipv4Address": { "string": "10.1.1.15" } }, "peerAS": 6000 } ] }, "routingOspf": null, "primaryAddress": { "ipv4Prefix": { "string": "10.1.1.1/24" } }, "id": "2581-7207a0a5-5757-468c-aada-93ece3b6026a" }, { "appId": "202", "adminState": "UP", "customAttributes": [ { "attributeName": "description", "attributeValue": "NSPPORTDESC" }, { "attributeName": "physicalAddress", "attributeValue": "2A-96-01-01-00-0A" } ], "siteServiceQosProfile": { "egressOverrideQueues": null, "ingressOverrideQueues": null, "egressParam": null, "ingressParam": null, "qosProfile": 0 }, "routingStatic": { "routes": [ { "targetIpAddress": { "ipv4Address": { "string": "15.1.1.1" } }, "preference": null, "routeType": "next_hop", "destination": { "ipv4Prefix": { "string": "15.1.1.0/24" } } } ] }, "innerTag": "-1", "name": "Port1_Name", "outerTag": "71", "isHub": "false", "routingBgp": { "routes": [ { "peerIpAddress": { "ipv4Address": { "string": "15.1.1.15" } }, "peerAS": 6000 } ] }, "routingOspf": null, "primaryAddress": { "ipv4Prefix": { "string": "15.1.1.11/24" } }, "secondaryAddresses": [ { "ipv4Prefix": { "string": "30.1.1.12/24" } } ], "id": "3280-1c71d594-0639-476e-ac26-f6ce29900acf" } ], "customAttributes": [ { "attributeName": "description", "attributeValue": "NSPSRVDESC" } ] } }
Response:
{ "status": 0, "startRow": 0, "endRow": 1, "totalRows": 1, "data": { "id": "3688-0d3f02f7-f617-4a57-8fda-20876a674160", "appId": "101", "operationalState": null, "adminState": "UP", "neDeploymentState": null, "externalIds": null, "name": "L3 VPN Service", "serviceType": "L3_VPN", "connectionState": "DISCONNECTED", "tenants": [ { "id": "0", "tenantName": "admin", "contactName": null, "phoneNumber": null, "address": null } ], "topology": "UNKNOWN_TOPOLOGY", "objective": "HOPS", "bidirectional": "ANY_REVERSE_ROUTE", "bw": null, "reverseBW": null, "maxLatency": 0, "maxCost": 0, "maxHops": 0, "lifeCycle": { "phase": "Planning", "state": "Planned", "reason": "" }, "templateId": null, "tunnelSelectionId": null, "pathProfileId": null, "groupId": null, "endpoints": null, "mtu": 0, "vcType": null, "autoBindType": null, "encryption": false, "loopbackEndpoints": null, "@class": "com.alu.wsc.api.generated.v3.L3Service" } }