NM.SettingTeamPort¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
|||
r/w |
|||
r/w |
|||
r/w |
|||
r/w |
|||
r/w |
|||
r/w |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class NM.SettingTeamPort(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Team Port Settings
- classmethod new()¶
- Returns:
the new empty
NM.SettingTeamPort
object- Return type:
Creates a new
NM.SettingTeamPort
object with default values.
- add_link_watcher(link_watcher)¶
- Parameters:
link_watcher (
NM.TeamLinkWatcher
) – the link watcher to add- Returns:
True
if the link watcher is added;False
if an identical link watcher was already there.- Return type:
Appends a new link watcher to the setting.
New in version 1.12.
- clear_link_watchers()¶
Removes all configured link watchers.
New in version 1.12.
- get_config()¶
- Returns:
the
NM.SettingTeamPort
:config
property of the setting- Return type:
- get_lacp_key()¶
- Returns:
the
NM.SettingTeamPort
:lacp-key
property of the setting- Return type:
New in version 1.12.
- get_lacp_prio()¶
- Returns:
the
NM.SettingTeamPort
:lacp-prio
property of the setting- Return type:
New in version 1.12.
- get_link_watcher(idx)¶
- Parameters:
idx (
int
) – index number of the link watcher to return- Returns:
the link watcher at index idx.
- Return type:
New in version 1.12.
- get_num_link_watchers()¶
- Returns:
the number of configured link watchers
- Return type:
New in version 1.12.
- get_prio()¶
- Returns:
the
NM.SettingTeamPort
:prio
property of the setting- Return type:
New in version 1.12.
- get_queue_id()¶
- Returns:
the #NMSettingTeamPort:queue_id property of the setting
- Return type:
New in version 1.12.
- get_sticky()¶
- Returns:
the
NM.SettingTeamPort
:sticky
property of the setting- Return type:
New in version 1.12.
- remove_link_watcher(idx)¶
- Parameters:
idx (
int
) – index number of the link watcher to remove
Removes the link watcher at index #idx.
New in version 1.12.
- remove_link_watcher_by_value(link_watcher)¶
- Parameters:
link_watcher (
NM.TeamLinkWatcher
) – the link watcher to remove- Returns:
True
if the link watcher was found and removed,False
otherwise.- Return type:
Removes the link watcher entry matching link_watcher.
New in version 1.12.
Property Details¶
- NM.SettingTeamPort.props.config¶
-
The JSON configuration for the team port. The property should contain raw JSON configuration data suitable for teamd, because the value is passed directly to teamd. If not specified, the default configuration is used. See man teamd.conf for the format details.
- NM.SettingTeamPort.props.lacp_key¶
-
Corresponds to the teamd ports.PORTIFNAME.lacp_key.
New in version 1.12.
- NM.SettingTeamPort.props.lacp_prio¶
-
Corresponds to the teamd ports.PORTIFNAME.lacp_prio.
New in version 1.12.
- NM.SettingTeamPort.props.link_watchers¶
- Name:
link-watchers
- Type:
- Default Value:
- Flags:
Link watchers configuration for the connection: each link watcher is defined by a dictionary, whose keys depend upon the selected link watcher. Available link watchers are ‘ethtool’, ‘nsna_ping’ and ‘arp_ping’ and it is specified in the dictionary with the key ‘name’. Available keys are: ethtool: ‘delay-up’, ‘delay-down’, ‘init-wait’; nsna_ping: ‘init-wait’, ‘interval’, ‘missed-max’, ‘target-host’; arp_ping: all the ones in nsna_ping and ‘source-host’, ‘validate-active’, ‘validate-inactive’, ‘send-always’. See teamd.conf man for more details.
New in version 1.12.
- NM.SettingTeamPort.props.prio¶
-
Corresponds to the teamd ports.PORTIFNAME.prio.
New in version 1.12.
- NM.SettingTeamPort.props.queue_id¶
-
Corresponds to the teamd ports.PORTIFNAME.queue_id. When set to -1 means the parameter is skipped from the json config.
New in version 1.12.