NM.SettingDcb¶
- 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 |
|||
r/w/en |
|||
r/w/en |
|||
r/w |
|||
r/w |
|||
r/w/en |
|||
r/w |
|||
r/w/en |
|||
r/w |
|||
r/w |
|||
r/w |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class NM.SettingDcb(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Data Center Bridging Settings
- classmethod new()¶
- Returns:
the new empty
NM.SettingDcb
object- Return type:
Creates a new
NM.SettingDcb
object with default values.
- get_app_fcoe_flags()¶
- Returns:
the
NM.SettingDcb
:app-fcoe-flags
property of the setting- Return type:
- get_app_fcoe_mode()¶
- Returns:
the
NM.SettingDcb
:app-fcoe-mode
property of the setting- Return type:
- get_app_fcoe_priority()¶
- Returns:
the
NM.SettingDcb
:app-fcoe-priority
property of the setting- Return type:
- get_app_fip_flags()¶
- Returns:
the
NM.SettingDcb
:app-fip-flags
property of the setting- Return type:
- get_app_fip_priority()¶
- Returns:
the
NM.SettingDcb
:app-fip-priority
property of the setting- Return type:
- get_app_iscsi_flags()¶
- Returns:
the
NM.SettingDcb
:app-iscsi-flags
property of the setting- Return type:
- get_app_iscsi_priority()¶
- Returns:
the
NM.SettingDcb
:app-iscsi-priority
property of the setting- Return type:
- get_priority_bandwidth(user_priority)¶
- Parameters:
user_priority (
int
) – the User Priority (0 - 7) to retrieve the group bandwidth percentage for- Returns:
the allowed bandwidth percentage of user_priority in its priority group. These values are only valid when
NM.SettingDcb
:priority-group-flags
includes theNM.SettingDcbFlags.ENABLE
flag.- Return type:
- get_priority_flow_control(user_priority)¶
- get_priority_flow_control_flags()¶
- Returns:
the
NM.SettingDcb
:priority-flow-control-flags
property of the setting- Return type:
- get_priority_group_bandwidth(group_id)¶
- Parameters:
group_id (
int
) – the priority group (0 - 7) to retrieve the bandwidth percentage for- Returns:
the bandwidth percentage assigned to group_id. These values are only valid when
NM.SettingDcb
:priority-group-flags
includes theNM.SettingDcbFlags.ENABLE
flag.- Return type:
- get_priority_group_flags()¶
- Returns:
the
NM.SettingDcb
:priority-group-flags
property of the setting- Return type:
- get_priority_group_id(user_priority)¶
- Parameters:
user_priority (
int
) – the User Priority (0 - 7) to retrieve the group ID for- Returns:
the group number user_priority is assigned to. These values are only valid when
NM.SettingDcb
:priority-group-flags
includes theNM.SettingDcbFlags.ENABLE
flag.- Return type:
- get_priority_strict_bandwidth(user_priority)¶
- Parameters:
user_priority (
int
) – the User Priority (0 - 7) to retrieve strict bandwidth for- Returns:
True
if user_priority may use all of the bandwidth allocated to its assigned group, orFalse
if not. These values are only valid whenNM.SettingDcb
:priority-group-flags
includes theNM.SettingDcbFlags.ENABLE
flag.- Return type:
- get_priority_traffic_class(user_priority)¶
- Parameters:
user_priority (
int
) – the User Priority (0 - 7) to retrieve the traffic class for- Returns:
the traffic class assigned to user_priority. These values are only valid when
NM.SettingDcb
:priority-group-flags
includes theNM.SettingDcbFlags.ENABLE
flag.- Return type:
- set_priority_bandwidth(user_priority, bandwidth_percent)¶
- Parameters:
These values are only valid when
NM.SettingDcb
:priority-group-flags
includes theNM.SettingDcbFlags.ENABLE
flag.
- set_priority_flow_control(user_priority, enabled)¶
- Parameters:
These values are only valid when
NM.SettingDcb
:priority-flow-control
includes theNM.SettingDcbFlags.ENABLE
flag.
- set_priority_group_bandwidth(group_id, bandwidth_percent)¶
- Parameters:
These values are only valid when
NM.SettingDcb
:priority-group-flags
includes theNM.SettingDcbFlags.ENABLE
flag.
- set_priority_group_id(user_priority, group_id)¶
- Parameters:
These values are only valid when
NM.SettingDcb
:priority-group-flags
includes theNM.SettingDcbFlags.ENABLE
flag.
- set_priority_strict_bandwidth(user_priority, strict)¶
- Parameters:
These values are only valid when
NM.SettingDcb
:priority-group-flags
includes theNM.SettingDcbFlags.ENABLE
flag.
Property Details¶
- NM.SettingDcb.props.app_fcoe_flags¶
- Name:
app-fcoe-flags
- Type:
- Default Value:
- Flags:
Specifies the
NM.SettingDcbFlags
for the DCB FCoE application. Flags may be any combination ofNM.SettingDcbFlags.ENABLE
,NM.SettingDcbFlags.ADVERTISE
, andNM.SettingDcbFlags.WILLING
.
- NM.SettingDcb.props.app_fcoe_mode¶
- Name:
app-fcoe-mode
- Type:
- Default Value:
- Flags:
The FCoE controller mode; either
NM.SETTING_DCB_FCOE_MODE_FABRIC
orNM.SETTING_DCB_FCOE_MODE_VN2VN
.Since 1.34,
None
is the default and meansNM.SETTING_DCB_FCOE_MODE_FABRIC
. Before 1.34,None
was rejected as invalid and the default wasNM.SETTING_DCB_FCOE_MODE_FABRIC
.
- NM.SettingDcb.props.app_fcoe_priority¶
- Name:
app-fcoe-priority
- Type:
- Default Value:
-1
- Flags:
The highest User Priority (0 - 7) which FCoE frames should use, or -1 for default priority. Only used when the
NM.SettingDcb
:app-fcoe-flags
property includes theNM.SettingDcbFlags.ENABLE
flag.
- NM.SettingDcb.props.app_fip_flags¶
- Name:
app-fip-flags
- Type:
- Default Value:
- Flags:
Specifies the
NM.SettingDcbFlags
for the DCB FIP application. Flags may be any combination ofNM.SettingDcbFlags.ENABLE
,NM.SettingDcbFlags.ADVERTISE
, andNM.SettingDcbFlags.WILLING
.
- NM.SettingDcb.props.app_fip_priority¶
- Name:
app-fip-priority
- Type:
- Default Value:
-1
- Flags:
The highest User Priority (0 - 7) which FIP frames should use, or -1 for default priority. Only used when the
NM.SettingDcb
:app-fip-flags
property includes theNM.SettingDcbFlags.ENABLE
flag.
- NM.SettingDcb.props.app_iscsi_flags¶
- Name:
app-iscsi-flags
- Type:
- Default Value:
- Flags:
Specifies the
NM.SettingDcbFlags
for the DCB iSCSI application. Flags may be any combination ofNM.SettingDcbFlags.ENABLE
,NM.SettingDcbFlags.ADVERTISE
, andNM.SettingDcbFlags.WILLING
.
- NM.SettingDcb.props.app_iscsi_priority¶
- Name:
app-iscsi-priority
- Type:
- Default Value:
-1
- Flags:
The highest User Priority (0 - 7) which iSCSI frames should use, or -1 for default priority. Only used when the
NM.SettingDcb
:app-iscsi-flags
property includes theNM.SettingDcbFlags.ENABLE
flag.
- NM.SettingDcb.props.priority_bandwidth¶
- Name:
priority-bandwidth
- Type:
- Default Value:
- Flags:
An array of 8 uint values, where the array index corresponds to the User Priority (0 - 7) and the value indicates the percentage of bandwidth of the priority’s assigned group that the priority may use. The sum of all percentages for priorities which belong to the same group must total 100 percents.
- NM.SettingDcb.props.priority_flow_control¶
- Name:
priority-flow-control
- Type:
- Default Value:
- Flags:
An array of 8 boolean values, where the array index corresponds to the User Priority (0 - 7) and the value indicates whether or not the corresponding priority should transmit priority pause.
- NM.SettingDcb.props.priority_flow_control_flags¶
- Name:
priority-flow-control-flags
- Type:
- Default Value:
- Flags:
Specifies the
NM.SettingDcbFlags
for DCB Priority Flow Control (PFC). Flags may be any combination ofNM.SettingDcbFlags.ENABLE
,NM.SettingDcbFlags.ADVERTISE
, andNM.SettingDcbFlags.WILLING
.
- NM.SettingDcb.props.priority_group_bandwidth¶
- Name:
priority-group-bandwidth
- Type:
- Default Value:
- Flags:
An array of 8 uint values, where the array index corresponds to the Priority Group ID (0 - 7) and the value indicates the percentage of link bandwidth allocated to that group. Allowed values are 0 - 100, and the sum of all values must total 100 percents.
- NM.SettingDcb.props.priority_group_flags¶
- Name:
priority-group-flags
- Type:
- Default Value:
- Flags:
Specifies the
NM.SettingDcbFlags
for DCB Priority Groups. Flags may be any combination ofNM.SettingDcbFlags.ENABLE
,NM.SettingDcbFlags.ADVERTISE
, andNM.SettingDcbFlags.WILLING
.
- NM.SettingDcb.props.priority_group_id¶
- Name:
priority-group-id
- Type:
- Default Value:
- Flags:
An array of 8 uint values, where the array index corresponds to the User Priority (0 - 7) and the value indicates the Priority Group ID. Allowed Priority Group ID values are 0 - 7 or 15 for the unrestricted group.
- NM.SettingDcb.props.priority_strict_bandwidth¶
- Name:
priority-strict-bandwidth
- Type:
- Default Value:
- Flags:
An array of 8 boolean values, where the array index corresponds to the User Priority (0 - 7) and the value indicates whether or not the priority may use all of the bandwidth allocated to its assigned group.
- NM.SettingDcb.props.priority_traffic_class¶
- Name:
priority-traffic-class
- Type:
- Default Value:
- Flags:
An array of 8 uint values, where the array index corresponds to the User Priority (0 - 7) and the value indicates the traffic class (0 - 7) to which the priority is mapped.