network: warn about deprecated value in DHCP=

This commit is contained in:
Yu Watanabe
2019-02-20 06:12:53 +09:00
parent dffcf2b471
commit 41f62accad
+4
View File
@@ -813,6 +813,10 @@ int config_parse_dhcp(
log_syntax(unit, LOG_ERR, filename, line, 0, "Failed to parse DHCP option, ignoring: %s", rvalue);
return 0;
}
log_syntax(unit, LOG_WARNING, filename, line, 0,
"DHCP=%s is deprecated, please use DHCP=%s instead.",
rvalue, address_family_boolean_to_string(s));
}
*dhcp = s;