NM.SettingMacvlan

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

Subclasses:

None

Methods

Inherited:

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

Structs:

GObject.ObjectClass (5)

class

new ()

get_mode ()

get_parent ()

get_promiscuous ()

get_tap ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

NM.Setting (1)

Name

Type

Flags

Short Description

mode

int

r/w/en

parent

str

r/w/en

promiscuous

bool

r/w/en

tap

bool

r/w/en

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class NM.SettingMacvlan(**kwargs)
Bases:

NM.Setting

Abstract:

No

Structure:

NM.SettingMacvlanClass

MAC VLAN Settings

classmethod new()
Returns:

the new empty NM.SettingMacvlan object

Return type:

NM.Setting

Creates a new NM.SettingMacvlan object with default values.

New in version 1.2.

get_mode()
Returns:

the NM.SettingMacvlan :mode property of the setting

Return type:

NM.SettingMacvlanMode

New in version 1.2.

get_parent()
Returns:

the NM.SettingMacvlan :parent property of the setting

Return type:

str

New in version 1.2.

get_promiscuous()
Returns:

the NM.SettingMacvlan :promiscuous property of the setting

Return type:

bool

New in version 1.2.

get_tap()
Returns:

the NM.SettingMacvlan :tap property of the setting

Return type:

bool

New in version 1.2.

Property Details

NM.SettingMacvlan.props.mode
Name:

mode

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The macvlan mode, which specifies the communication mechanism between multiple macvlans on the same lower device.

New in version 1.2.

NM.SettingMacvlan.props.parent
Name:

parent

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

If given, specifies the parent interface name or parent connection UUID from which this MAC-VLAN interface should be created. If this property is not specified, the connection must contain an NM.SettingWired setting with a NM.SettingWired :mac-address property.

New in version 1.2.

NM.SettingMacvlan.props.promiscuous
Name:

promiscuous

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Whether the interface should be put in promiscuous mode.

New in version 1.2.

NM.SettingMacvlan.props.tap
Name:

tap

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Whether the interface should be a MACVTAP.

New in version 1.2.