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:
parent
bdd84e82e5
commit
3f94f03389
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user