// If this is v6, also sanitize pd-pools.
if (space == DHCP6_SPACE) {
- ConstElementPtr pools = subnet->get("pd-pools");
- if (pools) {
- if (!pools->empty()) {
- sanitizeOptionPools(pools, space, codes);
+ ConstElementPtr pd_pools = subnet->get("pd-pools");
+ if (pd_pools) {
+ if (!pd_pools->empty()) {
+ sanitizeOptionPools(pd_pools, space, codes);
} else {
subnet->remove("pd-pools");
}
if (next) {
result->set("next-server", next);
}
- ConstElementPtr hostname = getItem(xpath + "/server-hostname");
- if (hostname) {
- result->set("server-hostname", hostname);
+ ConstElementPtr server_hostname = getItem(xpath + "/server-hostname");
+ if (server_hostname) {
+ result->set("server-hostname", server_hostname);
}
ConstElementPtr boot = getItem(xpath + "/boot-file-name");
if (boot) {
if (next) {
setItem(xpath + "/next-server", next, SR_STRING_T);
}
- ConstElementPtr hostname = elem->get("server-hostname");
- if (hostname) {
- setItem(xpath + "/server-hostname", hostname, SR_STRING_T);
+ ConstElementPtr server_hostname = elem->get("server-hostname");
+ if (server_hostname) {
+ setItem(xpath + "/server-hostname", server_hostname, SR_STRING_T);
}
ConstElementPtr boot = elem->get("boot-file-name");
if (boot) {