NM.IPConfig

g GObject.Object GObject.Object NM.Object NM.Object GObject.Object->NM.Object NM.IPConfig NM.IPConfig NM.Object->NM.IPConfig

Subclasses:

None

Methods

Inherited:

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

Structs:

GObject.ObjectClass (5)

get_addresses ()

get_domains ()

get_family ()

get_gateway ()

get_nameservers ()

get_routes ()

get_searches ()

get_wins_servers ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

NM.Object (2)

Name

Type

Flags

Short Description

addresses

GLib.PtrArray

r

domains

[str]

r

family

int

r

gateway

str

r

nameservers

[str]

r

routes

GLib.PtrArray

r

searches

[str]

r

wins-servers

[str]

r

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class NM.IPConfig(**kwargs)
Bases:

NM.Object

Abstract:

Yes

Structure:

NM.IPConfigClass

get_addresses()
Returns:

the GLib.PtrArray containing NM.IPAddress es. This is the internal copy used by the configuration and must not be modified. The library never modifies the returned array and thus it is safe for callers to reference and keep using it.

Return type:

[NM.IPAddress]

Gets the IP addresses (containing the address, prefix, and gateway).

get_domains()
Returns:

the array of domains. (This is never None, though it may be 0-length).

Return type:

[str]

Gets the domain names.

get_family()
Returns:

the IP address family; either AF_INET or AF_INET6

Return type:

int

Gets the IP address family

get_gateway()
Returns:

the IP address of the gateway.

Return type:

str

Gets the IP gateway address.

get_nameservers()
Returns:

the array of nameserver IP addresses

Return type:

[str]

Gets the domain name servers (DNS).

get_routes()
Returns:

the GLib.PtrArray containing NM.IPRoute s. This is the internal copy used by the configuration, and must not be modified. The library never modifies the returned array and thus it is safe for callers to reference and keep using it.

Return type:

[NM.IPRoute]

Gets the routes.

get_searches()
Returns:

the array of DNS search strings. (This is never None, though it may be 0-length).

Return type:

[str]

Gets the DNS searches.

get_wins_servers()
Returns:

the arry of WINS server IP address strings. (This is never None, though it may be 0-length.)

Return type:

[str]

Gets the Windows Internet Name Service servers (WINS).

Property Details

NM.IPConfig.props.addresses
Name:

addresses

Type:

GLib.PtrArray

Default Value:

None

Flags:

READABLE

A GLib.PtrArray containing the addresses (NM.IPAddress) of the configuration.

NM.IPConfig.props.domains
Name:

domains

Type:

[str]

Default Value:

[]

Flags:

READABLE

The array containing domain strings of the configuration.

NM.IPConfig.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.IPConfig.props.gateway
Name:

gateway

Type:

str

Default Value:

None

Flags:

READABLE

The IP gateway address of the configuration as string.

NM.IPConfig.props.nameservers
Name:

nameservers

Type:

[str]

Default Value:

[]

Flags:

READABLE

The array containing name server IP addresses of the configuration.

NM.IPConfig.props.routes
Name:

routes

Type:

GLib.PtrArray

Default Value:

None

Flags:

READABLE

A GLib.PtrArray containing the routes (NM.IPRoute) of the configuration.

NM.IPConfig.props.searches
Name:

searches

Type:

[str]

Default Value:

[]

Flags:

READABLE

The array containing DNS search strings of the configuration.

NM.IPConfig.props.wins_servers
Name:

wins-servers

Type:

[str]

Default Value:

[]

Flags:

READABLE

The array containing WINS server IP addresses of the configuration. (This will always be empty for IPv6 configurations.)