1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

network: Table= also accepts table name

(cherry picked from commit 29de4f7304)
This commit is contained in:
Yu Watanabe 2022-10-28 11:03:52 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent bdd84e82e5
commit 3f94f03389
2 changed files with 2 additions and 2 deletions

View File

@ -2298,7 +2298,7 @@ int config_parse_route_table(
r = manager_get_route_table_from_string(network->manager, rvalue, &n->table); r = manager_get_route_table_from_string(network->manager, rvalue, &n->table);
if (r < 0) { if (r < 0) {
log_syntax(unit, LOG_WARNING, filename, line, r, log_syntax(unit, LOG_WARNING, filename, line, r,
"Could not parse route table number \"%s\", ignoring assignment: %m", rvalue); "Could not parse route table \"%s\", ignoring assignment: %m", rvalue);
return 0; return 0;
} }

View File

@ -1250,7 +1250,7 @@ int config_parse_routing_policy_rule_table(
r = manager_get_route_table_from_string(network->manager, rvalue, &n->table); r = manager_get_route_table_from_string(network->manager, rvalue, &n->table);
if (r < 0) { if (r < 0) {
log_syntax(unit, LOG_WARNING, filename, line, r, log_syntax(unit, LOG_WARNING, filename, line, r,
"Could not parse RPDB rule route table number \"%s\", ignoring assignment: %m", rvalue); "Could not parse RPDB rule route table \"%s\", ignoring assignment: %m", rvalue);
return 0; return 0;
} }