Commit 3ac15510 authored by Marcin Siodelski's avatar Marcin Siodelski

[2545] Separate the build and commit phases for all parsers.

parent 61c303c8
This diff is collapsed.
......@@ -382,11 +382,12 @@ TEST_F(Dhcp6ParserTest, poolOutOfSubnet) {
EXPECT_NO_THROW(status = configureDhcp6Server(srv_, json));
// returned value must be 2 (values error)
// returned value must be 1 (values error)
// as the pool does not belong to that subnet
ASSERT_TRUE(status);
comment_ = parseAnswer(rcode_, status);
EXPECT_EQ(2, rcode_);
EXPECT_EQ(1, rcode_);
}
// Goal of this test is to verify if pools can be defined
......
......@@ -148,10 +148,10 @@ void Subnet6::addPool6(const Pool6Ptr& pool) {
if (!inRange(first_addr) || !inRange(last_addr)) {
isc_throw(BadValue, "Pool6 (" << first_addr.toText() << "-" << last_addr.toText()
<< " does not belong in this (" << prefix_ << "/" << prefix_len_
<< ") does not belong in this (" << prefix_.toText()
<< "/" << static_cast<int>(prefix_len_)
<< ") subnet6");
}
/// @todo: Check that pools do not overlap
pools_.push_back(pool);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment