TEST_F(TranslatorClassesTest, getEmpty) {
useModel(KEA_DHCP4_SERVER);
- // Get the client class list and checks it is empty.
+ // Get the client class list and check if it is empty.
const string& xpath = "/kea-dhcp4-server:config/client-classes";
ConstElementPtr classes;
EXPECT_NO_THROW(classes = t_obj_->getClasses(xpath));
expected->set("test", Element::create(string("not member('ALL')")));
EXPECT_TRUE(expected->equals(*cclass));
- // Get the client class list and checks the client class is in it.
+ // Get the client class list and check if the client class is in it.
ConstElementPtr classes;
EXPECT_NO_THROW(classes = t_obj_->getClasses(xpath));
ASSERT_TRUE(classes);
ElementPtr cclass = Element::createMap();
cclass->set("name", Element::create(string("foo")));
cclass->set("test", Element::create(string("''==''")));
- cclass->set("only-if-required",Element::create(false));
+ cclass->set("only-if-required", Element::create(false));
classes->add(cclass);
EXPECT_NO_THROW(t_obj_->setClasses(xpath, classes));
/// @brief setClasses for kea-dhcp[46].
///
- ///
/// @param xpath The xpath of classes.
/// @param elem The JSON element.
/// @throw BadValue on client class without name.
- option sets make to track changes nearly impossible: the only easy
code is to translate the whole configuration.
- prefix and start - end forms of pool ranges are both mandatory.
+ (reported to authors' so should be fixed in the next version).
+
+All structure translators depend on @c isc::yang::TranslatorBasic and
+some of them depend on other structures, for instance
+@c isc::yang::TranslatorPool depends on
+@c isc::yang::TranslatorOptionDataList which itself as all list translators
+depends on the corresponding list item translator
+@c isc::yang::TranslatorOptionData. This multiple inheritance forms
+a graph with the basic and the configuration translators at the two ends.
+Multiple inheritance and its "diamond" issue are handled by C++ with
+the "virtual" inheritance: depending classes must be virtually inherited
+and explicitly constructed.
@section yangTranslatorSubnet Subnet translator