VirtualNic#

class VirtualNic(name=None, host_description=None, mac_address=None, ipv4_addresses=None, ipv6_addresses=None, interface_status=None, is_dhcp_enabled=None, link_speed_in_kbps=None, mtu_in_bytes=None, node_uuid=None, vlan_id=None, host_nics_uuids=None, ext_id=None, links=None, tenant_id=None, *args, **kwargs)#

Bases: ExternalizableAbstractModel

Virtual NIC details.

Parameters:
  • name (max=64 chars) – (name) Virtual NIC name.

  • host_description – (host_description) Host description.

  • mac_address – (mac_address) Host Mac address.

  • ipv4_addresses – (ipv4_addresses) List of IPv4 addresses associated with the NIC entity for the network connection.

  • ipv6_addresses – (ipv6_addresses) List of IPv6 addresses associated with the NIC entity for the network connection.

  • interface_status – (interface_status) Operational status of the interface to the port associated with the NIC entity.

  • is_dhcp_enabled – (is_dhcp_enabled) Status of DHCP protocol.

  • link_speed_in_kbps – (link_speed_in_kbps) Link speed in Kbps.

  • mtu_in_bytes – (mtu_in_bytes) Maximum transmission unit in bytes.

  • node_uuid – (node_uuid) UUID of the host.

  • vlan_id – (vlan_id) VLAN Id.

  • host_nics_uuids – (host_nics_uuids) List of host NIC UUID associated with the host virtual NIC.

property host_description#

Host description.

Type:

str

property host_nics_uuids#

List of host NIC UUID associated with the host virtual NIC.

Type:

list[ str ]

property interface_status#

Operational status of the interface to the port associated with the NIC entity.

Type:

str

property ipv4_addresses#

List of IPv4 addresses associated with the NIC entity for the network connection.

Type:

list[ IPAddress ]

property ipv6_addresses#

List of IPv6 addresses associated with the NIC entity for the network connection.

Type:

list[ IPAddress ]

property is_dhcp_enabled#

Status of DHCP protocol.

Type:

bool

Link speed in Kbps.

Type:

int

property mac_address#

Host Mac address.

Type:

str

property mtu_in_bytes#

Maximum transmission unit in bytes.

Type:

int

property name#

Virtual NIC name.

Type:

str

property node_uuid#

UUID of the host.

Type:

str

to_dict()#

Returns the model properties as a dictionary

to_str()#

Returns the string representation of the model

property vlan_id#

VLAN Id.

Type:

int