otcextensions.sdk.dcaas.v2.virtual_interface

The Virtual Interface Class

The VirtualInterface class inherits from Resource.

class otcextensions.sdk.dcaas.v2.virtual_interface.VirtualInterface(_synchronized=False, connection=None, **attrs)

The base resource

Parameters:
  • _synchronized (bool) – This is not intended to be used directly. See new() and existing().

  • connection (openstack.connection.Connection) – Reference to the Connection being used. Defaults to None to allow Resource objects to be used without an active Connection, such as in unit tests. Use of self._connection in Resource code should protect itself with a check for None.

resource_key: ty.Optional[str] = 'virtual_interface'

Singular form of key for resource.

resources_key: ty.Optional[str] = 'virtual_interfaces'

Plural form of key for resource.

base_path: str = '/dcaas/virtual-interfaces'

The base part of the URI for this resource.

allow_list = True

Allow list operation for this resource.

allow_create = True

Allow create operation for this resource.

allow_fetch = True

Allow get operation for this resource.

allow_delete = True

Allow delete operation for this resource.

allow_commit = True

Allow update operation for this resource.

id

ID of the direct connection.

name: ty.Union[Body, URI]

Indicates the virtual interface name.

project_id

Project id.

description

Indicates the description of the virtual interface.

direct_connect_id

Specifies the connection ID.

vgw_id

Specifies the virtual gateway ID.

bandwidth

Specifies the virtual interface bandwidth.

local_gateway_v4_ip

Specifies the IPv4 address of the local gateway.

remote_gateway_v4_ip

Specifies the IPv4 address of the remote gateway.

route_mode

Specifies the routing mode. The value can be static or bgp.

bgp_asn

Specifies the AS number of the BGP peer.

bgp_md5

Specifies the MD5 password of the BGP peer.

create_time

Specifies the time when the virtual interface is created.

delete_time

Specifies the time when the virtual interface is deleted.