mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-02 15:05:16 +00:00
[fdunparse2] Rebased, still reservations to do
This commit is contained in:
committed by
Tomek Mrugalski
parent
c5ceebc63c
commit
0beffc6e25
@@ -341,24 +341,9 @@ public:
|
||||
cfg->setDeclinePeriod(probation_period);
|
||||
|
||||
// Set the DHCPv4-over-DHCPv6 interserver port.
|
||||
// @todo Change for uint16_t
|
||||
uint32_t dhcp4o6_port = getUint32(global, "dhcp4o6-port");
|
||||
uint16_t dhcp4o6_port = getUint16(global, "dhcp4o6-port");
|
||||
cfg->setDhcp4o6Port(dhcp4o6_port);
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
/// @brief Returns a value converted to uint32_t
|
||||
///
|
||||
/// Instantiation of getIntType() to uint32_t
|
||||
///
|
||||
/// @param scope specified parameter will be extracted from this scope
|
||||
/// @param name name of the parameter
|
||||
/// @return an uint32_t value
|
||||
uint32_t getUint32(isc::data::ConstElementPtr scope,
|
||||
const std::string& name) {
|
||||
return (getIntType<uint32_t>(scope, name));
|
||||
}
|
||||
};
|
||||
|
||||
} // anonymous namespace
|
||||
|
Reference in New Issue
Block a user