Commit 49498649 authored by Ladislav Lhotka's avatar Ladislav Lhotka

Start unbound-specific module

parent 82d5d4db
Pipeline #41686 passed with stages
in 52 seconds
MODULES = cznic-resolver-common cznic-resolver-knot cznic-deckard
MODULES = cznic-resolver-common cznic-resolver-knot cznic-resolver-unbound \
cznic-dns-parameters cznic-dns-rdata cznic-deckard
YLIB = yanglib.json
DATE ?= $(shell date +%F)
......@@ -16,3 +17,7 @@ all: $(yams)
model.tree: $(YLIB) $(yams)
@yangson --tree $< > $@
commit: model.tree
@git add $^ $(yams)
@git commit
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -376,6 +376,10 @@ module cznic-resolver-common {
The prefix must be /96 or shorter.";
}
}
container debugging {
description
"Configuration of debugging functions.";
}
}
/* Operations */
......@@ -391,9 +395,7 @@ module cznic-resolver-common {
"Query name.";
}
leaf type {
type identityref {
base dnsct:rr-type;
}
type dnsct:rr-type;
mandatory "true";
description
"Query type.";
......
......@@ -454,6 +454,11 @@
<default value="64:ff9b::/96"/>
</leaf>
</container>
<container name="debugging">
<description>
<text>Configuration of debugging functions.</text>
</description>
</container>
</container>
<!-- Operations -->
......@@ -472,9 +477,7 @@
</leaf>
<leaf name="type">
<mandatory value="true"/>
<type name="identityref">
<base name="dnsct:rr-type"/>
</type>
<type name="dnsct:rr-type"/>
<description>
<text>Query type.</text>
</description>
......
......@@ -22,7 +22,7 @@ module cznic-resolver-knot {
          <mailto:lhotka@nic.cz>";
description
"This YANG module augment common resolver data with parts
"This YANG module augments common resolver data with parts
specific to Knot Resolver.";
revision 2018-10-26 {
......
......@@ -26,7 +26,7 @@
</contact>
<description>
<text>
This YANG module augment common resolver data with parts
This YANG module augments common resolver data with parts
specific to Knot Resolver.
</text>
</description>
......
module cznic-resolver-unbound {
yang-version "1.1";
namespace "https://www.nic.cz/ns/yang/resolver-unbound";
prefix "unb";
import cznic-dns-parameters {
prefix "dnspar";
}
import cznic-resolver-common {
prefix "drc";
}
organization
"CZ.NIC, z. s. p. o.";
contact
"Editor:   Ladislav Lhotka
          <mailto:lhotka@nic.cz>";
description
"This YANG module augments common resolver data with parts
specific to Unbound.";
revision 2018-10-26 {
description
"Initial revision.";
}
/* Data definitions */
augment "/drc:dns-resolver/drc:debugging" {
leaf val-override-date {
type dnspar:utc-date-time;
description
"This date, if set, is used for verifying RRSIG inception and
expiration dates.
It should be set only temporarily for debugging purposes.";
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<module name="cznic-resolver-unbound"
xmlns="urn:ietf:params:xml:ns:yang:yin:1"
xmlns:kres="https://www.nic.cz/ns/yang/resolver-unbound"
xmlns:drc="https://www.nic.cz/ns/yang/resolver-common"
xmlns:h="http://www.w3.org/1999/xhtml">
<namespace uri="https://www.nic.cz/ns/yang/resolver-unbound"/>
<prefix value="unb"/>
<yang-version value="1.1"/>
<import module="cznic-dns-parameters">
<prefix value="dnspar"/>
</import>
<import module="cznic-resolver-common">
<prefix value="drc"/>
</import>
<organization>
<text>CZ.NIC, z. s. p. o.</text>
</organization>
<contact>
<text>
<h:p>
Editor:   Ladislav Lhotka<h:br/>
          &lt;mailto:lhotka@nic.cz&gt;
</h:p>
</text>
</contact>
<description>
<text>
This YANG module augments common resolver data with parts
specific to Unbound.
</text>
</description>
<revision date="2018-10-26">
<description>
<text>Initial revision.</text>
</description>
</revision>
<!-- Data definitions -->
<augment target-node="/drc:dns-resolver/drc:debugging">
<leaf name="val-override-date">
<type name="dnspar:utc-date-time"/>
<description>
<text>
<h:p>This date, if set, is used for verifying RRSIG
inception and expiration dates.</h:p>
<h:p>It should be set only temporarily for debugging
purposes.</h:p>
</text>
</description>
</leaf>
</augment>
</module>
......@@ -9,6 +9,8 @@
| | +--rw origin <domain-name(string)>
| | +--rw refresh-interval? <uint32>
| | +--rw url <uri(string)>
| +--rw debugging
| | +--rw cznic-resolver-unbound:val-override-date? <utc-date-time(string)>
| +--rw dns64!
| | +--rw prefix? <ipv6-prefix(string)>
| +--rw dnssec!
......@@ -60,6 +62,6 @@
+--ro input
| +--ro cznic-resolver-common:class? <dns-class(union)>
| +--ro cznic-resolver-common:name <domain-name(string)>
| +--ro cznic-resolver-common:type <identityref>
| +--ro cznic-resolver-common:type <rr-type(union)>
+--ro output
......@@ -17,6 +17,18 @@
"namespace": "https://www.nic.cz/ns/yang/resolver-knot",
"conformance-type": "implement"
},
{
"name": "cznic-resolver-unbound",
"revision": "2018-10-26",
"namespace": "https://www.nic.cz/ns/yang/resolver-unbound",
"conformance-type": "implement"
},
{
"name": "cznic-dns-parameters",
"revision": "2018-10-26",
"namespace": "https://www.nic.cz/ns/yang/dns-parameters",
"conformance-type": "import"
},
{
"name": "iana-dns-class-rr-type",
"revision": "2018-10-26",
......@@ -28,6 +40,12 @@
"revision": "2013-07-15",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-inet-types",
"conformance-type": "import"
},
{
"name": "ietf-yang-types",
"revision": "2013-07-15",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-yang-types",
"conformance-type": "import"
}
]
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment