NM.SettingInfiniband

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

Subclasses:

None

Methods

Inherited:

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

Structs:

GObject.ObjectClass (5)

class

new ()

get_mac_address ()

get_mtu ()

get_p_key ()

get_parent ()

get_transport_mode ()

get_virtual_interface_name ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

NM.Setting (1)

Name

Type

Flags

Short Description

mac-address

str

r/w/en

mtu

int

r/w/en

p-key

int

r/w/en

parent

str

r/w/en

transport-mode

str

r/w/en

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class NM.SettingInfiniband(**kwargs)
Bases:

NM.Setting

Abstract:

No

Structure:

NM.SettingInfinibandClass

Infiniband Settings

classmethod new()
Returns:

the new empty NM.SettingInfiniband object

Return type:

NM.Setting

Creates a new NM.SettingInfiniband object with default values.

get_mac_address()
Returns:

the NM.SettingInfiniband :mac-address property of the setting

Return type:

str

get_mtu()
Returns:

the NM.SettingInfiniband :mtu property of the setting

Return type:

int

get_p_key()
Returns:

the IPoIB P_Key

Return type:

int

Returns the P_Key to use for this device. A value of -1 means to use the default P_Key (aka “the P_Key at index 0”). Otherwise, it is a 16-bit unsigned integer.

get_parent()
Returns:

the parent interface name

Return type:

str

Returns the parent interface name for this device, if set.

get_transport_mode()
Returns:

the IPoIB transport mode

Return type:

str

Returns the transport mode for this device. Either ‘datagram’ or ‘connected’.

get_virtual_interface_name()
Returns:

the interface name, or None

Return type:

str

Returns the interface name created by combining NM.SettingInfiniband :parent and NM.SettingInfiniband :p-key. (If either property is unset, this will return None.)

Property Details

NM.SettingInfiniband.props.mac_address
Name:

mac-address

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

If specified, this connection will only apply to the IPoIB device whose permanent MAC address matches. This property does not change the MAC address of the device (i.e. MAC spoofing).

NM.SettingInfiniband.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.

NM.SettingInfiniband.props.p_key
Name:

p-key

Type:

int

Default Value:

-1

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The InfiniBand p-key to use for this device. A value of -1 means to use the default p-key (aka “the p-key at index 0”). Otherwise, it is a 16-bit unsigned integer, whose high bit 0x8000 is set if it is a “full membership” p-key. The values 0 and 0x8000 are not allowed.

With the p-key set, the interface name is always “$parent.$p_key”. Setting “connection.interface-name” to another name is not supported.

Note that kernel will internally always set the full membership bit, although the interface name does not reflect that. Usually the user would want to configure a full membership p-key with 0x8000 flag set.

NM.SettingInfiniband.props.parent
Name:

parent

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The interface name of the parent device of this device. Normally None, but if the #NMSettingInfiniband:p_key property is set, then you must specify the base device by setting either this property or NM.SettingInfiniband :mac-address.

NM.SettingInfiniband.props.transport_mode
Name:

transport-mode

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The IP-over-InfiniBand transport mode. Either “datagram” or “connected”.