|
@@ -72,6 +72,11 @@ const SimpleDefaults SimpleParser6::SUBNET6_DEFAULTS = {
|
|
{ "interface-id", Element::string, "" },
|
|
{ "interface-id", Element::string, "" },
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+/// @brief This table defines default values for interfaces for DHCPv6.
|
|
|
|
+const SimpleDefaults SimpleParser6::IFACE6_DEFAULTS = {
|
|
|
|
+ { "re-detect", Element::boolean, "true" }
|
|
|
|
+};
|
|
|
|
+
|
|
/// @brief List of parameters that can be inherited from the global to subnet6 scope.
|
|
/// @brief List of parameters that can be inherited from the global to subnet6 scope.
|
|
///
|
|
///
|
|
/// Some parameters may be defined on both global (directly in Dhcp6) and
|
|
/// Some parameters may be defined on both global (directly in Dhcp6) and
|
|
@@ -119,6 +124,13 @@ size_t SimpleParser6::setAllDefaults(isc::data::ElementPtr global) {
|
|
cnt += setListDefaults(subnets, SUBNET6_DEFAULTS);
|
|
cnt += setListDefaults(subnets, SUBNET6_DEFAULTS);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // Set the defaults for interfaces config
|
|
|
|
+ ConstElementPtr ifaces_cfg = global->get("interfaces-config");
|
|
|
|
+ if (ifaces_cfg) {
|
|
|
|
+ ElementPtr mutable_cfg = boost::const_pointer_cast<Element>(ifaces_cfg);
|
|
|
|
+ cnt += setDefaults(mutable_cfg, IFACE6_DEFAULTS);
|
|
|
|
+ }
|
|
|
|
+
|
|
return (cnt);
|
|
return (cnt);
|
|
}
|
|
}
|
|
|
|
|