OlvmIp

class oci.cloud_migrations.models.OlvmIp(**kwargs)

Bases: object

Represents the IP configuration of a network interface.

Attributes:

IP_VERSION_V4

A constant which can be used with the ip_version property of a OlvmIp.

IP_VERSION_V6

A constant which can be used with the ip_version property of a OlvmIp.

address

Gets the address of this OlvmIp.

gateway

Gets the gateway of this OlvmIp.

ip_version

Gets the ip_version of this OlvmIp.

netmask

Gets the netmask of this OlvmIp.

Methods:

__init__(**kwargs)

Initializes a new OlvmIp object with values from keyword arguments.

IP_VERSION_V4 = 'V4'

A constant which can be used with the ip_version property of a OlvmIp. This constant has a value of “V4”

IP_VERSION_V6 = 'V6'

A constant which can be used with the ip_version property of a OlvmIp. This constant has a value of “V6”

__init__(**kwargs)

Initializes a new OlvmIp object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • address (str) – The value to assign to the address property of this OlvmIp.

  • gateway (str) – The value to assign to the gateway property of this OlvmIp.

  • netmask (str) – The value to assign to the netmask property of this OlvmIp.

  • ip_version (str) – The value to assign to the ip_version property of this OlvmIp. Allowed values for this property are: “V4”, “V6”

property address

Gets the address of this OlvmIp. The text representation of the IP address.

Returns

The address of this OlvmIp.

Return type

str

property gateway

Gets the gateway of this OlvmIp. The address of the default gateway.

Returns

The gateway of this OlvmIp.

Return type

str

property ip_version

Gets the ip_version of this OlvmIp. The version of the IP protocol.

Allowed values for this property are: “V4”, “V6”

Returns

The ip_version of this OlvmIp.

Return type

str

property netmask

Gets the netmask of this OlvmIp. The network mask.

Returns

The netmask of this OlvmIp.

Return type

str