NM.DeviceTun

g GObject.Object GObject.Object NM.Object NM.Object GObject.Object->NM.Object NM.Device NM.Device NM.DeviceTun NM.DeviceTun NM.Device->NM.DeviceTun NM.Object->NM.Device

Subclasses:

None

Methods

Inherited:

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

Structs:

GObject.ObjectClass (5)

get_group ()

get_mode ()

get_multi_queue ()

get_no_pi ()

get_owner ()

get_vnet_hdr ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

NM.Device (32), NM.Object (2)

Name

Type

Flags

Short Description

group

int

r

mode

str

r

multi-queue

bool

r

no-pi

bool

r

owner

int

r

vnet-hdr

bool

r

Signals

Inherited:

NM.Device (1), GObject.Object (1)

Fields

Inherited:

NM.Device (1), GObject.Object (1)

Class Details

class NM.DeviceTun(**kwargs)
Bases:

NM.Device

Abstract:

No

Structure:

NM.DeviceTunClass

New in version 1.2.

get_group()
Returns:

the gid of the tunnel group, or -1 if it has no owner.

Return type:

int

Gets the tunnel group.

New in version 1.2.

get_mode()
Returns:

‘tun’ or ‘tap’

Return type:

str

Returns the TUN/TAP mode for the device.

New in version 1.2.

get_multi_queue()
Returns:

True if the device doesn’t have the flag, False otherwise

Return type:

bool

Returns whether the NM.DeviceTun has the IFF_MULTI_QUEUE flag.

New in version 1.2.

get_no_pi()
Returns:

True if the device has the flag, False otherwise

Return type:

bool

Returns whether the NM.DeviceTun has the IFF_NO_PI flag.

New in version 1.2.

get_owner()
Returns:

the uid of the tunnel owner, or -1 if it has no owner.

Return type:

int

Gets the tunnel owner.

New in version 1.2.

get_vnet_hdr()
Returns:

True if the device has the flag, False otherwise

Return type:

bool

Returns whether the NM.DeviceTun has the IFF_VNET_HDR flag.

New in version 1.2.

Property Details

NM.DeviceTun.props.group
Name:

group

Type:

int

Default Value:

-1

Flags:

READABLE

The gid of the tunnel group, or -1 if it has no owner.

New in version 1.2.

NM.DeviceTun.props.mode
Name:

mode

Type:

str

Default Value:

None

Flags:

READABLE

The tunnel mode, either “tun” or “tap”.

New in version 1.2.

NM.DeviceTun.props.multi_queue
Name:

multi-queue

Type:

bool

Default Value:

False

Flags:

READABLE

The tunnel’s “TUN_TAP_MQ” flag; true if callers can connect to the tap device multiple times, for multiple send/receive queues.

New in version 1.2.

NM.DeviceTun.props.no_pi
Name:

no-pi

Type:

bool

Default Value:

False

Flags:

READABLE

The tunnel’s “TUN_NO_PI” flag; true if no protocol info is prepended to the tunnel packets.

New in version 1.2.

NM.DeviceTun.props.owner
Name:

owner

Type:

int

Default Value:

-1

Flags:

READABLE

The uid of the tunnel owner, or -1 if it has no owner.

New in version 1.2.

NM.DeviceTun.props.vnet_hdr
Name:

vnet-hdr

Type:

bool

Default Value:

False

Flags:

READABLE

The tunnel’s “TUN_VNET_HDR” flag; true if the tunnel packets include a virtio network header.

New in version 1.2.