NM.DeviceTeam

g GObject.Object GObject.Object NM.Object NM.Object GObject.Object->NM.Object NM.Device NM.Device NM.DeviceTeam NM.DeviceTeam NM.Device->NM.DeviceTeam NM.Object->NM.Device

Subclasses:

None

Methods

Inherited:

NM.Device (54), NM.Object (2), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_carrier ()

get_config ()

get_slaves ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

NM.Device (32), NM.Object (2)

Name

Type

Flags

Short Description

carrier

bool

r

config

str

r

slaves

GLib.PtrArray

r

Signals

Inherited:

NM.Device (1), GObject.Object (1)

Fields

Inherited:

NM.Device (1), GObject.Object (1)

Class Details

class NM.DeviceTeam(**kwargs)
Bases:

NM.Device

Abstract:

No

Structure:

NM.DeviceTeamClass

get_carrier()
Returns:

True if the device has carrier

Return type:

bool

Whether the device has carrier.

get_config()
Returns:

the current configuration. This is the internal string used by the device, and must not be modified.

Return type:

str

Gets the current JSON configuration of the NM.DeviceTeam

New in version 1.4.

get_slaves()
Returns:

the GLib.PtrArray containing NM.Devices that are slaves of self. This is the internal copy used by the device, and must not be modified.

Return type:

[NM.Device]

Gets the devices currently enslaved to self.

Deprecated since version 1.34: Use NM.Device.get_ports() instead.

Property Details

NM.DeviceTeam.props.carrier
Name:

carrier

Type:

bool

Default Value:

False

Flags:

READABLE

Whether the device has carrier.

NM.DeviceTeam.props.config
Name:

config

Type:

str

Default Value:

None

Flags:

READABLE

The current JSON configuration of the device.

New in version 1.4.

NM.DeviceTeam.props.slaves
Name:

slaves

Type:

GLib.PtrArray

Default Value:

None

Flags:

READABLE

The devices enslaved to the team device.