NM.SettingGsm

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

Subclasses:

None

Methods

Inherited:

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

Structs:

GObject.ObjectClass (5)

class

new ()

get_apn ()

get_auto_config ()

get_device_id ()

get_home_only ()

get_initial_eps_apn ()

get_initial_eps_config ()

get_mtu ()

get_network_id ()

get_number ()

get_password ()

get_password_flags ()

get_pin ()

get_pin_flags ()

get_sim_id ()

get_sim_operator_id ()

get_username ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

NM.Setting (1)

Name

Type

Flags

Short Description

apn

str

r/w/en

auto-config

bool

r/w/en

device-id

str

r/w/en

home-only

bool

r/w/en

initial-eps-bearer-apn

str

r/w/en

initial-eps-bearer-configure

bool

r/w/en

mtu

int

r/w/en

network-id

str

r/w/en

number

str

r/w/en

deprecated

password

str

r/w/en

password-flags

NM.SettingSecretFlags

r/w/en

pin

str

r/w/en

pin-flags

NM.SettingSecretFlags

r/w/en

sim-id

str

r/w/en

sim-operator-id

str

r/w/en

username

str

r/w/en

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class NM.SettingGsm(**kwargs)
Bases:

NM.Setting

Abstract:

No

Structure:

NM.SettingGsmClass

GSM-based Mobile Broadband Settings

classmethod new()
Returns:

the new empty NM.SettingGsm object

Return type:

NM.Setting

Creates a new NM.SettingGsm object with default values.

get_apn()
Returns:

the NM.SettingGsm :apn property of the setting

Return type:

str

get_auto_config()
Returns:

the NM.SettingGsm :auto-config property of the setting

Return type:

bool

New in version 1.22.

get_device_id()
Returns:

the NM.SettingGsm :device-id property of the setting

Return type:

str

New in version 1.2.

get_home_only()
Returns:

the NM.SettingGsm :home-only property of the setting

Return type:

bool

get_initial_eps_apn()
Returns:

the NM.SettingGsm :initial-eps-bearer-apn property of the setting

Return type:

str

New in version 1.44.

get_initial_eps_config()
Returns:

the NM.SettingGsm :initial-eps-bearer-configure property of the setting

Return type:

bool

New in version 1.44.

get_mtu()
Returns:

the NM.SettingGsm :mtu property of the setting

Return type:

int

New in version 1.8.

get_network_id()
Returns:

the NM.SettingGsm :network-id property of the setting

Return type:

str

get_number()
Returns:

the NM.SettingGsm :number property of the setting

Return type:

str

Deprecated since version 1.16: User-provided values for this setting are no longer used.

get_password()
Returns:

the NM.SettingGsm :password property of the setting

Return type:

str

get_password_flags()
Returns:

the NM.SettingSecretFlags pertaining to the NM.SettingGsm :password

Return type:

NM.SettingSecretFlags

get_pin()
Returns:

the NM.SettingGsm :pin property of the setting

Return type:

str

get_pin_flags()
Returns:

the NM.SettingSecretFlags pertaining to the NM.SettingGsm :pin

Return type:

NM.SettingSecretFlags

get_sim_id()
Returns:

the NM.SettingGsm :sim-id property of the setting

Return type:

str

New in version 1.2.

get_sim_operator_id()
Returns:

the NM.SettingGsm :sim-operator-id property of the setting

Return type:

str

New in version 1.2.

get_username()
Returns:

the NM.SettingGsm :username property of the setting

Return type:

str

Property Details

NM.SettingGsm.props.apn
Name:

apn

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The GPRS Access Point Name specifying the APN used when establishing a data session with the GSM-based network. The APN often determines how the user will be billed for their network usage and whether the user has access to the Internet or just a provider-specific walled-garden, so it is important to use the correct APN for the user’s mobile broadband plan. The APN may only be composed of the characters a-z, 0-9, ., and - per GSM 03.60 Section 14.9.

If the APN is unset (the default) then it may be detected based on “auto-config” setting. The property can be explicitly set to the empty string to prevent that and use no APN.

NM.SettingGsm.props.auto_config
Name:

auto-config

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

When True, the settings such as APN, username, or password will default to values that match the network the modem will register to in the Mobile Broadband Provider database.

New in version 1.22.

NM.SettingGsm.props.device_id
Name:

device-id

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The device unique identifier (as given by the WWAN management service) which this connection applies to. If given, the connection will only apply to the specified device.

New in version 1.2.

NM.SettingGsm.props.home_only
Name:

home-only

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

When True, only connections to the home network will be allowed. Connections to roaming networks will not be made.

NM.SettingGsm.props.initial_eps_bearer_apn
Name:

initial-eps-bearer-apn

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

For LTE modems, this sets the APN for the initial EPS bearer that is set up when attaching to the network. Setting this parameter implies initial-eps-bearer-configure to be True.

New in version 1.44.

NM.SettingGsm.props.initial_eps_bearer_configure
Name:

initial-eps-bearer-configure

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

For LTE modems, this setting determines whether the initial EPS bearer shall be configured when bringing up the connection. It is inferred True if initial-eps-bearer-apn is set.

New in version 1.44.

NM.SettingGsm.props.mtu
Name:

mtu

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

If non-zero, only transmit packets of the specified size or smaller, breaking larger packets up into multiple frames.

New in version 1.8.

NM.SettingGsm.props.network_id
Name:

network-id

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The Network ID (GSM LAI format, ie MCC-MNC) to force specific network registration. If the Network ID is specified, NetworkManager will attempt to force the device to register only on the specified network. This can be used to ensure that the device does not roam when direct roaming control of the device is not otherwise possible.

NM.SettingGsm.props.number
Name:

number

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Legacy setting that used to help establishing PPP data sessions for GSM-based modems.

Deprecated since version 1.16: User-provided values for this setting are no longer used.

NM.SettingGsm.props.password
Name:

password

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The password used to authenticate with the network, if required. Many providers do not require a password, or accept any password. But if a password is required, it is specified here.

NM.SettingGsm.props.password_flags
Name:

password-flags

Type:

NM.SettingSecretFlags

Default Value:

NM.SettingSecretFlags.NONE

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Flags indicating how to handle the NM.SettingGsm :password property.

NM.SettingGsm.props.pin
Name:

pin

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

If the SIM is locked with a PIN it must be unlocked before any other operations are requested. Specify the PIN here to allow operation of the device.

NM.SettingGsm.props.pin_flags
Name:

pin-flags

Type:

NM.SettingSecretFlags

Default Value:

NM.SettingSecretFlags.NONE

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Flags indicating how to handle the NM.SettingGsm :pin property.

NM.SettingGsm.props.sim_id
Name:

sim-id

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The SIM card unique identifier (as given by the WWAN management service) which this connection applies to. If given, the connection will apply to any device also allowed by NM.SettingGsm :device-id which contains a SIM card matching the given identifier.

New in version 1.2.

NM.SettingGsm.props.sim_operator_id
Name:

sim-operator-id

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

A MCC/MNC string like “310260” or “21601” identifying the specific mobile network operator which this connection applies to. If given, the connection will apply to any device also allowed by NM.SettingGsm :device-id and NM.SettingGsm :sim-id which contains a SIM card provisioned by the given operator.

New in version 1.2.

NM.SettingGsm.props.username
Name:

username

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The username used to authenticate with the network, if required. Many providers do not require a username, or accept any username. But if a username is required, it is specified here.