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()));
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()),
/// "tcp-nodelay": <TCP nodelay flag>,
/// "consistency": <consistency level>,
/// "serial-consistency": <serial consistency level>,
+/// "max-row-errors": <maximum row errors>,
/// "user-context": { <json map> },
/// "comment": <comment>
/// }
/// +--rw tcp-nodelay? boolean
/// +--rw consistency? string
/// +--rw serial-consistency? string
+/// +--rw max-row-errors? uint32
/// +--rw user-context? string
/// @endcode
///
-// Copyright (C) 2018 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2018-2019 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
if (flush) {
result->set("flush", flush);
}
+ ConstElementPtr pattern = getItem(xpath + "/pattern");
+ if (pattern) {
+ result->set("pattern", pattern);
+ }
return (result);
}
setItem(xpath + "/flush", flush, SR_BOOL_T);
created = true;
}
+ ConstElementPtr pattern = elem->get("pattern");
+ if (pattern) {
+ setItem(xpath + "/pattern", pattern, SR_STRING_T);
+ created = true;
+ }
// There is no mandatory fields outside the key so force creation.
if (!created) {
ConstElementPtr list = Element::createList();
/// "output": <output, e.g. log file name>,
/// "maxver": <maximum file version>,
/// "maxsize": <maxium file size>,
-/// "flush": <flush flag>
+/// "flush": <flush flag>,
+/// "pattern": <custom layout>
/// }
/// @endcode
///
/// | +--rw maxver? uint32
/// | +--rw maxsize? uint32
/// | +--rw flush? boolean
+/// | +--rw pattern? string
/// +--rw debuglevel? uint8
/// +--rw severity? enumeration
/// +--rw user-context? string
{ "ietf-dhcpv6-types", "2018-09-04" },
{ "ietf-dhcpv6-options", "2018-09-04" },
{ "ietf-dhcpv6-server", "2018-09-04" },
- { "kea-types", "2019-08-09" },
- { "kea-dhcp-types", "2019-08-09" },
- { "kea-dhcp4-server", "2019-08-09" },
- { "kea-dhcp6-server", "2019-08-09" },
- { "kea-ctrl-agent", "2019-08-09" },
- { "kea-dhcp-ddns", "2019-08-09" }
+ { "kea-types", "2019-08-12" },
+ { "kea-dhcp-types", "2019-08-12" },
+ { "kea-dhcp4-server", "2019-08-12" },
+ { "kea-dhcp6-server", "2019-08-12" },
+ { "kea-ctrl-agent", "2019-08-12" },
+ { "kea-dhcp-ddns", "2019-08-12" }
};
}; // end of namespace isc::yang
yangmodules_list += ietf-dhcpv6-types@2018-09-04.yang
yangmodules_list += ietf-inet-types@2013-07-15.yang
yangmodules_list += ietf-yang-types@2013-07-15.yang
-yangmodules_list += kea-ctrl-agent@2019-08-09.yang
-yangmodules_list += kea-dhcp-ddns@2019-08-09.yang
-yangmodules_list += kea-dhcp-types@2019-08-09.yang
-yangmodules_list += kea-dhcp4-server@2019-08-09.yang
-yangmodules_list += kea-dhcp6-server@2019-08-09.yang
-yangmodules_list += kea-types@2019-08-09.yang
+yangmodules_list += kea-ctrl-agent@2019-08-12.yang
+yangmodules_list += kea-dhcp-ddns@2019-08-12.yang
+yangmodules_list += kea-dhcp-types@2019-08-12.yang
+yangmodules_list += kea-dhcp4-server@2019-08-12.yang
+yangmodules_list += kea-dhcp6-server@2019-08-12.yang
+yangmodules_list += kea-types@2019-08-12.yang
yangmodules_list += keatest-module@2018-11-20.yang
if HAVE_SYSREPO
+++ /dev/null
-e29c0b34abc0a747e258a30a636b2b53b41bdaaecfc199801221acbddc303ce4
--- /dev/null
+5d11568b445edc65a4783f53fe5e8571af9a79b759272d4a3e4bfba994f71087
+++ /dev/null
-8aef84678c3520ed4bb4025c5be2053ced2b58bf4d47b21a3e2bf35c40c1e9b9
--- /dev/null
+230145eb977108912d0015b8fb0d77bd4f53df0f4dfc317329ea5892569a7ba8
+++ /dev/null
-d9a216058f557cb379da3022f74fee56fbd1fb60828e8c5791fbbf8b5ed9cb57
--- /dev/null
+96c6a37dc93701ddd5a41ab0196fdbefeafba8c2d2a0503a05f34dcfd9accc3a
+++ /dev/null
-d405e7acd13d6ac6f8acc3192e3462b9c550bd90ea73506a27bb133f91667edb
--- /dev/null
+23762bc4dbd25cbd49b8c5e9c27c0eb4a627327b26d1a339ed0022d9708dc8c8
+++ /dev/null
-e73af99c9b7e6bb865bc9b3df4f04ae3de5d472c8bba8dbc1b9bbda90e1383b1
--- /dev/null
+cae7d4516cb6485c76ebce01dcfdb846f4b7470d932615df7e1f2eae8fa9d4f7
+++ /dev/null
-04a8d8a75027d109ae85fd6bea368d15056dc4a64fb75cb4da9be62c1dca1d98
--- /dev/null
+a2c7883852f3649b8d1df213f19a0d007d1652a8bc1b7262d98095905e1ae1e9
}
import kea-types {
prefix kea;
- revision-date 2019-08-09;
+ revision-date 2019-08-12;
}
organization "Internet Systems Consortium";
description "This model defines a YANG data model that can be
used to configure and manage a Kea control agent.";
- revision 2019-08-09 {
+ revision 2019-08-12 {
description "Initial revision";
reference "";
}
}
import kea-types {
prefix kea;
- revision-date 2019-08-09;
+ revision-date 2019-08-12;
}
organization "Internet Systems Consortium";
description "This model defines a YANG data model that can be
used to configure and manage a Kea DHCP-DDNS server.";
- revision 2019-08-09 {
+ revision 2019-08-12 {
description "Initial revision";
reference "";
}
}
import kea-types {
prefix kea;
- revision-date 2019-08-09;
+ revision-date 2019-08-12;
}
organization "Internet Systems Consortium";
contact "kea-dev@lists.isc.org";
description "This file defines some commonly used Kea DHCP types and
groupings.";
- revision 2019-08-09 {
+ revision 2019-08-12 {
description "Initial revision";
reference "";
}
type string;
description "Serial consistency level.";
}
+ leaf max-row-errors {
+ type uint32;
+ description "Maximum row errors (0 means unlimited).";
+ }
uses kea:user-context {
refine user-context {
description "Database user context. Arbitrary JSON data can be
}
import kea-types {
prefix kea;
- revision-date 2019-08-09;
+ revision-date 2019-08-12;
}
import kea-dhcp-types {
prefix dhcp;
- revision-date 2019-08-09;
+ revision-date 2019-08-12;
}
organization "Internet Systems Consortium";
description "This model defines a YANG data model that can be
used to configure and manage a Kea DHCPv4 server.";
- revision 2019-08-09 {
+ revision 2019-08-12 {
description "Initial revision";
reference "";
}
}
import kea-types {
prefix kea;
- revision-date 2019-08-09;
+ revision-date 2019-08-12;
}
import kea-dhcp-types {
prefix dhcp;
- revision-date 2019-08-09;
+ revision-date 2019-08-12;
}
organization "Internet Systems Consortium";
description "This model defines a YANG data model that can be
used to configure and manage a Kea DHCPv6 server.";
- revision 2019-08-09 {
+ revision 2019-08-12 {
description "Initial revision";
reference "";
}
contact "kea-dev@lists.isc.org";
description "This file defines some commonly used Kea types and groupings.";
- revision 2019-08-09 {
+ revision 2019-08-12 {
description "Initial revision";
reference "";
}
}
description "Maximum version to keep a rotated output file.";
}
+ leaf pattern {
+ type string;
+ description "Custom log layout.";
+ }
}
leaf debuglevel {
type uint8 {