mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-05 04:10:36 +01:00
cli: get team defaults from setting header files
this allows centralizing default values definition and allows quicker
and safer update of default values.
(cherry picked from commit c6448f724b)
This commit is contained in:
parent
3c60d63540
commit
f219090fdd
2 changed files with 6 additions and 6 deletions
|
|
@ -6623,7 +6623,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",
|
||||
}
|
||||
),
|
||||
|
|
@ -6640,7 +6640,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",
|
||||
}
|
||||
),
|
||||
|
|
@ -6696,7 +6696,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",
|
||||
}
|
||||
),
|
||||
|
|
@ -6721,7 +6721,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",
|
||||
}
|
||||
),
|
||||
|
|
|
|||
|
|
@ -5197,9 +5197,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…
Add table
Reference in a new issue