Top |
char * | config | Read / Write |
GPtrArray * | link-watchers | Read / Write |
int | mcast-rejoin-count | Read / Write |
int | mcast-rejoin-interval | Read / Write |
int | notify-peers-count | Read / Write |
int | notify-peers-interval | Read / Write |
char * | runner | Read / Write |
gboolean | runner-active | Read / Write |
char * | runner-agg-select-policy | Read / Write |
gboolean | runner-fast-rate | Read / Write |
char * | runner-hwaddr-policy | Read / Write |
int | runner-min-ports | Read / Write |
int | runner-sys-prio | Read / Write |
char * | runner-tx-balancer | Read / Write |
int | runner-tx-balancer-interval | Read / Write |
GStrv | runner-tx-hash | Read / Write |
GBoxed ╰── NMTeamLinkWatcher GFlags ╰── NMTeamLinkWatcherArpPingFlags GObject ╰── NMSetting ╰── NMSettingTeam
The NMSettingTeam object is a NMSetting subclass that describes properties necessary for team connections.
NMTeamLinkWatcher * nm_team_link_watcher_new_ethtool (int delay_up
,int delay_down
,GError **error
);
Creates a new ethtool NMTeamLinkWatcher object
delay_up |
delay_up value |
|
delay_down |
delay_down value |
|
error |
this call never fails, so this var is not used but kept for format consistency with the link_watcher constructors of other type |
Since: 1.12
NMTeamLinkWatcher * nm_team_link_watcher_new_nsna_ping (int init_wait
,int interval
,int missed_max
,const char *target_host
,GError **error
);
Creates a new nsna_ping NMTeamLinkWatcher object
init_wait |
init_wait value |
|
interval |
interval value |
|
missed_max |
missed_max value |
|
target_host |
the host name or the ipv6 address that will be used as target address in the NS packet |
|
error |
location to store the error on failure. |
[out][allow-none] |
Since: 1.12
NMTeamLinkWatcher * nm_team_link_watcher_new_arp_ping (int init_wait
,int interval
,int missed_max
,const char *target_host
,const char *source_host
,NMTeamLinkWatcherArpPingFlags flags
,GError **error
);
Creates a new arp_ping NMTeamLinkWatcher object
init_wait |
init_wait value |
|
interval |
interval value |
|
missed_max |
missed_max value |
|
target_host |
the host name or the ip address that will be used as destination address in the arp request |
|
source_host |
the host name or the ip address that will be used as source address in the arp request |
|
flags |
the watcher NMTeamLinkWatcherArpPingFlags |
|
error |
location to store the error on failure. |
[out][allow-none] |
Since: 1.12
NMTeamLinkWatcher * nm_team_link_watcher_new_arp_ping2 (int init_wait
,int interval
,int missed_max
,int vlanid
,const char *target_host
,const char *source_host
,NMTeamLinkWatcherArpPingFlags flags
,GError **error
);
Creates a new arp_ping NMTeamLinkWatcher object
init_wait |
init_wait value |
|
interval |
interval value |
|
missed_max |
missed_max value |
|
vlanid |
vlanid value |
|
target_host |
the host name or the ip address that will be used as destination address in the arp request |
|
source_host |
the host name or the ip address that will be used as source address in the arp request |
|
flags |
the watcher NMTeamLinkWatcherArpPingFlags |
|
error |
location to store the error on failure. |
[out][allow-none] |
Since: 1.16
void
nm_team_link_watcher_ref (NMTeamLinkWatcher *watcher
);
Increases the reference count of the object.
Since: 1.12
void
nm_team_link_watcher_unref (NMTeamLinkWatcher *watcher
);
Decreases the reference count of the object. If the reference count reaches zero, the object will be destroyed.
Since: 1.12
gboolean nm_team_link_watcher_equal (const NMTeamLinkWatcher *watcher
,const NMTeamLinkWatcher *other
);
Determines if two NMTeamLinkWatcher objects contain the same values in all the properties.
Since: 1.12
NMTeamLinkWatcher *
nm_team_link_watcher_dup (const NMTeamLinkWatcher *watcher
);
Creates a copy of watcher
Since: 1.12
const char *
nm_team_link_watcher_get_name (const NMTeamLinkWatcher *watcher
);
Gets the name of the link watcher to be used.
Since: 1.12
int
nm_team_link_watcher_get_delay_up (const NMTeamLinkWatcher *watcher
);
Gets the delay_up interval (in milliseconds) that elapses between the link coming up and the runner being notified about it.
Since: 1.12
int
nm_team_link_watcher_get_delay_down (const NMTeamLinkWatcher *watcher
);
Gets the delay_down interval (in milliseconds) that elapses between the link going down and the runner being notified about it.
Since: 1.12
int
nm_team_link_watcher_get_init_wait (const NMTeamLinkWatcher *watcher
);
Gets the init_wait interval (in milliseconds) that the team slave should wait before sending the first packet to the target host.
Since: 1.12
int
nm_team_link_watcher_get_interval (const NMTeamLinkWatcher *watcher
);
Gets the interval (in milliseconds) that the team slave should wait between sending two check packets to the target host.
Since: 1.12
int
nm_team_link_watcher_get_missed_max (const NMTeamLinkWatcher *watcher
);
Gets the number of missed replies after which the link is considered down.
Since: 1.12
const char *
nm_team_link_watcher_get_target_host (const NMTeamLinkWatcher *watcher
);
Gets the host name/ip address to be used as destination for the link probing packets.
Since: 1.12
const char *
nm_team_link_watcher_get_source_host (const NMTeamLinkWatcher *watcher
);
Gets the ip address to be used as source for the link probing packets.
Since: 1.12
NMTeamLinkWatcherArpPingFlags
nm_team_link_watcher_get_flags (const NMTeamLinkWatcher *watcher
);
Gets the arp ping watcher flags.
Since: 1.12
int
nm_team_link_watcher_get_vlanid (const NMTeamLinkWatcher *watcher
);
Gets the VLAN tag ID to be used to outgoing link probes
Since: 1.16
NMSetting *
nm_setting_team_new (void
);
Creates a new NMSettingTeam object with default values.
int
nm_setting_team_get_notify_peers_count
(NMSettingTeam *setting
);
Since: 1.12
int
nm_setting_team_get_notify_peers_interval
(NMSettingTeam *setting
);
Since: 1.12
int
nm_setting_team_get_mcast_rejoin_count
(NMSettingTeam *setting
);
Since: 1.12
int
nm_setting_team_get_mcast_rejoin_interval
(NMSettingTeam *setting
);
Since: 1.12
const char *
nm_setting_team_get_runner (NMSettingTeam *setting
);
Since: 1.12
const char *
nm_setting_team_get_runner_hwaddr_policy
(NMSettingTeam *setting
);
Since: 1.12
const char *
nm_setting_team_get_runner_tx_balancer
(NMSettingTeam *setting
);
Since: 1.12
int
nm_setting_team_get_runner_tx_balancer_interval
(NMSettingTeam *setting
);
Since: 1.12
gboolean
nm_setting_team_get_runner_active (NMSettingTeam *setting
);
Since: 1.12
gboolean
nm_setting_team_get_runner_fast_rate (NMSettingTeam *setting
);
Since: 1.12
int
nm_setting_team_get_runner_sys_prio (NMSettingTeam *setting
);
Since: 1.12
int
nm_setting_team_get_runner_min_ports (NMSettingTeam *setting
);
Since: 1.12
const char *
nm_setting_team_get_runner_agg_select_policy
(NMSettingTeam *setting
);
Since: 1.12
gboolean nm_setting_team_remove_runner_tx_hash_by_value (NMSettingTeam *setting
,const char *txhash
);
Removes the txhash element txhash
Since: 1.12
guint
nm_setting_team_get_num_runner_tx_hash
(NMSettingTeam *setting
);
Since: 1.12
const char * nm_setting_team_get_runner_tx_hash (NMSettingTeam *setting
,guint idx
);
Since: 1.12
void nm_setting_team_remove_runner_tx_hash (NMSettingTeam *setting
,guint idx
);
Removes the txhash element at index idx
.
Since: 1.12
gboolean nm_setting_team_add_runner_tx_hash (NMSettingTeam *setting
,const char *txhash
);
Adds a new txhash element to the setting.
Since: 1.12
guint
nm_setting_team_get_num_link_watchers (NMSettingTeam *setting
);
Since: 1.12
NMTeamLinkWatcher * nm_setting_team_get_link_watcher (NMSettingTeam *setting
,guint idx
);
Since: 1.12
gboolean nm_setting_team_add_link_watcher (NMSettingTeam *setting
,NMTeamLinkWatcher *link_watcher
);
Appends a new link watcher to the setting.
Since: 1.12
void nm_setting_team_remove_link_watcher (NMSettingTeam *setting
,guint idx
);
Removes the link watcher at index idx.
Since: 1.12
gboolean nm_setting_team_remove_link_watcher_by_value (NMSettingTeam *setting
,NMTeamLinkWatcher *link_watcher
);
Removes the link watcher entry matching link_watcher.
Since: 1.12
void
nm_setting_team_clear_link_watchers (NMSettingTeam *setting
);
Removes all configured link watchers.
Since: 1.12
no one among the arp_ping link watcher boolean options ('validate_active', 'validate_inactive', 'send_always') is enabled (set to true). |
||
the arp_ping link watcher option 'validate_active' is enabled (set to true). |
||
the arp_ping link watcher option 'validate_inactive' is enabled (set to true). |
||
the arp_ping link watcher option 'send_always' is enabled (set to true). |
#define NM_SETTING_TEAM_NOTIFY_PEERS_INTERVAL "notify-peers-interval"
#define NM_SETTING_TEAM_MCAST_REJOIN_INTERVAL "mcast-rejoin-interval"
#define NM_SETTING_TEAM_RUNNER_HWADDR_POLICY "runner-hwaddr-policy"
#define NM_SETTING_TEAM_RUNNER_TX_BALANCER_INTERVAL "runner-tx-balancer-interval"
#define NM_SETTING_TEAM_RUNNER_AGG_SELECT_POLICY "runner-agg-select-policy"
#define NM_SETTING_TEAM_RUNNER_HWADDR_POLICY_SAME_ALL "same_all"
#define NM_SETTING_TEAM_RUNNER_HWADDR_POLICY_BY_ACTIVE "by_active"
#define NM_SETTING_TEAM_RUNNER_HWADDR_POLICY_ONLY_ACTIVE "only_active"
#define NM_SETTING_TEAM_RUNNER_AGG_SELECT_POLICY_LACP_PRIO "lacp_prio"
#define NM_SETTING_TEAM_RUNNER_AGG_SELECT_POLICY_LACP_PRIO_STABLE "lacp_prio_stable"
#define NM_SETTING_TEAM_RUNNER_AGG_SELECT_POLICY_BANDWIDTH "bandwidth"
#define NM_SETTING_TEAM_RUNNER_AGG_SELECT_POLICY_COUNT "count"
#define NM_SETTING_TEAM_RUNNER_AGG_SELECT_POLICY_PORT_CONFIG "port_config"
#define NM_SETTING_TEAM_NOTIFY_PEERS_COUNT_ACTIVEBACKUP_DEFAULT 1
#define NM_SETTING_TEAM_NOTIFY_MCAST_COUNT_ACTIVEBACKUP_DEFAULT 1
#define NM_SETTING_TEAM_RUNNER_DEFAULT NM_SETTING_TEAM_RUNNER_ROUNDROBIN
#define NM_SETTING_TEAM_RUNNER_HWADDR_POLICY_DEFAULT NM_SETTING_TEAM_RUNNER_HWADDR_POLICY_SAME_ALL
#define NM_SETTING_TEAM_RUNNER_TX_BALANCER_INTERVAL_DEFAULT 50
#define NM_SETTING_TEAM_RUNNER_AGG_SELECT_POLICY_DEFAULT
“config”
property “config” char *
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.
Owner: NMSettingTeam
Flags: Read / Write
Default value: NULL
“link-watchers”
property“link-watchers” GPtrArray *
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.
[type GPtrArray(NMTeamLinkWatcher)]
Owner: NMSettingTeam
Flags: Read / Write
Since: 1.12
“mcast-rejoin-count”
property “mcast-rejoin-count” int
Corresponds to the teamd mcast_rejoin.count.
Owner: NMSettingTeam
Flags: Read / Write
Default value: -1
Since: 1.12
“mcast-rejoin-interval”
property “mcast-rejoin-interval” int
Corresponds to the teamd mcast_rejoin.interval.
Owner: NMSettingTeam
Flags: Read / Write
Default value: -1
Since: 1.12
“notify-peers-count”
property “notify-peers-count” int
Corresponds to the teamd notify_peers.count.
Owner: NMSettingTeam
Flags: Read / Write
Default value: -1
Since: 1.12
“notify-peers-interval”
property “notify-peers-interval” int
Corresponds to the teamd notify_peers.interval.
Owner: NMSettingTeam
Flags: Read / Write
Default value: -1
Since: 1.12
“runner”
property “runner” char *
Corresponds to the teamd runner.name. Permitted values are: "roundrobin", "broadcast", "activebackup", "loadbalance", "lacp", "random".
Owner: NMSettingTeam
Flags: Read / Write
Default value: NULL
Since: 1.12
“runner-active”
property“runner-active” gboolean
Corresponds to the teamd runner.active.
Owner: NMSettingTeam
Flags: Read / Write
Default value: TRUE
Since: 1.12
“runner-agg-select-policy”
property “runner-agg-select-policy” char *
Corresponds to the teamd runner.agg_select_policy.
Owner: NMSettingTeam
Flags: Read / Write
Default value: NULL
Since: 1.12
“runner-fast-rate”
property“runner-fast-rate” gboolean
Corresponds to the teamd runner.fast_rate.
Owner: NMSettingTeam
Flags: Read / Write
Default value: FALSE
Since: 1.12
“runner-hwaddr-policy”
property “runner-hwaddr-policy” char *
Corresponds to the teamd runner.hwaddr_policy.
Owner: NMSettingTeam
Flags: Read / Write
Default value: NULL
Since: 1.12
“runner-min-ports”
property “runner-min-ports” int
Corresponds to the teamd runner.min_ports.
Owner: NMSettingTeam
Flags: Read / Write
Default value: -1
Since: 1.12
“runner-sys-prio”
property “runner-sys-prio” int
Corresponds to the teamd runner.sys_prio.
Owner: NMSettingTeam
Flags: Read / Write
Default value: -1
Since: 1.12
“runner-tx-balancer”
property “runner-tx-balancer” char *
Corresponds to the teamd runner.tx_balancer.name.
Owner: NMSettingTeam
Flags: Read / Write
Default value: NULL
Since: 1.12
“runner-tx-balancer-interval”
property “runner-tx-balancer-interval” int
Corresponds to the teamd runner.tx_balancer.interval.
Owner: NMSettingTeam
Flags: Read / Write
Default value: -1
Since: 1.12
“runner-tx-hash”
property“runner-tx-hash” GStrv
Corresponds to the teamd runner.tx_hash.
Owner: NMSettingTeam
Flags: Read / Write
Since: 1.12