models_v2.network_interface module

class models_v2.network_interface.NetworkInterface(name=None, mtype=None, static_ip=None, virtual_ip=None, gateway=None, mtu=None, subnet=None, is_up=None, group=None, role=None, default_route=None, bond_slave_names=None, bond_slave_slots=None, bonding_mode=None, mac_address=None, is_connected=None, speed=None)[source]

Bases: object

Implementation of the ‘Network Interface’ model.

Specifies the parameters of a network interface.

Attributes:

name (string): Specifies the name of the network interface. mtype (Type10Enum): Specifies the type of the network interface. static_ip (string): Specifies the static IP of the network interface. virtual_ip (string): Specifies the virtual IP of the network

interface.

gateway (string): Specifies the gateway of the network interface. mtu (int): Specifies the MTU of the network interface. subnet (string): Specifies the subnet of the network interface. is_up (bool): Specifies whether or not the interface is up. group (string): Specifies the group to which this interface belongs. role (RoleEnum): Specifies the interface role. default_route (bool): Specifies whether or not this interface is the

default route.

bond_slave_names (list of string): Specifies the names of the bond

slaves for this interface.

bond_slave_slots (list of string): Specifies the slots of the bond

slaves for this interface.

bonding_mode (BondingModeEnum): Specifies the bonding mode of this

interface.

mac_address (string): Specifies the MAC address of this interface. is_connected (bool): Specifies whether or not this interface is

connected.

speed (SpeedEnum): Specifies the speed of this interface.

classmethod from_dictionary(dictionary)[source]

Creates an instance of this model from a dictionary

Args:

dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.

Returns:

object: An instance of this structure class.