1 module ietf-dhcpv6-types {
3 namespace "urn:ietf:params:xml:ns:yang:ietf-dhcpv6-types";
6 import ietf-inet-types {
9 import ietf-yang-types {
13 organization "DHC WG";
15 "cuiyong@tsinghua.edu.cn
18 sladjana.zechlin@telekom.de
19 hezihao9512@gmail.com";
21 description "This model defines a YANG data model that can be
22 used to define some commonly used DHCPv6 types";
25 description "Initial revision";
26 reference "I-D: draft-ietf-dhc-dhcpv6-yang";
32 grouping vendor-infor {
33 description "Vendor information.";
34 container vendor-info {
39 description "enterprise number";
43 description "specific vendor info";
50 "Each server and client has only one DUID (DHCP Unique Identifier).
51 The DUID here identifies a unique DHCPv6 server for clients. DUID
52 consists of a two-octet type field and an arbitrary length (no more
53 than 128 bytes) content field. Currently there are four defined types
54 of DUIDs in RFC3315 and RFC6355 - DUID-LLT, DUID-EN, DUID-LL and
55 DUID-UUID. DUID-Uknown represents those unconventional DUIDs.";
56 reference "RFC3315: Section 9 and RFC6355: Section 4";
60 description "Type code of this DUID";
64 description "Selects the format for the DUID.";
66 description "DUID Based on Link-layer Address Plus Time
68 reference "RFC3315 Section 9.2";
69 leaf duid-llt-hardware-type {
71 description "Hardware type as assigned by IANA (RFC826).";
75 description "The time value is the time that the DUID is
76 generated represented in seconds since midnight (UTC),
77 January 1, 2000, modulo 2^32.";
79 leaf duid-llt-link-layer-addr {
80 type yang:mac-address;
81 description "Link-layer address as described in RFC2464";
85 description "DUID Assigned by Vendor Based on Enterprise Number
87 reference "RFC3315 Section 9.3";
88 leaf duid-en-enterprise-number {
90 description "Vendor's registered Private Enterprise Number as
93 leaf duid-en-identifier {
95 description "Indentifier, unique to the device that is
100 description "DUID Based on Link-layer Address (Type 3 - DUID-LL)";
101 reference "RFC3315 Section 9.4";
102 leaf duid-ll-hardware-type {
104 description "Hardware type as assigned by IANA (RFC826).";
106 leaf duid-ll-link-layer-addr {
107 type yang:mac-address;
108 description "Link-layer address as described in RFC2464";
112 description "DUID Based on Universally Unique Identifier
113 (Type 4 - DUID-UUID)";
114 reference "RFC6335 Defination of the UUID-Based Unique Identifier";
117 description "A Universally Unique IDentifier in the string
118 representation defined in RFC 4122. The canonical
119 representation uses lowercase characters";
123 description "DUID based on free raw bytes";
126 description "The bits to be used as the identifier";
132 grouping portset-para {
133 description "portset parameters";
134 container port-parameter {
135 description "port parameter";
139 description "offset in a port set";
144 description "length of a psid";
149 description "psid value";
155 description "IA is a construct through which a server and a
156 client can identify, group, and manage a set of related IPv6
157 addresses. The key of the list is a 4-byte number IAID defined
159 list identity-association {
170 description "IA type";
172 leaf-list ipv6-addr {
173 type inet:ipv6-address;
174 description "ipv6 address";
176 leaf-list ipv6-prefix {
177 type inet:ipv6-prefix;
178 description "ipv6 prefix";
180 leaf-list prefix-length {
182 description "ipv6 prefix length";
187 description "t1 time";
192 description "t2 time";
194 leaf preferred-lifetime {
197 description "preferred lifetime";
199 leaf valid-lifetime {
202 description "valid lifetime";