NMSettingTeam

NMSettingTeam — Describes connection properties for teams

Functions

NMTeamLinkWatcher * nm_team_link_watcher_new_ethtool ()
NMTeamLinkWatcher * nm_team_link_watcher_new_nsna_ping ()
NMTeamLinkWatcher * nm_team_link_watcher_new_arp_ping ()
NMTeamLinkWatcher * nm_team_link_watcher_new_arp_ping2 ()
void nm_team_link_watcher_ref ()
void nm_team_link_watcher_unref ()
gboolean nm_team_link_watcher_equal ()
NMTeamLinkWatcher * nm_team_link_watcher_dup ()
const char * nm_team_link_watcher_get_name ()
int nm_team_link_watcher_get_delay_up ()
int nm_team_link_watcher_get_delay_down ()
int nm_team_link_watcher_get_init_wait ()
int nm_team_link_watcher_get_interval ()
int nm_team_link_watcher_get_missed_max ()
const char * nm_team_link_watcher_get_target_host ()
const char * nm_team_link_watcher_get_source_host ()
NMTeamLinkWatcherArpPingFlags nm_team_link_watcher_get_flags ()
int nm_team_link_watcher_get_vlanid ()
NMSetting * nm_setting_team_new ()
const char * nm_setting_team_get_config ()
int nm_setting_team_get_notify_peers_count ()
int nm_setting_team_get_notify_peers_interval ()
int nm_setting_team_get_mcast_rejoin_count ()
int nm_setting_team_get_mcast_rejoin_interval ()
const char * nm_setting_team_get_runner ()
const char * nm_setting_team_get_runner_hwaddr_policy ()
const char * nm_setting_team_get_runner_tx_balancer ()
int nm_setting_team_get_runner_tx_balancer_interval ()
gboolean nm_setting_team_get_runner_active ()
gboolean nm_setting_team_get_runner_fast_rate ()
int nm_setting_team_get_runner_sys_prio ()
int nm_setting_team_get_runner_min_ports ()
const char * nm_setting_team_get_runner_agg_select_policy ()
gboolean nm_setting_team_remove_runner_tx_hash_by_value ()
guint nm_setting_team_get_num_runner_tx_hash ()
const char * nm_setting_team_get_runner_tx_hash ()
void nm_setting_team_remove_runner_tx_hash ()
gboolean nm_setting_team_add_runner_tx_hash ()
guint nm_setting_team_get_num_link_watchers ()
NMTeamLinkWatcher * nm_setting_team_get_link_watcher ()
gboolean nm_setting_team_add_link_watcher ()
void nm_setting_team_remove_link_watcher ()
gboolean nm_setting_team_remove_link_watcher_by_value ()
void nm_setting_team_clear_link_watchers ()

Properties

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

Types and Values

enum NMTeamLinkWatcherArpPingFlags
#define NM_TEAM_LINK_WATCHER_ETHTOOL
#define NM_TEAM_LINK_WATCHER_ARP_PING
#define NM_TEAM_LINK_WATCHER_NSNA_PING
#define NM_SETTING_TEAM_SETTING_NAME
#define NM_SETTING_TEAM_CONFIG
#define NM_SETTING_TEAM_NOTIFY_PEERS_COUNT
#define NM_SETTING_TEAM_NOTIFY_PEERS_INTERVAL
#define NM_SETTING_TEAM_MCAST_REJOIN_COUNT
#define NM_SETTING_TEAM_MCAST_REJOIN_INTERVAL
#define NM_SETTING_TEAM_RUNNER
#define NM_SETTING_TEAM_RUNNER_HWADDR_POLICY
#define NM_SETTING_TEAM_RUNNER_TX_HASH
#define NM_SETTING_TEAM_RUNNER_TX_BALANCER
#define NM_SETTING_TEAM_RUNNER_TX_BALANCER_INTERVAL
#define NM_SETTING_TEAM_RUNNER_ACTIVE
#define NM_SETTING_TEAM_RUNNER_FAST_RATE
#define NM_SETTING_TEAM_RUNNER_SYS_PRIO
#define NM_SETTING_TEAM_RUNNER_MIN_PORTS
#define NM_SETTING_TEAM_RUNNER_AGG_SELECT_POLICY
#define NM_SETTING_TEAM_LINK_WATCHERS
#define NM_SETTING_TEAM_RUNNER_BROADCAST
#define NM_SETTING_TEAM_RUNNER_ROUNDROBIN
#define NM_SETTING_TEAM_RUNNER_RANDOM
#define NM_SETTING_TEAM_RUNNER_ACTIVEBACKUP
#define NM_SETTING_TEAM_RUNNER_LOADBALANCE
#define NM_SETTING_TEAM_RUNNER_LACP
#define NM_SETTING_TEAM_RUNNER_HWADDR_POLICY_SAME_ALL
#define NM_SETTING_TEAM_RUNNER_HWADDR_POLICY_BY_ACTIVE
#define NM_SETTING_TEAM_RUNNER_HWADDR_POLICY_ONLY_ACTIVE
#define NM_SETTING_TEAM_RUNNER_AGG_SELECT_POLICY_LACP_PRIO
#define NM_SETTING_TEAM_RUNNER_AGG_SELECT_POLICY_LACP_PRIO_STABLE
#define NM_SETTING_TEAM_RUNNER_AGG_SELECT_POLICY_BANDWIDTH
#define NM_SETTING_TEAM_RUNNER_AGG_SELECT_POLICY_COUNT
#define NM_SETTING_TEAM_RUNNER_AGG_SELECT_POLICY_PORT_CONFIG
#define NM_SETTING_TEAM_NOTIFY_PEERS_COUNT_ACTIVEBACKUP_DEFAULT
#define NM_SETTING_TEAM_NOTIFY_MCAST_COUNT_ACTIVEBACKUP_DEFAULT
#define NM_SETTING_TEAM_RUNNER_DEFAULT
#define NM_SETTING_TEAM_RUNNER_HWADDR_POLICY_DEFAULT
#define NM_SETTING_TEAM_RUNNER_TX_BALANCER_INTERVAL_DEFAULT
#define NM_SETTING_TEAM_RUNNER_SYS_PRIO_DEFAULT
#define NM_SETTING_TEAM_RUNNER_AGG_SELECT_POLICY_DEFAULT
  NMSettingTeam

Object Hierarchy

    GBoxed
    ╰── NMTeamLinkWatcher
    GFlags
    ╰── NMTeamLinkWatcherArpPingFlags
    GObject
    ╰── NMSetting
        ╰── NMSettingTeam

Description

The NMSettingTeam object is a NMSetting subclass that describes properties necessary for team connections.

Functions

nm_team_link_watcher_new_ethtool ()

NMTeamLinkWatcher *
nm_team_link_watcher_new_ethtool (int delay_up,
                                  int delay_down,
                                  GError **error);

Creates a new ethtool NMTeamLinkWatcher object

Parameters

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

 

Returns

the new NMTeamLinkWatcher object.

[transfer full]

Since: 1.12


nm_team_link_watcher_new_nsna_ping ()

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

Parameters

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]

Returns

the new NMTeamLinkWatcher object, or NULL on error.

[transfer full]

Since: 1.12


nm_team_link_watcher_new_arp_ping ()

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

Parameters

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]

Returns

the new NMTeamLinkWatcher object, or NULL on error.

[transfer full]

Since: 1.12


nm_team_link_watcher_new_arp_ping2 ()

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

Parameters

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]

Returns

the new NMTeamLinkWatcher object, or NULL on error.

[transfer full]

Since: 1.16


nm_team_link_watcher_ref ()

void
nm_team_link_watcher_ref (NMTeamLinkWatcher *watcher);

Increases the reference count of the object.

Parameters

watcher

the NMTeamLinkWatcher

 

Since: 1.12


nm_team_link_watcher_unref ()

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.

Parameters

watcher

the NMTeamLinkWatcher

 

Since: 1.12