Commit a71dd634 authored by Francis Dupont's avatar Francis Dupont

[65-libyang-class] Addressed class comments

parent 8354fff5
......@@ -41,7 +41,7 @@ public:
TEST_F(TranslatorClassesTest, getEmpty) {
// 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));
......@@ -69,7 +69,7 @@ TEST_F(TranslatorClassesTest, get) {
expected->set("test", Element::create(string("not member('ALL')")));
// 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));
......@@ -110,7 +110,7 @@ TEST_F(TranslatorClassesTest, set) {
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));
EXPECT_NO_THROW(t_obj_->setClasses(xpath, classes));
......@@ -160,7 +160,6 @@ protected:
/// @brief setClasses for kea-dhcp[46].
/// @param xpath The xpath of classes.
/// @param elem The JSON element.
/// @throw BadValue on client class without name.
......@@ -56,6 +56,18 @@ Note pools show two shortcomings in IETF models:
- 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
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment