EmulatedNic#

class EmulatedNic(model=None, mac_address=None, is_connected=True, num_queues=1, *args, **kwargs)[source]#

Bases: object

Defines a NIC emulated by the hypervisor

Parameters:
  • model – (model)

  • mac_address – (mac_address) MAC address of the emulated NIC.

  • is_connected – (is_connected) Indicates whether the NIC is connected or not. Default is True. (Default True)

  • num_queues – (num_queues) The number of Tx/Rx queue pairs for this NIC. (Default 1)

property is_connected#

Indicates whether the NIC is connected or not. Default is True.

Type:

bool

property mac_address#

MAC address of the emulated NIC.

Type:

str

property model#
Type:

EmulatedNicModel

property num_queues#

The number of Tx/Rx queue pairs for this NIC.

Type:

int

to_dict()[source]#

Returns the model properties as a dictionary

to_str()[source]#

Returns the string representation of the model