2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-05 08:25:16 +00:00

[65-libyang-models] Small changes from last kea-yang tests

This commit is contained in:
Francis Dupont
2018-09-03 17:39:17 +02:00
parent 315dc3e931
commit 07d761f28d
5 changed files with 50 additions and 48 deletions

View File

@@ -61,10 +61,7 @@ module kea-control-agent {
}
}
container hooks-libraries {
description "Hooks libraries.";
uses kea:hooks-libraries;
}
uses kea:hooks-libraries;
leaf user-context {
type kea:user-context;

View File

@@ -298,8 +298,8 @@ module kea-dhcp4 {
type uint32;
description "Database connection timeout.";
}
leaf-list contact-points {
type inet:ip-address;
leaf contact-points {
type string;
description "Cassandra database contact points.";
}
leaf keyspace {
@@ -676,10 +676,10 @@ module kea-dhcp4 {
}
leaf ncr-protocol {
type enumeration {
enum "udp";
enum "tcp";
enum "UDP";
enum "TCP";
}
default "udp";
default "UDP";
description "Protocol to use for DHCP-DDNS.";
}
leaf ncr-format {

View File

@@ -297,8 +297,8 @@ module kea-dhcp6 {
type uint32;
description "Database connection timeout.";
}
leaf-list contact-points {
type inet:ip-address;
leaf contact-points {
type string;
description "Cassandra database contact points.";
}
leaf keyspace {
@@ -700,10 +700,10 @@ module kea-dhcp6 {
}
leaf ncr-protocol {
type enumeration {
enum "udp";
enum "tcp";
enum "UDP";
enum "TCP";
}
default "udp";
default "UDP";
description "Protocol to use for DHCP-DDNS.";
}
leaf ncr-format {

View File

@@ -41,30 +41,33 @@ module kea-logging {
}
container output-options {
description "Output options.";
leaf output {
type string;
description "Type of output. Special values are stdout (standard
output), stderr (standard error), syslog (syslog using default
name), syslog:name (syslog using specified name). Any other
value is interpreted as a filename.";
}
leaf flush {
type boolean;
default true;
description "When true flush buffers after each message.";
}
leaf maxsize {
type uint32;
default 10240000;
description "Maximum size of output file before rotation.
Values below 204800 including 0 disable rotation.";
}
leaf maxver {
type uint32 {
range 1..max;
list option {
key output;
leaf output {
type string;
description "Type of output. Special values are stdout (standard
output), stderr (standard error), syslog (syslog using default
name), syslog:name (syslog using specified name). Any other
value is interpreted as a filename.";
}
leaf flush {
type boolean;
default true;
description "When true flush buffers after each message.";
}
leaf maxsize {
type uint32;
default 10240000;
description "Maximum size of output file before rotation.
Values below 204800 including 0 disable rotation.";
}
leaf maxver {
type uint32 {
range 1..max;
}
default 1;
description "Maximum version to keep a rotated output file.";
}
default 1;
description "Maximum version to keep a rotated output file.";
}
}
leaf debuglevel {

View File

@@ -52,17 +52,19 @@ module kea-types {
}
grouping hooks-libraries {
description "Hook libraries.";
list hook-library {
key library;
leaf library {
type string;
mandatory true;
description "Path to the DSO.";
}
leaf parameters {
type string;
description "Parameters (JSON value).";
container hooks-libraries {
description "Hook libraries.";
list hook-library {
key library;
leaf library {
type string;
mandatory true;
description "Path to the DSO.";
}
leaf parameters {
type string;
description "Parameters (JSON value).";
}
}
}
}