NM.SettingGeneric

g GObject.Object GObject.Object NM.Setting NM.Setting GObject.Object->NM.Setting NM.SettingGeneric NM.SettingGeneric NM.Setting->NM.SettingGeneric

Subclasses:

None

Methods

Inherited:

NM.Setting (21), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_device_handler ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

NM.Setting (1)

Name

Type

Flags

Short Description

device-handler

str

r/w/en

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class NM.SettingGeneric(**kwargs)
Bases:

NM.Setting

Abstract:

No

Structure:

NM.SettingGenericClass

Generic Link Settings

classmethod new()
Returns:

the new empty NM.SettingGeneric object

Return type:

NM.Setting

Creates a new NM.SettingGeneric object with default values.

get_device_handler()
Returns:

the device handler name, or None if no device handler is set

Return type:

str

Returns the NM.SettingGeneric :device-handler property of the connection.

New in version 1.46.

Property Details

NM.SettingGeneric.props.device_handler
Name:

device-handler

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Name of the device handler that will be invoked to add and delete the device for this connection. The name can only contain ASCII alphanumeric characters and ‘-’, ‘_’, ‘.’. It cannot start with ‘.’.

See the NetworkManager-dispatcher(8) man page for more details about how to write the device handler.

By setting this property the generic connection becomes “virtual”, meaning that it can be activated without an existing device; the device will be created at the time the connection is started by invoking the device-handler.

New in version 1.46.