]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[65-libyang-models] Small changes from last kea-yang tests
authorFrancis Dupont <fdupont@isc.org>
Mon, 3 Sep 2018 15:39:17 +0000 (17:39 +0200)
committerFrancis Dupont <fdupont@isc.org>
Mon, 3 Sep 2018 15:39:17 +0000 (17:39 +0200)
src/lib/yang/models/kea-control-agent.yang
src/lib/yang/models/kea-dhcp4.yang
src/lib/yang/models/kea-dhcp6.yang
src/lib/yang/models/kea-logging.yang
src/lib/yang/models/kea-types.yang

index c1f1621cf5c5886276d8f74e37d96c3b1fb59e19..d2fcb06f62cf3c4961fb59010faea6a1231e099a 100644 (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;
index 6dc8bf11472efbab144a186805c81a51a6a2e061..39451624236688df58332a13906ca4f2899fd8bf 100644 (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 {
index 2572b3653aa4229eaf473e16ff40ffb018d56f68..3b2e4152ba8dbe780b866f093cd202814e2da226 100644 (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 {
index 00fb3a41157a4f9a5f55a38524214dcc0f25f2c9..4973e95c386bba9a6eb333651c5a6e4ef7786bd5 100644 (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 {
index 08b01860f894fcba9838591773159f27572e1a14..e6954e95123f729dc40f7746f8c851d054c6d31d 100644 (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).";
+        }
       }
     }
   }