osc network vpn vpnservice create

Creates a VPN service.

The service is associated with a router. After you create the service, it can contain multiple VPN connections.

An optional flavor_id attribute can be passed to enable dynamic selection of an appropriate provider if configured by the operator. It is only available when vpn-flavors extension is enabled. The basic selection algorithm chooses the provider in the first service profile currently associated with flavor. This option can only be set in POST operation.

Normal response codes: 201

Error response codes: 400, 401

Usage: osc network vpn vpnservice create [OPTIONS]

Options:

  • --admin-state-up <ADMIN_STATE_UP> — The administrative state of the resource, which is up (true) or down (false)

    Possible values: true, false

  • --description <DESCRIPTION> — A human-readable description for the resource. Default is an empty string

  • --flavor-id <FLAVOR_ID> — The ID of the flavor

  • --name <NAME> — Human-readable name of the resource. Default is an empty string

  • --router-id <ROUTER_ID>

  • --subnet-id <SUBNET_ID> — If you specify only a subnet UUID, OpenStack Networking allocates an available IP from that subnet to the port. If you specify both a subnet UUID and an IP address, OpenStack Networking tries to allocate the address to the port

  • --tenant-id <TENANT_ID> — The ID of the project