NM.SettingInfiniband¶
- 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 |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class NM.SettingInfiniband(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Infiniband Settings
- classmethod new()¶
- Returns:
the new empty
NM.SettingInfiniband
object- Return type:
Creates a new
NM.SettingInfiniband
object with default values.
- get_mac_address()¶
- Returns:
the
NM.SettingInfiniband
:mac-address
property of the setting- Return type:
- get_mtu()¶
- Returns:
the
NM.SettingInfiniband
:mtu
property of the setting- Return type:
- get_p_key()¶
- Returns:
the IPoIB P_Key
- Return type:
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:
Returns the parent interface name for this device, if set.
- get_transport_mode()¶
- Returns:
the IPoIB transport mode
- Return type:
Returns the transport mode for this device. Either ‘datagram’ or ‘connected’.
- get_virtual_interface_name()¶
-
Returns the interface name created by combining
NM.SettingInfiniband
:parent
andNM.SettingInfiniband
:p-key
. (If either property is unset, this will returnNone
.)
Property Details¶
- NM.SettingInfiniband.props.mac_address¶
- Name:
mac-address
- Type:
- Default Value:
- Flags:
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:
- Default Value:
0
- Flags:
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:
- Default Value:
-1
- Flags:
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:
- Default Value:
- Flags:
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 orNM.SettingInfiniband
:mac-address
.