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";
26 reference "I-D: draft-ietf-dhc-dhcpv6-yang";
30 description "Initial revision";
31 reference "I-D: draft-ietf-dhc-dhcpv6-yang";
37 grouping vendor-infor {
38 description "Vendor information.";
39 container vendor-info {
44 description "enterprise number";
48 description "specific vendor info";
55 "Each server and client has only one DUID (DHCP Unique Identifier).
56 The DUID here identifies a unique DHCPv6 server for clients. DUID
57 consists of a two-octet type field and an arbitrary length (no more
58 than 128 bytes) content field. Currently there are four defined types
59 of DUIDs in RFC3315 and RFC6355 - DUID-LLT, DUID-EN, DUID-LL and
60 DUID-UUID. DUID-Unknown represents those unconventional DUIDs.";
61 reference "RFC3315: Section 9 and RFC6355: Section 4";
65 description "Type code of this DUID";
69 description "Selects the format for the DUID.";
71 description "DUID Based on Link-layer Address Plus Time
73 reference "RFC3315 Section 9.2";
74 leaf duid-llt-hardware-type {
76 description "Hardware type as assigned by IANA (RFC826).";
80 description "The time value is the time that the DUID is
81 generated represented in seconds since midnight (UTC),
82 January 1, 2000, modulo 2^32.";
84 leaf duid-llt-link-layer-addr {
85 type yang:mac-address;
86 description "Link-layer address as described in RFC2464";
90 description "DUID Assigned by Vendor Based on Enterprise Number
92 reference "RFC3315 Section 9.3";
93 leaf duid-en-enterprise-number {
95 description "Vendor's registered Private Enterprise Number as
98 leaf duid-en-identifier {
100 description "Identifier, unique to the device that is
105 description "DUID Based on Link-layer Address (Type 3 - DUID-LL)";
106 reference "RFC3315 Section 9.4";
107 leaf duid-ll-hardware-type {
109 description "Hardware type as assigned by IANA (RFC826).";
111 leaf duid-ll-link-layer-addr {
112 type yang:mac-address;
113 description "Link-layer address as described in RFC2464";
117 description "DUID Based on Universally Unique Identifier
118 (Type 4 - DUID-UUID)";
119 reference "RFC6335 Definition of the UUID-Based Unique Identifier";
122 description "A Universally Unique IDentifier in the string
123 representation defined in RFC 4122. The canonical
124 representation uses lowercase characters";
128 description "DUID based on free raw bytes";
131 description "The bits to be used as the identifier";
137 grouping portset-param {
138 description "portset parameters";
139 container port-parameter {
140 description "port parameter";
144 description "offset in a port set";
149 description "length of a psid";
154 description "psid value";
160 description "IA is a construct through which a server and a
161 client can identify, group, and manage a set of related IPv6
162 addresses. The key of the list is a 4-byte number IAID defined
164 list identity-association {
175 description "IA type";
177 leaf-list ipv6-addr {
178 type inet:ipv6-address;
179 description "ipv6 address";
181 leaf-list ipv6-prefix {
182 type inet:ipv6-prefix;
183 description "ipv6 prefix";
185 leaf-list prefix-length {
187 description "ipv6 prefix length";
192 description "t1 time";
197 description "t2 time";
199 leaf preferred-lifetime {
202 description "preferred lifetime";
204 leaf valid-lifetime {
207 description "valid lifetime";