NM.IPConfig¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r |
|||
[ |
r |
||
r |
|||
r |
|||
[ |
r |
||
r |
|||
[ |
r |
||
[ |
r |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class NM.IPConfig(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
- get_addresses()¶
- Returns:
the
GLib.PtrArraycontainingNM.IPAddresses. 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:
Gets the IP addresses (containing the address, prefix, and gateway).
- get_domains()¶
-
Gets the domain names.
- get_family()¶
- Returns:
the IP address family; either
AF_INETorAF_INET6- Return type:
Gets the IP address family
- get_gateway()¶
- Returns:
the IP address of the gateway.
- Return type:
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.PtrArraycontainingNM.IPRoutes. 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:
Gets the routes.
Property Details¶
- NM.IPConfig.props.addresses¶
- Name:
addresses- Type:
- Default Value:
- Flags:
A
GLib.PtrArraycontaining the addresses (NM.IPAddress) of the configuration.
- NM.IPConfig.props.domains¶
-
The array containing domain strings of the configuration.
- NM.IPConfig.props.family¶
-
The IP address family of the configuration; either
AF_INETorAF_INET6.
- NM.IPConfig.props.gateway¶
-
The IP gateway address of the configuration as string.
- NM.IPConfig.props.nameservers¶
-
The array containing name server IP addresses of the configuration.
- NM.IPConfig.props.routes¶
- Name:
routes- Type:
- Default Value:
- Flags:
A
GLib.PtrArraycontaining the routes (NM.IPRoute) of the configuration.
- NM.IPConfig.props.searches¶
-
The array containing DNS search strings of the configuration.