Top |
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 |
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 |
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 |
Since: 1.16
void
nm_team_link_watcher_ref (NMTeamLinkWatcher *watcher
);
Increases the reference count of the object.
Since 1.20, ref-counting of NMTeamLinkWatcher is thread-safe.
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.20, ref-counting of NMTeamLinkWatcher is thread-safe.
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 port 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 port 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). |
Since: 1.12
#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