mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-30 13:37:55 +00:00
[4286] Updated CfgOptionDefTest.overrideStdOptionDef after option 65 added.
This commit is contained in:
@@ -210,12 +210,10 @@ TEST(CfgOptionDefTest, overrideStdOptionDef) {
|
|||||||
def.reset(new OptionDefinition("routers", DHO_ROUTERS, "uint32"));
|
def.reset(new OptionDefinition("routers", DHO_ROUTERS, "uint32"));
|
||||||
EXPECT_THROW(cfg.add(def, DHCP4_OPTION_SPACE), isc::BadValue);
|
EXPECT_THROW(cfg.add(def, DHCP4_OPTION_SPACE), isc::BadValue);
|
||||||
|
|
||||||
/// @todo There is no definition for the NIS Server Addr option in
|
/// There is no definition for the Access Network Domain Name Option
|
||||||
/// libdhcp++. Once it is implemented it should be not allowed to
|
/// (RFC5986, option code 213) in libdhcp++. Once it is implemented it
|
||||||
/// add a custom definition for it. At the moment, it should be ok
|
/// should be not allowed to add a custom definition for it.
|
||||||
/// to add a definition for this option (using configuration mechanism)
|
def.reset(new OptionDefinition("access-netwokr-domain-name", 213, "string"));
|
||||||
/// because we haven't implemented the one in libdhcp++.
|
|
||||||
def.reset(new OptionDefinition("nis-server-addr", 65, "uint16"));
|
|
||||||
EXPECT_NO_THROW(cfg.add(def, DHCP4_OPTION_SPACE));
|
EXPECT_NO_THROW(cfg.add(def, DHCP4_OPTION_SPACE));
|
||||||
|
|
||||||
// It is not allowed to override the definition of the option which
|
// It is not allowed to override the definition of the option which
|
||||||
|
Reference in New Issue
Block a user