NM.SettingTeam¶
- 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 |
|||
r/w |
|||
r/w |
|||
r/w |
|||
r/w |
|||
r/w |
|||
r/w |
|||
r/w |
|||
r/w |
|||
[ |
r/w |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class NM.SettingTeam(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Teaming Settings
- classmethod new()¶
- Returns:
the new empty
NM.SettingTeamobject- Return type:
Creates a new
NM.SettingTeamobject 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.
- add_runner_tx_hash(txhash)¶
- Parameters:
txhash (
str) – the element to add to txhash- Returns:
Trueif the txhash element was added;Falseif the element was already knnown.- Return type:
Adds a new txhash element 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.SettingTeam:configproperty of the setting- Return type:
- 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_mcast_rejoin_count()¶
- Returns:
the #:obj:NM.SettingTeam
:mcast-rejoin-countproperty of the setting- Return type:
Added in version 1.12.
- get_mcast_rejoin_interval()¶
- Returns:
the #:obj:NM.SettingTeam
:mcast-rejoin-intervalproperty of the setting- Return type:
Added in version 1.12.
- get_notify_peers_count()¶
- Returns:
the #:obj:NM.SettingTeam
:notify-peers-countproperty of the setting- Return type:
Added in version 1.12.
- get_notify_peers_interval()¶
- Returns:
the #:obj:NM.SettingTeam
:notify-peers-intervalproperty of the setting- 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_num_runner_tx_hash()¶
- Returns:
the number of elements in txhash
- Return type:
Added in version 1.12.
- get_runner()¶
-
Added in version 1.12.
- get_runner_active()¶
- Returns:
the ##NMSettingTeam:runner_active property of the setting
- Return type:
Added in version 1.12.
- get_runner_agg_select_policy()¶
- Returns:
the #:obj:NM.SettingTeam
:runner-agg-select-policyproperty of the setting- Return type:
Added in version 1.12.
- get_runner_fast_rate()¶
- Returns:
the #:obj:NM.SettingTeam
:runner-fast-rateproperty of the setting- Return type:
Added in version 1.12.
- get_runner_hwaddr_policy()¶
- Returns:
the #:obj:NM.SettingTeam
:runner-hwaddr-policyproperty of the setting- Return type:
Added in version 1.12.
- get_runner_min_ports()¶
- Returns:
the #:obj:NM.SettingTeam
:runner-min-portsproperty of the setting- Return type:
Added in version 1.12.
- get_runner_sys_prio()¶
- Returns:
the #:obj:NM.SettingTeam
:runner-sys-prioproperty of the setting- Return type:
Added in version 1.12.
- get_runner_tx_balancer()¶
- Returns:
the #:obj:NM.SettingTeam
:runner-tx-balancerproperty of the setting- Return type:
Added in version 1.12.
- get_runner_tx_balancer_interval()¶
- Returns:
the ##NMSettingTeam:runner-tx-balancer_interval property of the setting
- Return type:
Added in version 1.12.
- get_runner_tx_hash(idx)¶
- Parameters:
idx (
int) – index number of the txhash element to return- Returns:
the txhash element at index idx
- 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.SettingTeam.props.config¶
-
The JSON configuration for the team network interface. 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.SettingTeam.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.SettingTeam.props.mcast_rejoin_count¶
-
Corresponds to the teamd mcast_rejoin.count.
Added in version 1.12.
- NM.SettingTeam.props.mcast_rejoin_interval¶
-
Corresponds to the teamd mcast_rejoin.interval.
Added in version 1.12.
- NM.SettingTeam.props.notify_peers_count¶
-
Corresponds to the teamd notify_peers.count.
Added in version 1.12.
- NM.SettingTeam.props.notify_peers_interval¶
-
Corresponds to the teamd notify_peers.interval.
Added in version 1.12.
- NM.SettingTeam.props.runner¶
-
Corresponds to the teamd runner.name. Permitted values are: “roundrobin”, “broadcast”, “activebackup”, “loadbalance”, “lacp”, “random”.
Added in version 1.12.
- NM.SettingTeam.props.runner_active¶
-
Corresponds to the teamd runner.active.
Added in version 1.12.
- NM.SettingTeam.props.runner_agg_select_policy¶
-
Corresponds to the teamd runner.agg_select_policy.
Added in version 1.12.
- NM.SettingTeam.props.runner_fast_rate¶
-
Corresponds to the teamd runner.fast_rate.
Added in version 1.12.
- NM.SettingTeam.props.runner_hwaddr_policy¶
-
Corresponds to the teamd runner.hwaddr_policy.
Added in version 1.12.
- NM.SettingTeam.props.runner_min_ports¶
-
Corresponds to the teamd runner.min_ports.
Added in version 1.12.
- NM.SettingTeam.props.runner_sys_prio¶
-
Corresponds to the teamd runner.sys_prio.
Added in version 1.12.
- NM.SettingTeam.props.runner_tx_balancer¶
-
Corresponds to the teamd runner.tx_balancer.name.
Added in version 1.12.
- NM.SettingTeam.props.runner_tx_balancer_interval¶
-
Corresponds to the teamd runner.tx_balancer.interval.
Added in version 1.12.