NM.DhcpConfig

g GObject.Object GObject.Object NM.Object NM.Object GObject.Object->NM.Object NM.DhcpConfig NM.DhcpConfig NM.Object->NM.DhcpConfig

Subclasses:

None

Methods

Inherited:

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

Structs:

GObject.ObjectClass (5)

get_family ()

get_one_option (option)

get_options ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

NM.Object (2)

Name

Type

Flags

Short Description

family

int

r

options

GLib.HashTable

r

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class NM.DhcpConfig(**kwargs)
Bases:

NM.Object

Abstract:

Yes

Structure:

NM.DhcpConfigClass

get_family()
Returns:

the IP address family; either AF_INET or AF_INET6

Return type:

int

Gets the IP address family of the configuration

get_one_option(option)
Parameters:

option (str) – the option to retrieve

Returns:

the configuration option’s value. This is the internal string used by the configuration, and must not be modified.

Return type:

str

Gets one option by option name.

get_options()
Returns:

the GLib.HashTable containing strings for keys and values. This is the internal copy used by the configuration, and must not be modified.

Return type:

{str: str}

Gets all the options contained in the configuration.

Property Details

NM.DhcpConfig.props.family
Name:

family

Type:

int

Default Value:

0

Flags:

READABLE

The IP address family of the configuration; either AF_INET or AF_INET6.

NM.DhcpConfig.props.options
Name:

options

Type:

GLib.HashTable

Default Value:

None

Flags:

READABLE

The GLib.HashTable containing options of the configuration.