Top |
#define | NM_SETTING_TEAM_PORT_SETTING_NAME |
#define | NM_SETTING_TEAM_PORT_CONFIG |
#define | NM_SETTING_TEAM_PORT_QUEUE_ID |
#define | NM_SETTING_TEAM_PORT_PRIO |
#define | NM_SETTING_TEAM_PORT_STICKY |
#define | NM_SETTING_TEAM_PORT_LACP_PRIO |
#define | NM_SETTING_TEAM_PORT_LACP_KEY |
#define | NM_SETTING_TEAM_PORT_LINK_WATCHERS |
#define | NM_SETTING_TEAM_PORT_QUEUE_ID_DEFAULT |
#define | NM_SETTING_TEAM_PORT_LACP_PRIO_DEFAULT |
NMSettingTeamPort |
The NMSettingTeamPort object is a NMSetting subclass that describes optional properties that apply to team ports.
NMSetting *
nm_setting_team_port_new (void
);
Creates a new NMSettingTeamPort object with default values.
const char *
nm_setting_team_port_get_config (NMSettingTeamPort *setting
);
int
nm_setting_team_port_get_queue_id (NMSettingTeamPort *setting
);
Since: 1.12
int
nm_setting_team_port_get_prio (NMSettingTeamPort *setting
);
Since: 1.12
gboolean
nm_setting_team_port_get_sticky (NMSettingTeamPort *setting
);
Since: 1.12
int
nm_setting_team_port_get_lacp_prio (NMSettingTeamPort *setting
);
Since: 1.12
int
nm_setting_team_port_get_lacp_key (NMSettingTeamPort *setting
);
Since: 1.12
guint
nm_setting_team_port_get_num_link_watchers
(NMSettingTeamPort *setting
);
Since: 1.12
NMTeamLinkWatcher * nm_setting_team_port_get_link_watcher (NMSettingTeamPort *setting
,guint idx
);
Since: 1.12
gboolean nm_setting_team_port_add_link_watcher (NMSettingTeamPort *setting
,NMTeamLinkWatcher *link_watcher
);
Appends a new link watcher to the setting.
Since: 1.12
void nm_setting_team_port_remove_link_watcher (NMSettingTeamPort *setting
,guint idx
);
Removes the link watcher at index idx.
Since: 1.12
gboolean nm_setting_team_port_remove_link_watcher_by_value (NMSettingTeamPort *setting
,NMTeamLinkWatcher *link_watcher
);
Removes the link watcher entry matching link_watcher.
Since: 1.12
void
nm_setting_team_port_clear_link_watchers
(NMSettingTeamPort *setting
);
Removes all configured link watchers.
Since: 1.12
“config”
property “config” char *
The JSON configuration for the team port. 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: NMSettingTeamPort
Flags: Read / Write
Default value: NULL
“lacp-key”
property “lacp-key” int
Corresponds to the teamd ports.PORTIFNAME.lacp_key.
Owner: NMSettingTeamPort
Flags: Read / Write
Default value: -1
Since: 1.12
“lacp-prio”
property “lacp-prio” int
Corresponds to the teamd ports.PORTIFNAME.lacp_prio.
Owner: NMSettingTeamPort
Flags: Read / Write
Default value: -1
Since: 1.12
“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: NMSettingTeamPort
Flags: Read / Write
Since: 1.12
“prio”
property “prio” int
Corresponds to the teamd ports.PORTIFNAME.prio.
Owner: NMSettingTeamPort
Flags: Read / Write
Default value: 0
Since: 1.12
“queue-id”
property “queue-id” int
Corresponds to the teamd ports.PORTIFNAME.queue_id. When set to -1 means the parameter is skipped from the json config.
Owner: NMSettingTeamPort
Flags: Read / Write
Default value: -1
Since: 1.12
“sticky”
property“sticky” gboolean
Corresponds to the teamd ports.PORTIFNAME.sticky.
Owner: NMSettingTeamPort
Flags: Read / Write
Default value: FALSE
Since: 1.12