mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-06 09:04:55 +00:00
cli: get team defaults from setting header files
this allows centralizing default values definition and allows quicker and safer update of default values.
This commit is contained in:
parent
929f36c56f
commit
c6448f724b
|
@ -6625,7 +6625,7 @@ static const NMMetaPropertyInfo *const property_infos_TEAM[] = {
|
|||
.property_typ_data = DEFINE_PROPERTY_TYP_DATA_SUBTYPE (gobject_int,
|
||||
.value_infos = INT_VALUE_INFOS (
|
||||
{
|
||||
.value = 50,
|
||||
.value = NM_SETTING_TEAM_RUNNER_TX_BALANCER_INTERVAL_DEFAULT,
|
||||
.nick = "default",
|
||||
}
|
||||
),
|
||||
|
@ -6642,7 +6642,7 @@ static const NMMetaPropertyInfo *const property_infos_TEAM[] = {
|
|||
.property_typ_data = DEFINE_PROPERTY_TYP_DATA_SUBTYPE (gobject_int,
|
||||
.value_infos = INT_VALUE_INFOS (
|
||||
{
|
||||
.value = 255,
|
||||
.value = NM_SETTING_TEAM_RUNNER_SYS_PRIO_DEFAULT,
|
||||
.nick = "default",
|
||||
}
|
||||
),
|
||||
|
@ -6698,7 +6698,7 @@ static const NMMetaPropertyInfo *const property_infos_TEAM_PORT[] = {
|
|||
.property_typ_data = DEFINE_PROPERTY_TYP_DATA_SUBTYPE (gobject_int,
|
||||
.value_infos = INT_VALUE_INFOS (
|
||||
{
|
||||
.value = -1,
|
||||
.value = NM_SETTING_TEAM_PORT_QUEUE_ID_DEFAULT,
|
||||
.nick = "default",
|
||||
}
|
||||
),
|
||||
|
@ -6723,7 +6723,7 @@ static const NMMetaPropertyInfo *const property_infos_TEAM_PORT[] = {
|
|||
.property_typ_data = DEFINE_PROPERTY_TYP_DATA_SUBTYPE (gobject_int,
|
||||
.value_infos = INT_VALUE_INFOS (
|
||||
{
|
||||
.value = 255,
|
||||
.value = NM_SETTING_TEAM_PORT_LACP_PRIO_DEFAULT,
|
||||
.nick = "default",
|
||||
}
|
||||
),
|
||||
|
|
|
@ -5171,9 +5171,9 @@ _json_team_normalize_defaults (json_t *json, gboolean reset)
|
|||
_json_delete_object_on_string_match (json, "runner", "hwaddr_policy", NULL,
|
||||
NM_SETTING_TEAM_RUNNER_HWADDR_POLICY_DEFAULT);
|
||||
} else if (nm_streq (runner, NM_SETTING_TEAM_RUNNER_LACP)) {
|
||||
runner_tx_balancer_interval = 50;
|
||||
runner_tx_balancer_interval = NM_SETTING_TEAM_RUNNER_TX_BALANCER_INTERVAL_DEFAULT;
|
||||
runner_active = TRUE;
|
||||
runner_sys_prio = 255;
|
||||
runner_sys_prio = NM_SETTING_TEAM_RUNNER_SYS_PRIO_DEFAULT;
|
||||
runner_min_ports = 0;
|
||||
_json_delete_object_on_string_match (json, "runner", "agg_select_policy", NULL,
|
||||
NM_SETTING_TEAM_RUNNER_AGG_SELECT_POLICY_DEFAULT);
|
||||
|
|
Loading…
Reference in a new issue