NM.DeviceMacvlan

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

Subclasses:

None

Methods

Inherited:

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

Structs:

GObject.ObjectClass (5)

get_mode ()

get_no_promisc ()

get_parent ()

get_tap ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

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

Name

Type

Flags

Short Description

mode

str

r

no-promisc

bool

r

parent

NM.Device

r

tap

bool

r

Signals

Inherited:

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

Fields

Inherited:

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

Class Details

class NM.DeviceMacvlan(**kwargs)
Bases:

NM.Device

Abstract:

No

Structure:

NM.DeviceMacvlanClass

New in version 1.2.

get_mode()
Returns:

the MACVLAN mode. This is the internal string used by the device, and must not be modified.

Return type:

str

Gets the MACVLAN mode of the device.

New in version 1.2.

get_no_promisc()
Returns:

the no-promiscuous flag of the device.

Return type:

bool

Gets the no-promiscuous flag of the device.

New in version 1.2.

get_parent()
Returns:

the device’s parent device

Return type:

NM.Device

New in version 1.2.

get_tap()
Returns:

True if the device is a MACVTAP, False if it is a MACVLAN.

Return type:

bool

Gets the device type (MACVLAN or MACVTAP).

New in version 1.2.

Property Details

NM.DeviceMacvlan.props.mode
Name:

mode

Type:

str

Default Value:

None

Flags:

READABLE

The MACVLAN mode.

New in version 1.2.

NM.DeviceMacvlan.props.no_promisc
Name:

no-promisc

Type:

bool

Default Value:

False

Flags:

READABLE

Whether the device has the no-promiscuos flag.

New in version 1.2.

NM.DeviceMacvlan.props.parent
Name:

parent

Type:

NM.Device

Default Value:

None

Flags:

READABLE

The devices’s parent device.

New in version 1.2.

NM.DeviceMacvlan.props.tap
Name:

tap

Type:

bool

Default Value:

False

Flags:

READABLE

Whether the device is a MACVTAP.

New in version 1.2.