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.SettingTeamPortobject- Return type:
Creates a new
NM.SettingTeamPortobject with default values.
- add_link_watcher(link_watcher)¶
- Parameters:
link_watcher (
NM.TeamLinkWatcher) – the link watcher to add- Returns:
Trueif the link watcher is added;Falseif an identical link watcher was already there.- Return type:
Appends a new link watcher to the setting.
Added in version 1.12.
- clear_link_watchers()¶
Removes all configured link watchers.
Added in version 1.12.
- get_config()¶
- Returns:
the
NM.SettingTeamPort:configproperty of the setting- Return type:
- get_lacp_key()¶
- Returns:
the
NM.SettingTeamPort:lacp-keyproperty of the setting- Return type:
Added in version 1.12.
- get_lacp_prio()¶
- Returns:
the
NM.SettingTeamPort:lacp-prioproperty of the setting- Return type:
Added 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:
Added in version 1.12.
- get_num_link_watchers()¶
- Returns:
the number of configured link watchers
- Return type:
Added in version 1.12.
- get_prio()¶
- Returns:
the
NM.SettingTeamPort:prioproperty of the setting- Return type:
Added in version 1.12.
- get_queue_id()¶
- Returns:
the #NMSettingTeamPort:queue_id property of the setting
- Return type:
Added in version 1.12.
- get_sticky()¶
- Returns:
the
NM.SettingTeamPort:stickyproperty of the setting- Return type:
Added 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.
Added in version 1.12.
- remove_link_watcher_by_value(link_watcher)¶
- Parameters:
link_watcher (
NM.TeamLinkWatcher) – the link watcher to remove- Returns:
Trueif the link watcher was found and removed,Falseotherwise.- Return type:
Removes the link watcher entry matching link_watcher.
Added 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.
Added in version 1.12.
- NM.SettingTeamPort.props.lacp_prio¶
-
Corresponds to the teamd ports.PORTIFNAME.lacp_prio.
Added 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.
Added in version 1.12.
- NM.SettingTeamPort.props.prio¶
-
Corresponds to the teamd ports.PORTIFNAME.prio.
Added 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.
Added in version 1.12.