NMDeviceTeam

NMDeviceTeam

Functions

const char * nm_device_team_get_hw_address ()
gboolean nm_device_team_get_carrier ()
const GPtrArray * nm_device_team_get_slaves ()

Properties

gboolean carrier Read
gchar * hw-address Read
GPtrArray * slaves Read

Object Hierarchy

    GObject
    ╰── NMObject
        ╰── NMDevice
            ╰── NMDeviceTeam

Description

Functions

nm_device_team_get_hw_address ()

const char *
nm_device_team_get_hw_address (NMDeviceTeam *device);

Gets the hardware (MAC) address of the NMDeviceTeam

Parameters

device

a NMDeviceTeam

 

Returns

the hardware address. This is the internal string used by the device, and must not be modified.


nm_device_team_get_carrier ()

gboolean
nm_device_team_get_carrier (NMDeviceTeam *device);

Whether the device has carrier.

Parameters

device

a NMDeviceTeam

 

Returns

TRUE if the device has carrier


nm_device_team_get_slaves ()

const GPtrArray *
nm_device_team_get_slaves (NMDeviceTeam *device);

Gets the devices currently enslaved to device .

Parameters

device

a NMDeviceTeam

 

Returns

the GPtrArray containing NMDevices that are slaves of device . This is the internal copy used by the device, and must not be modified.

[element-type NMDevice]

Types and Values

NM_DEVICE_TEAM_HW_ADDRESS

#define NM_DEVICE_TEAM_HW_ADDRESS  "hw-address"


NM_DEVICE_TEAM_CARRIER

#define NM_DEVICE_TEAM_CARRIER     "carrier"


NM_DEVICE_TEAM_SLAVES

#define NM_DEVICE_TEAM_SLAVES      "slaves"

Property Details

The “carrier” property

  “carrier”                  gboolean

Flags: Read

Default value: FALSE


The “hw-address” property

  “hw-address”               gchar *

Flags: Read

Default value: NULL


The “slaves” property

  “slaves”                   GPtrArray *

Flags: Read