ASSERT_TRUE(status);
checkResult(status, 0);
- // We should have one option available.
+ // We should have one option available.
OptionContainerPtr options =
CfgMgr::instance().getStagingCfg()->getCfgOption()->getAll(DHCP6_OPTION_SPACE);
ASSERT_TRUE(options);
// Add sub-option if there isn't one added already, or
// if encapsulating space is a multiple exception.
- OptionPtr existing = option->getOption(encap_opt.option_->getType());
- if (multiple_encapsulating |
+ if (multiple_encapsulating ||
!option->getOption(encap_opt.option_->getType())) {
option->addOption(encap_opt.option_);
}
return (encapsulated_);
}
- /// @brief Option spaces which can encapsulate mutiple sub-options
+ /// @brief Option spaces which can encapsulate multiple sub-options
/// of the same type.
static std::set<std::string> multiple_encapsulating_spaces_;
}
}
-// This test verifies that multiple encapsulating spaces are supported,
+// This test verifies that multiple encapsulating spaces are supported.
TEST_F(CfgOptionTest, multipleEncapsulatingSpaces) {
CfgOption cfg;