diff options
Diffstat (limited to 'src/lib/yang/translator_database.cc')
-rw-r--r-- | src/lib/yang/translator_database.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/yang/translator_database.cc b/src/lib/yang/translator_database.cc index b12bec4280..3527a79fba 100644 --- a/src/lib/yang/translator_database.cc +++ b/src/lib/yang/translator_database.cc @@ -123,6 +123,10 @@ TranslatorDatabase::getDatabaseKea(const string& xpath) { if (serial_consistency) { result->set("serial-consistency", serial_consistency); } + ConstElementPtr max_row_errors = getItem(xpath + "/max-row-errors"); + if (max_row_errors) { + result->set("max-row-errors", max_row_errors); + } ConstElementPtr context = getItem(xpath + "/user-context"); if (context) { result->set("user-context", Element::fromJSON(context->stringValue())); @@ -237,6 +241,10 @@ TranslatorDatabase::setDatabaseKea(const string& xpath, if (serial_consistency) { setItem(xpath + "/serial-consistency", serial_consistency, SR_STRING_T); } + ConstElementPtr max_row_errors = elem->get("max-row-errors"); + if (max_row_errors) { + setItem(xpath + "/max-row-errors", max_row_errors, SR_UINT32_T); + } ConstElementPtr context = Adaptor::getContext(elem); if (context) { setItem(xpath + "/user-context", Element::create(context->str()), |