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.SettingTeam
object- Return type:
Creates a new
NM.SettingTeam
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.
- add_runner_tx_hash(txhash)¶
- Parameters:
txhash (
str
) – the element to add to txhash- Returns:
True
if the txhash element was added;False
if the element was already knnown.- Return type:
Adds a new txhash element 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.SettingTeam
:config
property 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:
New in version 1.12.
- get_mcast_rejoin_count()¶
- Returns:
the #:obj:NM.SettingTeam
:mcast-rejoin-count
property of the setting- Return type:
New in version 1.12.
- get_mcast_rejoin_interval()¶
- Returns:
the #:obj:NM.SettingTeam
:mcast-rejoin-interval
property of the setting- Return type:
New in version 1.12.
- get_notify_peers_count()¶
- Returns:
the #:obj:NM.SettingTeam
:notify-peers-count
property of the setting- Return type:
New in version 1.12.
- get_notify_peers_interval()¶
- Returns:
the #:obj:NM.SettingTeam
:notify-peers-interval
property of the setting- 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_num_runner_tx_hash()¶
- Returns:
the number of elements in txhash
- Return type:
New in version 1.12.
- get_runner()¶
-
New in version 1.12.
- get_runner_active()¶
- Returns:
the ##NMSettingTeam:runner_active property of the setting
- Return type:
New in version 1.12.
- get_runner_agg_select_policy()¶
- Returns:
the #:obj:NM.SettingTeam
:runner-agg-select-policy
property of the setting- Return type:
New in version 1.12.
- get_runner_fast_rate()¶
- Returns:
the #:obj:NM.SettingTeam
:runner-fast-rate
property of the setting- Return type:
New in version 1.12.
- get_runner_hwaddr_policy()¶
- Returns:
the #:obj:NM.SettingTeam
:runner-hwaddr-policy
property of the setting- Return type:
New in version 1.12.
- get_runner_min_ports()¶
- Returns:
the #:obj:NM.SettingTeam
:runner-min-ports
property of the setting- Return type:
New in version 1.12.
- get_runner_sys_prio()¶
- Returns:
the #:obj:NM.SettingTeam
:runner-sys-prio
property of the setting- Return type:
New in version 1.12.
- get_runner_tx_balancer()¶
- Returns:
the #:obj:NM.SettingTeam
:runner-tx-balancer
property of the setting- Return type:
New in version 1.12.
- get_runner_tx_balancer_interval()¶
- Returns:
the ##NMSettingTeam:runner-tx-balancer_interval property of the setting
- Return type:
New 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:
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.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.
New in version 1.12.
- NM.SettingTeam.props.mcast_rejoin_count¶
-
Corresponds to the teamd mcast_rejoin.count.
New in version 1.12.
- NM.SettingTeam.props.mcast_rejoin_interval¶
-
Corresponds to the teamd mcast_rejoin.interval.
New in version 1.12.
- NM.SettingTeam.props.notify_peers_count¶
-
Corresponds to the teamd notify_peers.count.
New in version 1.12.
- NM.SettingTeam.props.notify_peers_interval¶
-
Corresponds to the teamd notify_peers.interval.
New in version 1.12.
- NM.SettingTeam.props.runner¶
-
Corresponds to the teamd runner.name. Permitted values are: “roundrobin”, “broadcast”, “activebackup”, “loadbalance”, “lacp”, “random”.
New in version 1.12.
- NM.SettingTeam.props.runner_active¶
-
Corresponds to the teamd runner.active.
New in version 1.12.
- NM.SettingTeam.props.runner_agg_select_policy¶
-
Corresponds to the teamd runner.agg_select_policy.
New in version 1.12.
- NM.SettingTeam.props.runner_fast_rate¶
-
Corresponds to the teamd runner.fast_rate.
New in version 1.12.
- NM.SettingTeam.props.runner_hwaddr_policy¶
-
Corresponds to the teamd runner.hwaddr_policy.
New in version 1.12.
- NM.SettingTeam.props.runner_min_ports¶
-
Corresponds to the teamd runner.min_ports.
New in version 1.12.
- NM.SettingTeam.props.runner_sys_prio¶
-
Corresponds to the teamd runner.sys_prio.
New in version 1.12.
- NM.SettingTeam.props.runner_tx_balancer¶
-
Corresponds to the teamd runner.tx_balancer.name.
New in version 1.12.
- NM.SettingTeam.props.runner_tx_balancer_interval¶
-
Corresponds to the teamd runner.tx_balancer.interval.
New in version 1.12.