Create L2VPN Session From Peer Code
Create or patch an L2VPN session from Peer Codes. In addition to the L2VPN Session, the IPSec VPN Session, along with the IKE, Tunnel, and DPD Profiles are created and owned by the system. IPSec VPN Service and Local Endpoint are created only when required, i.e., an IPSec VPN Service does not already exist, or an IPSec VPN Local Endpoint with same local address does not already exist. Updating the L2VPN Session can be performed only through this API by specifying new peer codes. Use of specific APIs to update the L2VPN Session and the different resources associated with it is not allowed, except for IPSec VPN Service and Local Endpoint, resources that are not system owned. API supported only when L2VPN Service is in Client Mode.
Request
URLURL
Request Body
L2VPN Session Data represents meta data necessary to create the L2VPN Session. It is represented by an array of peer code for each tunnel.
{
"description": "string",
"display_name": "string",
"enabled": false,
"transport_tunnels": [
{
"local_address": "string",
"peer_address": "string",
"peer_code": "string"
}
]
}
Description of L2VPN Session
Defaults to id if not set.
Enable to extend all the associated segments.
List of L2VPN transport tunnel data.