Create L3VPN Service with custom attributes

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.

POST https://<NSP Server>:8543/sdn/api/v4/services/l3-vpns

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": "2182-e4e12d40-47ac-4fee-9a9c-8836152b01b6"
      },
      {
        "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": "2685-a7665170-d578-4d92-9880-17d15c788ffa"
      },
      {
        "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": "3127-8ef7dc06-5064-4aaa-aafc-8d2a46bb7992"
      }
    ],
    "customAttributes": [
      {
        "attributeName": "description",
        "attributeValue": "NSPSRVDESC"
      }
    ]
  }
}

Response:

{
  "status": 0,
  "startRow": 0,
  "endRow": 1,
  "totalRows": 1,
  "data": {
    "id": "4354-8e80136a-e193-44e9-a1fc-311ff6869d6f",
    "appId": "101",
    "operationalState": null,
    "adminState": "UP",
    "neDeploymentState": null,
    "externalIds": null,
    "name": "L3 VPN Service",
    "serviceType": "L3_VPN",
    "tenantIds": [
      "0"
    ],
    "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,
    "topology": "UNKNOWN_TOPOLOGY",
    "encryption": false,
    "loopbackEndpoints": null,
    "@class": "com.alu.wsc.api.generated.v4.L3Service"
  }
}