NM.SettingTun¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class NM.SettingTun(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Tunnel Settings
- classmethod new()¶
- Returns:
the new empty
NM.SettingTun
object- Return type:
Creates a new
NM.SettingTun
object with default values.New in version 1.2.
- get_group()¶
- Returns:
the
NM.SettingTun
:group
property of the setting- Return type:
New in version 1.2.
- get_mode()¶
- Returns:
the
NM.SettingTun
:mode
property of the setting- Return type:
New in version 1.2.
- get_multi_queue()¶
- Returns:
the
NM.SettingTun
:multi-queue
property of the setting- Return type:
New in version 1.2.
- get_owner()¶
- Returns:
the
NM.SettingTun
:owner
property of the setting- Return type:
New in version 1.2.
- get_pi()¶
- Returns:
the
NM.SettingTun
:pi
property of the setting- Return type:
New in version 1.2.
Property Details¶
- NM.SettingTun.props.group¶
- Name:
group
- Type:
- Default Value:
- Flags:
The group ID which will own the device. If set to
None
everyone will be able to use the device.New in version 1.2.
- NM.SettingTun.props.mode¶
- Name:
mode
- Type:
- Default Value:
1
- Flags:
The operating mode of the virtual device. Allowed values are
NM.SettingTunMode.TUN
to create a layer 3 device andNM.SettingTunMode.TAP
to create an Ethernet-like layer 2 one.New in version 1.2.
- NM.SettingTun.props.multi_queue¶
- Name:
multi-queue
- Type:
- Default Value:
- Flags:
If the property is set to
True
, the interface will support multiple file descriptors (queues) to parallelize packet sending or receiving. Otherwise, the interface will only support a single queue.New in version 1.2.
- NM.SettingTun.props.owner¶
- Name:
owner
- Type:
- Default Value:
- Flags:
The user ID which will own the device. If set to
None
everyone will be able to use the device.New in version 1.2.