draft-ietf-dhc-dhcpv6-yang-00.txt   draft-ietf-dhc-dhcpv6-yang-01.txt 
DHC Working Group Y. Cui DHC Working Group Y. Cui
Internet-Draft H. Wang Internet-Draft H. Wang
Intended status: Standards Track L. Sun Intended status: Standards Track L. Sun
Expires: April 18, 2016 Tsinghua University Expires: September 22, 2016 Tsinghua University
T. Lemon T. Lemon
Nominum Nominum
I. Farrer I. Farrer
S. Zoric
Deutsche Telekom AG Deutsche Telekom AG
October 16, 2015 March 21, 2016
YANG Data Model for DHCPv6 Configuration YANG Data Model for DHCPv6 Configuration
draft-ietf-dhc-dhcpv6-yang-00 draft-ietf-dhc-dhcpv6-yang-01
Abstract Abstract
There has no unified method to configure DHCPv6 server ,relay and This document describes a YANG data model [RFC6020] for the
client itself, always pre-configured manually by operators. configuration and management of DHCPv6 servers, relays and clients.
IETF netmod WG has developed a general data model for NETCONF
protocol, YANG data model [RFC6020].
This document defines a YANG data model for the configuration and
management of DHCPv6 server, DHCPv6 relay and DHCPv6 client. With
this model, the operators can configure and manage the devices by
using NETCONF.
Requirements Language Requirements Language
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in [RFC2119]. document are to be interpreted as described in [RFC2119].
Status of This Memo Status of This Memo
This Internet-Draft is submitted in full conformance with the This Internet-Draft is submitted in full conformance with the
skipping to change at page 2, line 4 skipping to change at page 1, line 42
Internet-Drafts are working documents of the Internet Engineering Internet-Drafts are working documents of the Internet Engineering
Task Force (IETF). Note that other groups may also distribute Task Force (IETF). Note that other groups may also distribute
working documents as Internet-Drafts. The list of current Internet- working documents as Internet-Drafts. The list of current Internet-
Drafts is at http://datatracker.ietf.org/drafts/current/. Drafts is at http://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months Internet-Drafts are draft documents valid for a maximum of six months
and may be updated, replaced, or obsoleted by other documents at any and may be updated, replaced, or obsoleted by other documents at any
time. It is inappropriate to use Internet-Drafts as reference time. It is inappropriate to use Internet-Drafts as reference
material or to cite them other than as "work in progress." material or to cite them other than as "work in progress."
This Internet-Draft will expire on April 18, 2016.
This Internet-Draft will expire on September 22, 2016.
Copyright Notice Copyright Notice
Copyright (c) 2015 IETF Trust and the persons identified as the Copyright (c) 2016 IETF Trust and the persons identified as the
document authors. All rights reserved. document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents Provisions Relating to IETF Documents
(http://trustee.ietf.org/license-info) in effect on the date of (http://trustee.ietf.org/license-info) in effect on the date of
publication of this document. Please review these documents publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect carefully, as they describe your rights and restrictions with respect
to this document. Code Components extracted from this document must to this document. Code Components extracted from this document must
include Simplified BSD License text as described in Section 4.e of include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License. described in the Simplified BSD License.
Table of Contents Table of Contents
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2
1.1. Terminology . . . . . . . . . . . . . . . . . . . . . . . 3 1.1. Terminology . . . . . . . . . . . . . . . . . . . . . . . 3
2. Objectives . . . . . . . . . . . . . . . . . . . . . . . . . 3 2. DHCPv6 Tree Diagrams . . . . . . . . . . . . . . . . . . . . 3
2.1. DHCPv6 server . . . . . . . . . . . . . . . . . . . . . . 4 2.1. DHCPv6 Server Tree Diagrams . . . . . . . . . . . . . . . 3
2.2. DHCPv6 relay . . . . . . . . . . . . . . . . . . . . . . 4 2.2. DHCPv6 Relay Tree Diagrams . . . . . . . . . . . . . . . 12
2.3. DHCPv6 client . . . . . . . . . . . . . . . . . . . . . . 4 2.3. DHCPv6 Client Tree Diagrams . . . . . . . . . . . . . . . 15
3. DHCPv6 Tree Diagrams . . . . . . . . . . . . . . . . . . . . 4 2.4. Notifications Mechanism for DHCPv6 . . . . . . . . . . . 20
3.1. DHCPv6 Server Tree Diagrams . . . . . . . . . . . . . . . 4 3. DHCPv6 YANG Model . . . . . . . . . . . . . . . . . . . . . . 22
3.2. DHCPv6 Relay Tree Diagrams . . . . . . . . . . . . . . . 12 4. Security Considerations (TBD) . . . . . . . . . . . . . . . . 86
3.3. DHCPv6 Client Tree Diagrams . . . . . . . . . . . . . . . 14 5. IANA Considerations (TBD) . . . . . . . . . . . . . . . . . . 87
3.4. Notifications Mechanism for DHCPv6 . . . . . . . . . . . 19 6. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . 87
4. DHCPv6 YANG Model . . . . . . . . . . . . . . . . . . . . . . 21 7. References . . . . . . . . . . . . . . . . . . . . . . . . . 87
5. Security Considerations (TBD) . . . . . . . . . . . . . . . . 80 7.1. Normative References . . . . . . . . . . . . . . . . . . 87
6. IANA Considerations (TBD) . . . . . . . . . . . . . . . . . . 80 7.2. Informative References . . . . . . . . . . . . . . . . . 87
7. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . 80 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 89
8. References . . . . . . . . . . . . . . . . . . . . . . . . . 81
8.1. Normative References . . . . . . . . . . . . . . . . . . 81
8.2. Informative References . . . . . . . . . . . . . . . . . 81
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 83
1. Introduction 1. Introduction
This document defines a YANG data model for the configuration and DHCPv6 [RFC3315] is widely used for supplying configuration and other
management of DHCPv6 server, DHCPv6 relay and DHCPv6 client. With relevant parameters to clients in IPv6 networks. This document
this model, the operators can configure and manage the devices by defines a DHCPv6 YANG data model, containing sub-modules for the
using NETCONF. configuration and management of DHCPv6 servers, relays and clients.
A single YANG model covering all of these elements provides an
Model include three sub-modules: operator with a common interface for the management of the entire
DHCPv6 deployment in their network.
o DHCPv6 server
o DHCPv6 relay
o DHCPv6 client Since the publication of the original DHCPv6 specification, there
have been a large number of addional documents that update the
protocol's operation, add new functions and define new options. The
YANG model described in this document incorporates all relevent
changes. A full list of the documents which have been considedered
in the development of this model is included in Appendix A.
For DHCPv6 client configuration, it is worth noting that as DHCPv6 IF - Commment - Does anyone have this list?
itself a device configuration protocol, the intention of this It is worth noting that as DHCPv6 is itself a device configuration
document is not to replace client configuration of DHCPv6 options and protocol, it is not the intention of this document to replace the
parameters over the DHCPv6 protocol with the configuration of DHCPv6 configuration of DHCPv6 options and parameters using the DHCPv6
options and parameters over NETCONF/YANG. The DHCPv6 client model is protocol with the configuration of DHCPv6 options using NETCONF/YANG.
intended for the configuration of the DHCPv6 client function and also The DHCPv6 client model is intended for the configuration of the
for obtaining read-only state data from the client which has been DHCPv6 client function and also for obtaining read-only state data
learnt via the normal DHCPv6 message flow. This gives an operator a from the client which has been learnt via the normal DHCPv6 message
better method for managing DHCPv6 clients and simplifies flow. This gives an operator a better method for managing DHCPv6
troubleshooting. clients and simplifies troubleshooting.
1.1. Terminology 1.1. Terminology
The reader should be familiar with the terms defined in DHCPv6 The reader should be familiar with the terms defined in DHCPv6
[RFC3315] and relevant documents. [RFC3315] and other relevant documents.
DHCPv6 tree diagrams provide a concise representation of a YANG The DHCPv6 tree diagrams provide a concise representation of a YANG
module to help readers understand the module structure. The meaning module to help the reader understand the module structure. The
if the symbols in these diagrams is as follows: meaning of the symbols in these diagrams are as follows:
o Brackets "[" and "]" enclose list keys. o Brackets "[" and "]" enclose list keys.
o Braces "{" and "}" enclose feature content. o Braces "{" and "}" enclose feature content.
o Parentheses "(" and ")" enclose choice and case nodes, and case o Parentheses "(" and ")" enclose choice and case nodes, and case
nodes are also marked with a colon (":"). nodes are also marked with a colon (":").
o Symbols after data node names: "?" means an optional node, and "*" o Symbols after data node names: "?" means an optional node, and "*"
denotes a list and leaf-list. denotes a list and leaf-list.
o Abbreviations before data node names: "rw" means configuration o Abbreviations before data node names: "rw" means configuration
data (read-write), and "ro" means state data (read-only). data (read-write), and "ro" means state data (read-only).
2. Objectives 2. DHCPv6 Tree Diagrams
This document defines a YANG data model that can be used to configure
and manage DHCPv6 server, DHCPv6 relay and DHCPv6 client.
2.1. DHCPv6 server
DHCPv6 server parameters.
2.2. DHCPv6 relay
DHCPv6 relay parameters.
2.3. DHCPv6 client
DHCPv6 client parameters.
3. DHCPv6 Tree Diagrams
3.1. DHCPv6 Server Tree Diagrams 2.1. DHCPv6 Server Tree Diagrams
+--rw dhcpv6 +--rw dhcpv6
+--rw server +--rw server
+--rw serv-attributes +--rw serv-attributes
| +--rw name string | +--rw name string
| +--rw duid duidtype | +--rw duid duidtype
| +--rw enable boolean | +--rw enable boolean
| +--rw interfaces-config* string | +--rw interfaces-config* string
| +--rw ipv6-address? inet:ipv6-address | +--rw ipv6-address? inet:ipv6-address
| +--rw description? string | +--rw description? string
| +--rw pd-function boolean | +--rw pd-function boolean
| +--rw stateless-service boolean | +--rw stateless-service boolean
| +--rw rapid-commit boolean | +--rw rapid-commit boolean
| +--rw vendor-info | +--rw vendor-info
| +--rw ent-num uint32 | +--rw ent-num uint32
| +--rw data* string | +--rw data* string
+--rw option-sets +--rw option-sets
| +--rw option-set* [option-set-id] | +--rw option-set* [option-set-id]
| +--rw option-set-id uint8 | +--rw option-set-id -> /dhcpv6/server/option-sets/option-set
| +--rw new-or-standard-option* [option-code] | +--rw new-or-standard-option* [option-code]
| | +--rw option-code uint16 | | +--rw option-code uint16
| | +--rw option-name string | | +--rw option-name string
| | +--rw option-description string | | +--rw option-description string
| | +--rw option-reference? string | | +--rw option-reference? string
| | +--rw option-value string | | +--rw option-value string
| +--rw user-class-value? string | +--rw user-class-value? string
| +--rw enterprise-number? uint32 | +--rw enterprise-number? uint32
| +--rw store-client-link-layer? boolean | +--rw store-client-link-layer? boolean
| +--rw preference-option | +--rw preference-option
| | +--rw enable boolean | | +--rw enable boolean
| | +--rw preference-value uint8 | | +--rw preference-value uint8
| +--rw sip-server-option | +--rw sip-server-option
| | +--rw enable boolean | | +--rw enable boolean
| | +--rw sip-server* [sip-serv-id] | | +--rw sip-server* [sip-serv-id]
| | +--rw sip-serv-id uint8 | | +--rw sip-serv-id uint8
| | +--rw sip-serv-domain-name string | | +--rw sip-serv-domain-name string
| | +--rw sip-serv-addr inet:ipv6-address | | +--rw sip-serv-addr inet:ipv6-address
| +--rw dns-config-option | +--rw dns-config-option
| | +--rw enable boolean | | +--rw enable boolean
| | +--rw dns-server* [dns-serv-id] | | +--rw dns-server* [dns-serv-id]
| | | +--rw dns-serv-id uint8 | | | +--rw dns-serv-id uint8
| | | +--rw dns-serv-addr inet:ipv6-address | | | +--rw dns-serv-addr inet:ipv6-address
| | +--rw domain-search-list string | | +--rw domain-search-list string
| +--rw nis-config-option | +--rw nis-config-option
| | +--rw enable boolean | | +--rw enable boolean
| | +--rw nis-server* [nis-serv-id] | | +--rw nis-server* [nis-serv-id]
| | +--rw nis-serv-id uint8 | | +--rw nis-serv-id uint8
| | +--rw nis-serv-addr inet:ipv6-address | | +--rw nis-serv-addr inet:ipv6-address
| +--rw nis-plus-config-option | +--rw nis-plus-config-option
| | +--rw enable boolean | | +--rw enable boolean
| | +--rw nis-plus-server* [nis-plus-serv-id] | | +--rw nis-plus-server* [nis-plus-serv-id]
| | +--rw nis-plus-serv-id uint8 | | +--rw nis-plus-serv-id uint8
| | +--rw nis-plus-serv-addr inet:ipv6-address | | +--rw nis-plus-serv-addr inet:ipv6-address
| +--rw info-refresh-time-option | +--rw info-refresh-time-option
| | +--rw enable boolean | | +--rw enable boolean
| | +--rw info-refresh-time yang:timeticks | | +--rw info-refresh-time yang:timeticks
| +--rw cli-fqdn-option | +--rw cli-fqdn-option
| | +--rw enable boolean | | +--rw enable boolean
| | +--rw server-initiate-update boolean | | +--rw server-initiate-update boolean
| | +--rw client-initiate-update boolean | | +--rw client-initiate-update boolean
| | +--rw modify-name-from-cli boolean | | +--rw modify-name-from-cli boolean
| +--rw timezone-option | +--rw timezone-option
| | +--rw enable boolean | | +--rw enable boolean
| | +--rw tz-posix string | | +--rw tz-posix string
| | +--rw tz-database string | | +--rw tz-database string
| +--rw ntp-server-option | +--rw ntp-server-option
| | +--rw enable boolean | | +--rw enable boolean
| | +--rw ntp-server* [ntp-serv-id] | | +--rw ntp-server* [ntp-serv-id]
| | +--rw ntp-serv-id uint8 | | +--rw ntp-serv-id uint8
| | +--rw ntp-serv-addr inet:ipv6-address | | +--rw ntp-serv-addr inet:ipv6-address
| | +--rw ntp-serv-mul-addr inet:ipv6-address | | +--rw ntp-serv-mul-addr inet:ipv6-address
| | +--rw ntp-serv-fqdn string | | +--rw ntp-serv-fqdn string
| +--rw sntp-server-option | +--rw sntp-server-option
| | +--rw enable boolean | | +--rw enable boolean
| | +--rw sntp-server* [sntp-serv-id] | | +--rw sntp-server* [sntp-serv-id]
| | +--rw sntp-serv-id uint8 | | +--rw sntp-serv-id uint8
| | +--rw sntp-serv-addr inet:ipv6-address | | +--rw sntp-serv-addr inet:ipv6-address
| +--rw network-boot-option | +--rw network-boot-option
| | +--rw enable boolean | | +--rw enable boolean
| | +--rw boot-file* [boot-file-id] | | +--rw boot-file* [boot-file-id]
| | +--rw boot-file-id uint8 | | +--rw boot-file-id uint8
| | +--rw suitable-arch-type* uint16 | | +--rw suitable-arch-type* uint16
| | +--rw suitable-net-if* uint32 | | +--rw suitable-net-if* uint32
| | +--rw boot-file-url string | | +--rw boot-file-url string
| | +--rw boot-file-paras* [para-id] | | +--rw boot-file-paras* [para-id]
| | +--rw para-id uint8 | | +--rw para-id uint8
| | +--rw parameter string | | +--rw parameter string
| +--rw dslite-option | +--rw dslite-option
| | +--rw enable boolean | | +--rw enable boolean
| | +--rw dslite-aftr-name string | | +--rw dslite-aftr-name string
| +--rw kerberos-option | +--rw kerberos-option
| | +--rw enable boolean | | +--rw enable boolean
| | +--rw default-realm-name string | | +--rw default-realm-name string
| | +--rw kdc-info* [kdc-id] | | +--rw kdc-info* [kdc-id]
| | +--rw kdc-id uint8 | | +--rw kdc-id uint8
| | +--rw priority uint16 | | +--rw priority uint16
| | +--rw weight uint16 | | +--rw weight uint16
| | +--rw transport-type uint8 | | +--rw transport-type uint8
| | +--rw port-number uint16 | | +--rw port-number uint16
| | +--rw kdc-ipv6-addr inet:ipv6-address | | +--rw kdc-ipv6-addr inet:ipv6-address
| | +--rw realm-name string | | +--rw realm-name string
| +--rw addr-selection-option | +--rw addr-selection-option
| | +--rw enable boolean | | +--rw enable boolean
| | +--rw a-bit-set boolean | | +--rw a-bit-set boolean
| | +--rw p-bit-set boolean | | +--rw p-bit-set boolean
| | +--rw policy-table* [policy-id] | | +--rw policy-table* [policy-id]
| | +--rw policy-id uint8 | | +--rw policy-id uint8
| | +--rw label uint8 | | +--rw label uint8
| | +--rw precedence uint8 | | +--rw precedence uint8
| | +--rw prefix-len uint8 | | +--rw prefix-len uint8
| | +--rw prefix inet:ipv6-prefix | | +--rw prefix inet:ipv6-prefix
| +--rw sol-max-rt-option | +--rw sol-max-rt-option
| | +--rw enable boolean | | +--rw enable boolean
| | +--rw sol-max-rt-value yang:timeticks | | +--rw sol-max-rt-value yang:timeticks
| +--rw inf-max-rt-option | +--rw inf-max-rt-option
| | +--rw enable boolean | | +--rw enable boolean
| | +--rw inf-max-rt-value yang:timeticks | | +--rw inf-max-rt-value yang:timeticks
| +--rw pcp-server-option | +--rw pcp-server-option
| | +--rw enable boolean | | +--rw enable boolean
| | +--rw pcp-server* [pcp-serv-id] | | +--rw pcp-server* [pcp-serv-id]
| | +--rw pcp-serv-id uint8 | | +--rw pcp-serv-id uint8
| | +--rw pcp-serv-addr* inet:ipv6-address | | +--rw pcp-serv-addr* inet:ipv6-address
| +--rw s46-rule-option | +--rw s46-rule-option
| | +--rw enable boolean | | +--rw enable boolean
| | +--rw s46-rule* [rule-id] | | +--rw s46-rule* [rule-id]
| | +--rw rule-id uint8 | | +--rw rule-id uint8
| | +--rw rule-type enumeration | | +--rw rule-type enumeration
| | +--rw ea-len uint8 | | +--rw ea-len uint8
| | +--rw prefix4-len uint8 | | +--rw prefix4-len uint8
| | +--rw ipv4-prefix inet:ipv4-prefix | | +--rw ipv4-prefix inet:ipv4-prefix
| | +--rw prefix6-len uint8 | | +--rw prefix6-len uint8
| | +--rw ipv6-prefix inet:ipv6-prefix | | +--rw ipv6-prefix inet:ipv6-prefix
| | +--rw port-parameter | | +--rw port-parameter
| | +--rw offset uint8 | | +--rw offset uint8
| | +--rw psid-len uint8 | | +--rw psid-len uint8
| | +--rw psid uint16 | | +--rw psid uint16
| +--rw s46-br-option | +--rw s46-br-option
| | +--rw enable boolean | | +--rw enable boolean
| | +--rw br* [br-id] | | +--rw br* [br-id]
| | +--rw br-id uint8 | | +--rw br-id uint8
| | +--rw br-ipv6-addr inet:ipv6-address | | +--rw br-ipv6-addr inet:ipv6-address
| +--rw s46-dmr-option | +--rw s46-dmr-option
| | +--rw enable boolean | | +--rw enable boolean
| | +--rw dmr* [dmr-id] | | +--rw dmr* [dmr-id]
| | +--rw dmr-id uint8 | | +--rw dmr-id uint8
| | +--rw dmr-prefix6-len uint8 | | +--rw dmr-prefix6-len inet:ipv6-address
| | +--rw dmr-ipv6-prefix inet:ipv6-prefix | | +--rw dmr-ipv6-prefix inet:ipv6-prefix
| +--rw s46-v4-v6-binding-option | +--rw operator-option-ipv6-address
| +--rw enable boolean | | +--rw enable boolean
| +--rw ce* [ce-id] | | +--rw operator-ipv6-addr* [operator-ipv6-addr-id]
| +--rw ce-id uint8 | | +--rw operator-ipv6-addr-id uint8
| +--rw ipv4-addr inet:ipv4-address | | +--rw operator-ipv6-addr inet:ipv6-address
| +--rw bind-prefix6-len uint8 | +--rw operator-option-single-flag
| +--rw bind-ipv6-prefix inet:ipv6-prefix | | +--rw enable boolean
| +--rw port-parameter | | +--rw flag* [flag-id]
| +--rw offset uint8 | | +--rw flag-id uint8
| +--rw psid-len uint8 | | +--rw flag-value boolean
| +--rw psid uint16 | +--rw operator-option-ipv6-prefix
+--rw network-ranges | | +--rw enable boolean
| +--rw option-set [option-set-id] | | +--rw operator-ipv6-prefix* [operator-ipv6-prefix-id]
| +--rw network-range* [network-range-id] | | +--rw operator-ipv6-prefix-id uint8
| +--rw network-range-id uint8 | | +--rw operator-ipv6-prefix6-len uint8
| +--rw network-description string | | +--rw operator-ipv6-prefix inet:ipv6-prefix
| +--rw network-prefix inet:ipv6-prefix | +--rw operator-option-int32
| +--rw inherit-option-set boolean | | +--rw enable boolean
| +--rw option-set [option-set-id] | | +--rw int32val* [int32val-id]
| +--rw address-pools | | +--rw int32val-id uint8
| | +--rw address-pool* [pool-id] | | +--rw int32val uint32
| | | +--rw pool-id uint8 | +--rw operator-option-int16
| | | +--rw pool-prefix inet:ipv6-prefix | | +--rw enable boolean
| | | +--rw start-address inet:ipv6-address | | +--rw int16val* [int16val-id]
| | | +--rw end-address inet:ipv6-address | | +--rw int16val-id uint8
| | | +--rw renew-time yang:timeticks | | +--rw int16val uint16
| | | +--rw rebind-time yang:timeticks | +--rw operator-option-int8
| | | +--rw preferred-lifetime yang:timeticks | | +--rw enable boolean
| | | +--rw valid-lifetime yang:timeticks | | +--rw int8* [int8val-id]
| | | +--ro total-ipv6-count uint64 | | +--rw int8val-id uint8
| | | +--ro used-ipv6-count uint64 | | +--rw int8val uint8
| | | +--rw utilization-ratio threshold | +--rw operator-option-uri
| | | +--rw inherit-option-set boolean | | +--rw enable boolean
| | | +--rw option-set [option-set-id] | | +--rw uri* [uri-id]
| | | +--rw reserved-addresses | | +--rw uri-id uint8
| | | +--rw static-binding* [cli-id] | | +--rw uri string
| | | | +--rw cli-id uint32 | +--rw operator-option-textstring
| | | | +--rw duid duidtype | | +--rw enable boolean
| | | | +--rw reserv-addr* inet:ipv6-address | | +--rw textstring* [textstring-id]
| | | +--rw other-reserv-addr* inet:ipv6-address | | +--rw textstring-id uint8
| | +--ro binding-info* [cli-id] | | +--rw textstring string
| | +--ro cli-id uint32 | +--rw operator-option-var-data
| | +--ro duid duidtype | | +--rw enable boolean
| | +--ro cli-ia* [iaid] | | +--rw var-data* [var-data-id]
| | +--ro ia-type string | | +--rw var-data-id uint8
| | +--ro iaid uint32 | | +--rw var-data binary
| | +--ro cli-addr* inet:ipv6-address | +--rw operator-option-dns-wire
| | +--ro pool-id? uint8 | | +--rw enable boolean
| +--rw prefix-pools | | +--rw operator-option-dns-wire* [operator-option-dns-wire-id]
| | +--rw prefix-pool* [pool-id] | | +--rw operator-option-dns-wire-id uint8
| | | +--rw pool-id uint8 | | +--rw operator-option-dns-wire string
| | | +--rw prefix inet:ipv6-prefix | +--rw s46-v4-v6-binding-option
| | | +--rw prefix-length uint8 | +--rw enable boolean
| | | +--rw renew-time yang:timeticks | +--rw ce* [ce-id]
| | | +--rw rebind-time yang:timeticks | +--rw ce-id uint8
| | | +--rw preferred-lifetime yang:timeticks | +--rw ipv4-addr inet:ipv4-address
| | | +--rw valid-lifetime yang:timeticks | +--rw bind-prefix6-len uint8
| | | +--rw utilization-ratio threshold | +--rw bind-ipv6-prefix inet:ipv6-prefix
| | | +--rw inherit-option-set boolean | +--rw port-parameter
| | | +--rw option-set [option-set-id] | +--rw offset uint8
| | | +--rw reserved-prefixes | +--rw psid-len uint8
| | | +--rw static-binding* [cli-id] | +--rw psid uint16
| | | | +--rw cli-id uint32 +--rw network-ranges
| | | | +--rw duid duidtype | +--rw option-set [option-set-id]
| | | | +--rw reserv-prefix-len uint8 | +--rw network-range* [network-range-id]
| | | | +--rw reserv-prefix inet:ipv6-prefix | +--rw network-range-id uint8
| | | +--rw exclude-prefix-len uint8 | +--rw network-description string
| | | +--rw exclude-prefix inet:ipv6-prefix | +--rw network-prefix inet:ipv6-prefix
| | | +--rw other-reserv-prefix* [reserv-id] | +--rw inherit-option-set boolean
| | | +--rw reserv-id uint8 | +--rw option-set [option-set-id]
| | | +--rw prefix-len uint8 | +--rw address-pools
| | | +--rw prefix inet:ipv6-prefix | | +--rw address-pool* [pool-id]
| | +--ro binding-info* [cli-id] | | | +--rw pool-id uint8
| | +--ro cli-id uint32 | | | +--rw pool-prefix inet:ipv6-prefix
| | +--ro duid duidtype | | | +--rw start-address inet:ipv6-address
| | +--ro cli-iapd* [iaid] | | | +--rw end-address inet:ipv6-address
| | +--ro iaid uint32 | | | +--rw renew-time yang:timeticks
| | +--ro cli-prefix* uint32 | | | +--rw rebind-time yang:timeticks
| | +--ro cli-prefix-len* uint8 | | | +--rw preferred-lifetime yang:timeticks
| | +--ro pool-id? uint8 | | | +--rw valid-lifetime yang:timeticks
| +--rw hosts | | | +--ro total-ipv6-count uint64
| +--rw host* [cli-id] | | | +--ro used-ipv6-count uint64
| +--rw cli-id uint32 | | | +--rw utilization-ratio threshold
| +--rw duid duidtype | | | +--rw inherit-option-set boolean
| +--rw inherit-option-set boolean | | | +--rw option-set [option-set-id]
| +--rw option-set [option-set-id] | | | +--rw reserved-addresses
| +--rw nis-domain-name? string | | | +--rw static-binding* [cli-id]
| +--rw nis-plus-domain-name? string | | | | +--rw cli-id uint32
+--rw relay-opaque-paras | | | | +--rw duid duidtype
| +--rw relays* [relay-name] | | | | +--rw reserv-addr* inet:ipv6-address
| +--rw relay-name string | | | +--rw other-reserv-addr* inet:ipv6-address
| +--rw interface-info* [if-name] | | +--ro binding-info* [cli-id]
| | +--rw if-name string | | +--ro cli-id uint32
| | +--rw interface-id string | | +--ro duid duidtype
| +--rw subscribers* [subscriber] | | +--ro cli-ia* [iaid]
| | +--rw subscriber uint8 | | +--ro ia-type string
| | +--rw subscriber-id string | | +--ro iaid uint32
| +--rw remote-host* [ent-num] | | +--ro cli-addr* inet:ipv6-address
| +--rw ent-num uint32 | | +--ro pool-id? uint8
| +--rw remote-id string | +--rw prefix-pools
+--rw rsoo-enabled-options | | +--rw prefix-pool* [pool-id]
| +--rw rsoo-enabled-option* [option-code] | | | +--rw pool-id uint8
| +--rw option-code uint16 | | | +--rw prefix inet:ipv6-prefix
| +--rw description string | | | +--rw prefix-length uint8
+--ro packet-stats | | | +--rw renew-time yang:timeticks
+--ro solicit-count uint32 | | | +--rw rebind-time yang:timeticks
+--ro request-count uint32 | | | +--rw preferred-lifetime yang:timeticks
+--ro renew-count uint32 | | | +--rw valid-lifetime yang:timeticks
+--ro rebind-count uint32 | | | +--rw utilization-ratio threshold
+--ro decline-count uint32 | | | +--rw inherit-option-set boolean
+--ro release-count uint32 | | | +--rw option-set [option-set-id]
+--ro info-req-count uint32 | | | +--rw reserved-prefixes
+--ro advertise-count uint32 | | | +--rw static-binding* [cli-id]
+--ro confirm-count uint32 | | | | +--rw cli-id uint32
+--ro reply-count uint32 | | | | +--rw duid duidtype
+--ro reconfigure-count uint32 | | | | +--rw reserv-prefix-len uint8
+--ro relay-forward-count uint32 | | | | +--rw reserv-prefix inet:ipv6-prefix
+--ro relay-reply-count uint32 | | | +--rw exclude-prefix-len uint8
| | | +--rw exclude-prefix inet:ipv6-prefix
| | | +--rw other-reserv-prefix* [reserv-id]
| | | +--rw reserv-id uint8
| | | +--rw prefix-len uint8
| | | +--rw prefix inet:ipv6-prefix
| | +--ro binding-info* [cli-id]
| | +--ro cli-id uint32
| | +--ro duid duidtype
| | +--ro cli-iapd* [iaid]
| | +--ro iaid uint32
| | +--ro cli-prefix* uint32
| | +--ro cli-prefix-len* uint8
| | +--ro pool-id? uint8
| +--rw hosts
| +--rw host* [cli-id]
| +--rw cli-id uint32
| +--rw duid duidtype
| +--rw inherit-option-set boolean
| +--rw option-set [option-set-id]
| +--rw nis-domain-name? string
| +--rw nis-plus-domain-name? string
+--rw relay-opaque-paras
| +--rw relays* [relay-name]
| +--rw relay-name string
| +--rw interface-info* [if-name]
| | +--rw if-name string
| | +--rw interface-id string
| +--rw subscribers* [subscriber]
| | +--rw subscriber uint8
| | +--rw subscriber-id string
| +--rw remote-host* [ent-num]
| +--rw ent-num uint32
| +--rw remote-id string
+--rw rsoo-enabled-options
| +--rw rsoo-enabled-option* [option-code]
| +--rw option-code uint16
| +--rw description string
+--ro packet-stats
+--ro solicit-count uint32
+--ro request-count uint32
+--ro renew-count uint32
+--ro rebind-count uint32
+--ro decline-count uint32
+--ro release-count uint32
+--ro info-req-count uint32
+--ro advertise-count uint32
+--ro confirm-count uint32
+--ro reply-count uint32
+--ro reconfigure-count uint32
+--ro relay-forward-count uint32
+--ro relay-reply-count uint32
Figure 1: DHCPv6 Data Model Structure Figure 1: DHCPv6 Data Model Structure
Introduction of important nodes: Introduction of important nodes:
o serv-attributes: This container contains basic attributes of a o serv-attributes: This container contains basic attributes of a
DHCPv6 server such as DUID, server name and so on. Some optional DHCPv6 server such as DUID, server name and so on. Some optional
functions that can be provided by the server is also included. functions that can be provided by the server is also included.
o duid: Each server and client has only one DUID (DHCP Unique o duid: Each server and client has only one DUID (DHCP Unique
Identifier). The DUID here identifies a unique DHCPv6 server for Identifier). The DUID here identifies a unique DHCPv6 server for
clients. DUID consists of a two-octet type field and an arbitrary clients. DUID consists of a two-octet type field and an arbitrary
length (no more than 128 bytes) content field. length (no more than 128 bytes) content field.
o pd-function: Whether the server can act as a delegating router to o pd-function: Whether the server can act as a delegating router to
perform prefix delegation ([RFC3633]). perform prefix delegation ([RFC3633]).
o operator-option-ipv6-address, operator-option-single-flag,
operator-option-ipv6-prefix, operator-option-int32, operator-
option-int16, operator-option-int8, operator-option-uri, operator-
option-textstring, operator-option-var-data, operator-option-dns-
wire: are generic option formats described in ([RFC7227]).
o stateless-service: A boolean value specifies whether the server o stateless-service: A boolean value specifies whether the server
support client-server exchanges involving two messages defined in support client-server exchanges involving two messages defined in
([RFC3315]). ([RFC3315]).
o rapid-commit: Setting the value to '1' represents the server o rapid-commit: Setting the value to '1' represents the server
support the Solicit-Reply message exchange. '0' means the server support the Solicit-Reply message exchange. '0' means the server
will simply ignore the Rapid Commit option in Solicit message. will simply ignore the Rapid Commit option in Solicit message.
o interfaces-config: A leaf list to denote which one or more o interfaces-config: A leaf list to denote which one or more
interfaces the server should listen on. The default value is to interfaces the server should listen on. The default value is to
skipping to change at page 12, line 13 skipping to change at page 12, line 43
Id option, Remote-Id option and Subscriber-Id option. Id option, Remote-Id option and Subscriber-Id option.
o rsoo-enabled-options: [RFC6422] requires that the server SHOULD o rsoo-enabled-options: [RFC6422] requires that the server SHOULD
have an administrator-configurable list of RSOO-enabled options. have an administrator-configurable list of RSOO-enabled options.
This container include a list called "rsoo-enabled-option" to This container include a list called "rsoo-enabled-option" to
allow new RSOO-enabled options to be defined at the server side. allow new RSOO-enabled options to be defined at the server side.
o packet-stats: A container presents the packet statistics related o packet-stats: A container presents the packet statistics related
to the DHCPv6 server. to the DHCPv6 server.
3.2. DHCPv6 Relay Tree Diagrams 2.2. DHCPv6 Relay Tree Diagrams
+--rw dhcpv6 +--rw dhcpv6
+-- ... +-- ...
| |
+--rw relay +--rw relay
+--rw relay-attributes +--rw relay-attributes
| +--rw name string | +--rw name string
| +--rw enable boolean | +--rw enable boolean
| +--rw description? string | +--rw description? string
| +--rw dest-addrs* inet:ipv6-address | +--rw dest-addrs* inet:ipv6-address
skipping to change at page 14, line 4 skipping to change at page 14, line 34
Remote-Id option and Subscriber-Id option. Remote-Id option and Subscriber-Id option.
o dest-addrs: Each DHCPv6 relay agent may be configured with a list o dest-addrs: Each DHCPv6 relay agent may be configured with a list
of destination addresses. This node defines such a list of IPv6 of destination addresses. This node defines such a list of IPv6
addresses that may include unicast addresses, multicast addresses addresses that may include unicast addresses, multicast addresses
or other addresses. or other addresses.
o relay-supplied-options-option: DHCPv6 relay agent could provide o relay-supplied-options-option: DHCPv6 relay agent could provide
some information that would be useful to DHCPv6 client. Since some information that would be useful to DHCPv6 client. Since
relay agent cannot provide options directly to the client, relay agent cannot provide options directly to the client,
[RFC6422] defines RSOO-enabled options to propose options for the [RFC6422] defines RSOO-enabled options to propose options for the
server to send to the client. This container modelled such RSOO- server to send to the client. This container models such RSOO-
enabled options. enabled options.
o rsoo-set: This list under the "relay-supplied-options-option" o rsoo-set: This list under the "relay-supplied-options-option"
container is similar to the "option-set" defined in server container is similar to the "option-set" defined in server
feature. It allows the relay to implement several sets of RSOO- feature. It allows the relay to implement several sets of RSOO-
enabled options for different interfaces. The list only include enabled options for different interfaces. The list only include
the EAP Re-authentication Protocol (ERP) Local Domain Name DHCPv6 the EAP Re-authentication Protocol (ERP) Local Domain Name DHCPv6
Option defined in [RFC6440], since it is the only one RSOO-enabled Option defined in [RFC6440], since it is the only one RSOO-enabled
options accepted by IANA so far. options accepted by IANA so far.
skipping to change at page 14, line 36 skipping to change at page 15, line 18
o next-entity: This node defines a list that is used to describe the o next-entity: This node defines a list that is used to describe the
next hop entity of this relay agent. Different entities are next hop entity of this relay agent. Different entities are
distinguished by their addresses. distinguished by their addresses.
o packet-stats: A container shows packet state information of a o packet-stats: A container shows packet state information of a
specific data communication. specific data communication.
o relay-stats: The "relay-stats" container records and presents the o relay-stats: The "relay-stats" container records and presents the
overall packet statistics of the relay agent. overall packet statistics of the relay agent.
3.3. DHCPv6 Client Tree Diagrams 2.3. DHCPv6 Client Tree Diagrams
+--rw dhcpv6 +--rw dhcpv6
+-- ... +-- ...
| |
+--rw client +--rw client
+--rw client-if* [if-name] +--rw client-if* [if-name]
+--rw if-name string +--rw if-name string
+--rw cli-id uint32 +--rw cli-id uint32
+--rw duid duidtype +--rw duid duidtype
+--rw enable boolean +--rw enable boolean
skipping to change at page 19, line 41 skipping to change at page 20, line 23
DHCPv6. The potential configuration data may include DNS server DHCPv6. The potential configuration data may include DNS server
parameters, SIP server parameters and etc. parameters, SIP server parameters and etc.
o supported-options: This state data container defines a list of o supported-options: This state data container defines a list of
options supported by the client for administrator to interrogate a options supported by the client for administrator to interrogate a
client's capabilities. client's capabilities.
o packet-stats: A container records all the packet status o packet-stats: A container records all the packet status
information of a specific interface. information of a specific interface.
3.4. Notifications Mechanism for DHCPv6 2.4. Notifications Mechanism for DHCPv6
+--rw dhcpv6 +--rw dhcpv6
+-- ... +-- ...
| |
+--n notifications +--n notifications
+--n dhcpv6-server-event +--n dhcpv6-server-event
| +--n pool-running-out | +--n pool-running-out
| | +--ro utilization-ratio uint16 | | +--ro utilization-ratio uint16
| | +--ro duid duidtype | | +--ro duid duidtype
| | +--ro serv-name? string | | +--ro serv-name? string
| | +--ro pool-name string | | +--ro pool-name string
skipping to change at page 21, line 21 skipping to change at page 22, line 21
o invalid-ia-detected: raised when the identity association of the o invalid-ia-detected: raised when the identity association of the
client can be proved to be invalid. Possible condition includes client can be proved to be invalid. Possible condition includes
duplicated address, illegal address, etc. duplicated address, illegal address, etc.
o retransmission-failed: raised when the retransmission mechanism o retransmission-failed: raised when the retransmission mechanism
defined in [RFC3315] is failed. defined in [RFC3315] is failed.
o failed-status-turn-up: raised when the client receives a message o failed-status-turn-up: raised when the client receives a message
includes an unsuccessful Status Code option. includes an unsuccessful Status Code option.
4. DHCPv6 YANG Model 3. DHCPv6 YANG Model
This module imports typedefs from [RFC6991]. This module imports typedefs from [RFC6991].
<CODE BEGINS> file "ietf-dhcpv6@2015-10-16.yang" <CODE BEGINS> file "ietf-dhcpv6@2015-10-16.yang"
module ietf-dhcpv6 { module ietf-dhcpv6 {
namespace "urn:ietf:params:xml:ns:yang:ietf-dhcpv6"; namespace "urn:ietf:params:xml:ns:yang:ietf-dhcpv6";
prefix "dhcpv6"; prefix "dhcpv6";
import ietf-inet-types { import ietf-inet-types {
prefix inet; prefix inet;
revision-date "2013-07-15"; revision-date "2013-07-15";
} }
import ietf-yang-types { import ietf-yang-types {
prefix yang; prefix yang;
revision-date "2013-07-15"; revision-date "2013-07-15";
} }
organization "dhc wg"; organization "dhc wg";
contact "yong@csnet1.cs.tsinghua.edu.cn contact "yong@csnet1.cs.tsinghua.edu.cn
wangh13@mails.tsinghua.edu.cn wangh13@mails.tsinghua.edu.cn
lh.sunlinh@gmail.com lh.sunlinh@gmail.com
Ted.Lemon@nominum.com Ted.Lemon@nominum.com
ian.farrer@telekom.de"; ian.farrer@telekom.de";
description "This model defines a YANG data model that can be description "This model defines a YANG data model that can be
used to configure and manage DHCPv6 server, DHCPv6 relay and used to configure and manage DHCPv6 server, DHCPv6 relay and
DHCPv6 client."; DHCPv6 client.";
revision 2015-10-16 { revision 2015-10-16 {
description "version05: Omit the feature statement. Modify description "version05: Omit the feature statement. Modify
model according to comments from Huawei. Also correct some model according to comments from Huawei. Also correct some
grammar errors."; grammar errors.";
reference "I-D: draft-ietf-dhc-dhcpv6-yang-00"; reference "I-D: draft-ietf-dhc-dhcpv6-yang-00";
} }
revision 2015-09-25 { revision 2015-09-25 {
description "version04: Correct duid and grammar errors."; description "version04: Correct duid and grammar errors.";
reference "I-D: draft-cui-dhc-dhcpv6-yang-04"; reference "I-D: draft-cui-dhc-dhcpv6-yang-04";
} }
revision 2015-07-01 { revision 2015-07-01 {
description "version03: Correct grammar errors."; description "version03: Correct grammar errors.";
reference "I-D: draft-cui-dhc-dhcpv6-yang-03"; reference "I-D: draft-cui-dhc-dhcpv6-yang-03";
} }
revision 2015-04-13 { revision 2015-04-13 {
description "version02: Correct grammar errors."; description "version02: Correct grammar errors.";
reference "I-D: draft-cui-dhc-dhcpv6-yang-02"; reference "I-D: draft-cui-dhc-dhcpv6-yang-02";
} }
revision 2015-04-02 { revision 2015-04-02 {
description "version01: Correct grammar errors, Reuse description "version01: Correct grammar errors, Reuse
groupings, Update 'dhcpv6-relay' feature, Add groupings, Update 'dhcpv6-relay' feature, Add
notifications."; notifications.";
reference "I-D: draft-cui-dhc-dhcpv6-yang-01"; reference "I-D: draft-cui-dhc-dhcpv6-yang-01";
} }
revision 2015-03-04 { revision 2015-03-04 {
description "version00: Initial revision."; description "version00: Initial revision.";
reference "I-D: draft-cui-dhc-dhcpv6-yang-00"; reference "I-D: draft-cui-dhc-dhcpv6-yang-00";
} }
/* /*
* Typedef * Typedef
*/ */
typedef duidtype { typedef duidtype {
type union { type union {
type uint16; type uint16;
type string { type string {
pattern '(([0-9a-fA-F]{2}){2,128})'; pattern '(([0-9a-fA-F]{2}){2,128})';
} }
} }
description "the type defined for duid"; description "the type defined for duid";
} }
typedef threshold { typedef threshold {
type union { type union {
type uint16 { type uint16 {
range 0..100; range 0..100;
} }
type enumeration { type enumeration {
enum "disabled" { enum "disabled" {
description "No threshold"; description "No threshold";
} }
} }
} }
description "Threshold value in percent"; description "Threshold value in percent";
} }
/* /*
* Grouping * Grouping
*/ */
grouping vendor-infor { grouping vendor-infor {
description "vendor info"; description "vendor info";
container vendor-info { container vendor-info {
description ""; description "";
leaf ent-num { leaf ent-num {
type uint32; type uint32;
mandatory true; mandatory true;
description "enterprise number"; description "enterprise number";
} }
leaf-list data { leaf-list data {
type string; type string;
description "specific vendor info"; description "specific vendor info";
} }
} }
} }
grouping portset-para { grouping portset-para {
description "portset parameters"; description "portset parameters";
container port-parameter { container port-parameter {
description "port parameter"; description "port parameter";
leaf offset { leaf offset {
type uint8; type uint8;
mandatory true; mandatory true;
description "offset in a port set"; description "offset in a port set";
} }
leaf psid-len { leaf psid-len {
type uint8; type uint8;
mandatory true; mandatory true;
description "length of a psid"; description "length of a psid";
} }
leaf psid { leaf psid {
type uint16; type uint16;
mandatory true; mandatory true;
description "psid value"; description "psid value";
} }
} }
} }
/* /*
* Data Nodes * Data Nodes
*/ */
container server { container server {
description "dhcpv6 server portion"; description "dhcpv6 server portion";
container serv-attributes { container serv-attributes {
description "This container contains basic attributes description "This container contains basic attributes
of a DHCPv6 server such as DUID, server name and so of a DHCPv6 server such as DUID, server name and so
on. Some optional functions that can be provided by on. Some optional functions that can be provided by
the server is also included."; the server is also included.";
leaf name { leaf name {
type string; type string;
mandatory true; mandatory true;
description "server's name"; description "server's name";
} }
leaf duid { leaf duid {
type duidtype; type duidtype;
mandatory true; mandatory true;
description "DHCP Unique Identifer"; description "DHCP Unique Identifer";
} }
leaf enable { leaf enable {
type boolean; type boolean;
mandatory true; mandatory true;
description "whether to enable the server"; description "whether to enable the server";
} }
leaf ipv6-address { leaf ipv6-address {
type inet:ipv6-address; type inet:ipv6-address;
description "server's IPv6 address"; description "server's IPv6 address";
} }
leaf description { leaf description {
type string; type string;
description "description of the server"; description "description of the server";
} }
leaf pd-function { leaf pd-function {
type boolean; type boolean;
mandatory true; mandatory true;
description "Whether the server can act as a description "Whether the server can act as a
delegating router to perform prefix delegation delegating router to perform prefix delegation
([RFC3633])."; ([RFC3633]).";
} }
leaf stateless-service { leaf stateless-service {
type boolean; type boolean;
mandatory true; mandatory true;
description "A boolean value specifies whether description "A boolean value specifies whether
the server support client-server exchanges the server support client-server exchanges
involving two messages defined in ([RFC3315])."; involving two messages defined in ([RFC3315]).";
} }
leaf rapid-commit { leaf rapid-commit {
type boolean; type boolean;
mandatory true; mandatory true;
description "A boolean value specifies whether description "A boolean value specifies whether
the server support client-server exchanges the server support client-server exchanges
involving two messages defined in ([RFC3315])."; involving two messages defined in ([RFC3315]).";
} }
leaf-list interfaces-config { leaf-list interfaces-config {
type string; type string;
description "A leaf list to denote which one or description "A leaf list to denote which one or
more interfaces the server should listen on. The more interfaces the server should listen on. The
default value is to listen on all the interfaces. default value is to listen on all the interfaces.
This node is also used to set a unicast address This node is also used to set a unicast address
for the server to listen with a specific interface. for the server to listen with a specific interface.
For example, if people want the server to listen For example, if people want the server to listen
on a unicast address with a specific interface, he on a unicast address with a specific interface, he
can use the format like 'eth1/2001:db8::1'."; can use the format like 'eth1/2001:db8::1'.";
} }
uses vendor-infor; uses vendor-infor;
} }
container option-sets { container option-sets {
description "DHCPv6 employs various options to carry description "DHCPv6 employs various options to carry
additional information and parameters in DHCP messages. additional information and parameters in DHCP messages.
This container defines all the possible options that This container defines all the possible options that
need to be configured at the server side."; need to be configured at the server side.";
list option-set { list option-set {
key option-set-id; key option-set-id;
description "A server may allow different option description "A server may allow different option
sets to be configured for different conditions sets to be configured for different conditions
(i.e. different networks, clients and etc). This (i.e. different networks, clients and etc). This
'option-set' list enables various sets of options 'option-set' list enables various sets of options
being defined and configured in a single server. being defined and configured in a single server.
Different sets are distinguished by the key called Different sets are distinguished by the key called
'option-set-id'. All the possible options discussed 'option-set-id'. All the possible options discussed
above are defined in the list and each option is above are defined in the list and each option is
corresponding to a container."; corresponding to a container.";
leaf option-set-id { leaf option-set-id {
type uint8; type leafref; {
mandatory true; path "/dhcpv6/server/option-sets/option-set/option-set-id";
description "the option-set-id key"; mandatory true;
} description "the option-set-id key";
list new-or-standard-option { }
key option-code; }
description "new or standard option"; list new-or-standard-option {
leaf option-code { key option-code;
type uint16; description "new or standard option";
mandatory true; leaf option-code {
description "the option code key"; type uint16;
} mandatory true;
leaf option-name { description "the option code key";
type string; }
mandatory true; leaf option-name {
description "the new option's name"; type string;
} mandatory true;
leaf option-description { description "the new option's name";
type string; }
mandatory true; leaf option-description {
description "description of new option"; type string;
} mandatory true;
leaf option-reference { description "description of new option";
type string; }
description "reference to the leaf option-reference {
specification"; type string;
} description "reference to the
leaf option-value { specification";
type string; }
mandatory true; leaf option-value {
description "the new option's value"; type string;
} mandatory true;
} description "the new option's value";
leaf user-class-value { }
type string; }
description "use class option's value"; leaf user-class-value {
} type string;
leaf enterprise-number { description "use class option's value";
type uint32; }
description "enterprise number"; leaf enterprise-number {
} type uint32;
leaf store-client-link-layer { description "enterprise number";
type boolean; }
description "whether to store client's leaf store-client-link-layer {
link layer address"; type boolean;
} description "whether to store client's
container preference-option { link layer address";
description "preference option"; }
leaf enable { container preference-option {
type boolean; description "preference option";
mandatory true; leaf enable {
description "indicate whether this type boolean;
option will be included in the mandatory true;
option set"; description "indicate whether this
} option will be included in the
leaf preference-value { option set";
type uint8; }
mandatory true; leaf preference-value {
description "the value for this option"; type uint8;
} mandatory true;
} description "the value for this option";
container sip-server-option { }
description "sip server option"; }
leaf enable { container sip-server-option {
type boolean; description "sip server option";
mandatory true; leaf enable {
description "indicate whether this type boolean;
option will be included in the mandatory true;
option set"; description "indicate whether this
} option will be included in the
list sip-server { option set";
key sip-serv-id; }
description "sip server info"; list sip-server {
leaf sip-serv-id { key sip-serv-id;
type uint8; description "sip server info";
mandatory true; leaf sip-serv-id {
description "sip server id"; type uint8;
} mandatory true;
leaf sip-serv-domain-name { description "sip server id";
type string; }
mandatory true; leaf sip-serv-domain-name {
description "sip serevr domain type string;
name"; mandatory true;
} description "sip serevr domain
leaf sip-serv-addr { name";
type inet:ipv6-address; }
mandatory true; leaf sip-serv-addr {
description "sip server addr"; type inet:ipv6-address;
} mandatory true;
} description "sip server addr";
} }
container dns-config-option { }
description "dns configuration option"; }
leaf enable { container dns-config-option {
type boolean; description "dns configuration option";
mandatory true; leaf enable {
description "indicate whether this type boolean;
option will be included in the mandatory true;
option set"; description "indicate whether this
} option will be included in the
list dns-server { option set";
key dns-serv-id; }
description "dns server info"; list dns-server {
leaf dns-serv-id { key dns-serv-id;
type uint8; description "dns server info";
mandatory true; leaf dns-serv-id {
description "dns server id"; type uint8;
} mandatory true;
leaf dns-serv-addr { description "dns server id";
type inet:ipv6-address; }
mandatory true; leaf dns-serv-addr {
description "dns server addr"; type inet:ipv6-address;
} mandatory true;
} description "dns server addr";
leaf domain-search-list { }
type string; }
mandatory true; leaf domain-search-list {
description "search list"; type string;
} mandatory true;
} description "search list";
container nis-config-option { }
description "nis configurtaion option"; }
leaf enable { container nis-config-option {
type boolean; description "nis configurtaion option";
mandatory true; leaf enable {
description "indicate whether this type boolean;
option will be included in the mandatory true;
option set"; description "indicate whether this
} option will be included in the
list nis-server { option set";
key nis-serv-id; }
description "nis server info"; list nis-server {
leaf nis-serv-id { key nis-serv-id;
type uint8; description "nis server info";
mandatory true; leaf nis-serv-id {
description "nis server id"; type uint8;
} mandatory true;
leaf nis-serv-addr { description "nis server id";
type inet:ipv6-address; }
mandatory true; leaf nis-serv-addr {
description "nis server addr"; type inet:ipv6-address;
} mandatory true;
} description "nis server addr";
} }
container nis-plus-config-option { }
description "nisp configuration option"; }
leaf enable { container nis-plus-config-option {
type boolean; description "nisp configuration option";
mandatory true; leaf enable {
description "indicate whether this type boolean;
option will be included in the mandatory true;
option set"; description "indicate whether this
} option will be included in the
list nis-plus-server { option set";
key nis-plus-serv-id; }
description "nisp server info"; list nis-plus-server {
leaf nis-plus-serv-id { key nis-plus-serv-id;
type uint8; description "nisp server info";
mandatory true; leaf nis-plus-serv-id {
description "nisp server id"; type uint8;
} mandatory true;
leaf nis-plus-serv-addr { description "nisp server id";
type inet:ipv6-address; }
mandatory true; leaf nis-plus-serv-addr {
description "nisp server addr"; type inet:ipv6-address;
} mandatory true;
} description "nisp server addr";
} }
container info-refresh-time-option { }
description "info refresh time option"; }
leaf enable { container info-refresh-time-option {
type boolean; description "info refresh time option";
mandatory true; leaf enable {
description "indicate whether this type boolean;
option will be included in the mandatory true;
option set"; description "indicate whether this
} option will be included in the
leaf info-refresh-time { option set";
type yang:timeticks; }
mandatory true; leaf info-refresh-time {
description "the refresh time"; type yang:timeticks;
} mandatory true;
} description "the refresh time";
container cli-fqdn-option { }
description "client fqdn option"; }
leaf enable { container cli-fqdn-option {
type boolean; description "client fqdn option";
mandatory true; leaf enable {
description "indicate whether this type boolean;
option will be included in the mandatory true;
option set"; description "indicate whether this
} option will be included in the
leaf server-initiate-update { option set";
type boolean; }
mandatory true; leaf server-initiate-update {
description "server initiate"; type boolean;
mandatory true;
description "server initiate";
}
leaf client-initiate-update {
type boolean;
mandatory true;
description "client initiate";
}
leaf modify-name-from-cli {
type boolean;
mandatory true;
description "modify by client";
}
}
container timezone-option {
description "timezone option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be included in the
option set";
}
leaf tz-posix {
type string;
mandatory true;
description "tz posix";
}
leaf tz-database {
type string;
mandatory true;
description "tz database";
}
}
container ntp-server-option {
description "ntp server option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be included in the
option set";
}
list ntp-server {
key ntp-serv-id;
description "ntp server info";
leaf ntp-serv-id {
type uint8;
mandatory true;
description "ntp server id";
}
leaf ntp-serv-addr {
type inet:ipv6-address;
mandatory true;
description "ntp server addr";
}
leaf ntp-serv-mul-addr {
type inet:ipv6-address;
mandatory true;
description "ntp server multicast
addr";
}
leaf ntp-serv-fqdn {
type string;
mandatory true;
description "ntp server fqdn";
}
}
}
container sntp-server-option {
description "sntp server option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be included in the
option set";
}
list sntp-server {
key sntp-serv-id;
description "sntp server info";
leaf sntp-serv-id {
type uint8;
mandatory true;
description "sntp server id";
}
leaf sntp-serv-addr {
type inet:ipv6-address;
mandatory true;
description "sntp server addr";
}
}
}
container network-boot-option {
description "network boot option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be included in the
option set";
}
list boot-file {
key boot-file-id;
description "boot file info";
leaf boot-file-id {
type uint8;
mandatory true;
description "boot file id";
}
leaf-list suitable-arch-type {
type uint16;
description "architecture type";
}
leaf-list suitable-net-if {
type uint32;
description "network interface";
}
leaf boot-file-url {
type string;
mandatory true;
description "url for boot file";
}
list boot-file-paras {
key para-id;
description "boot file parameters";
leaf para-id {
type uint8;
mandatory true;
description "parameter id";
}
leaf parameter {
type string;
mandatory true;
description "parameter
value";
}
}
}
}
container dslite-option {
description "dslite option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be included in the
option set";
}
leaf dslite-aftr-name {
type string;
mandatory true;
description "aftr name";
}
}
container kerberos-option {
description "kerberos option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be included in the
option set";
}
leaf default-realm-name {
type string;
mandatory true;
description "default realm name";
}
list kdc-info {
key kdc-id;
description "kdc info";
leaf kdc-id {
type uint8;
mandatory true;
description "kdc id";
}
leaf priority {
type uint16;
mandatory true;
description "priority";
}
leaf weight {
type uint16;
mandatory true;
description "weight";
}
leaf transport-type {
type uint8;
mandatory true;
description "transport type";
}
leaf port-number {
type uint16;
mandatory true;
description "port number";
}
leaf kdc-ipv6-addr {
type inet:ipv6-address;
mandatory true;
description "kdc ipv6 addr";
}
leaf realm-name {
type string;
mandatory true;
description "realm name";
}
}
}
container addr-selection-option {
description "address selection option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be included in the
option set";
}
leaf a-bit-set {
type boolean;
mandatory true;
description "a bit";
}
leaf p-bit-set {
type boolean;
mandatory true;
description "p bit";
}
list policy-table {
key policy-id;
description "policy table";
leaf policy-id {
type uint8;
mandatory true;
description "policy id";
}
leaf label {
type uint8;
mandatory true;
description "label";
} }
leaf client-initiate-update { leaf precedence {
type boolean; type uint8;
mandatory true; mandatory true;
description "client initiate"; description "precedence";
} }
leaf modify-name-from-cli { leaf prefix-len {
type boolean; type uint8;
mandatory true; mandatory true;
description "modify by client"; description "prefix length";
} }
} leaf prefix {
container timezone-option { type inet:ipv6-prefix;
description "timezone option"; mandatory true;
leaf enable { description "prefix";
type boolean; }
mandatory true; }
description "indicate whether this }
option will be included in the container sol-max-rt-option {
option set"; description "sol max rt option";
} leaf enable {
leaf tz-posix { type boolean;
type string; mandatory true;
mandatory true; description "indicate whether this
description "tz posix"; option will be included in the
} option set";
leaf tz-database { }
type string; leaf sol-max-rt-value {
mandatory true; type yang:timeticks;
description "tz database"; mandatory true;
} description "sol max rt value";
} }
container ntp-server-option { }
description "ntp server option"; container inf-max-rt-option {
leaf enable { description "inf max rt option";
type boolean; leaf enable {
mandatory true; type boolean;
description "indicate whether this mandatory true;
option will be included in the description "indicate whether this
option set"; option will be included in the
} option set";
list ntp-server { }
key ntp-serv-id; leaf inf-max-rt-value {
description "ntp server info"; type yang:timeticks;
leaf ntp-serv-id { mandatory true;
type uint8; description "inf max rt value";
mandatory true; }
description "ntp server id"; }
container pcp-server-option {
description "pcp server option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be included in the
option set";
}
list pcp-server {
key pcp-serv-id;
description "pcp server info";
leaf pcp-serv-id {
type uint8;
mandatory true;
description "pcp server id";
}
leaf pcp-serv-addr {
type inet:ipv6-address;
mandatory true;
description "pcp server addr";
}
}
}
container s46-rule-option {
description "s46 rule option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be included in the
option set";
}
list s46-rule {
key rule-id;
description "s46 rule";
leaf rule-id {
type uint8;
mandatory true;
description "rule id";
}
leaf rule-type {
type enumeration {
enum "BMR" {
description "BMR";
}
enum "FMR" {
description "FMR";
} }
leaf ntp-serv-addr { }
type inet:ipv6-address; mandatory true;
mandatory true; description "rule type";
description "ntp server addr"; }
} leaf prefix4-len {
leaf ntp-serv-mul-addr { type uint8;
type inet:ipv6-address; mandatory true;
mandatory true; description "ipv4 prefix length";
description "ntp server multicast }
addr"; leaf ipv4-prefix {
} type inet:ipv4-prefix;
leaf ntp-serv-fqdn { mandatory true;
type string; description "ipv4 prefix";
mandatory true; }
description "ntp server fqdn"; leaf prefix6-len {
} type uint8;
} mandatory true;
} description "ipv6 prefix length";
container sntp-server-option { }
description "sntp server option"; leaf ipv6-prefix {
leaf enable { type inet:ipv6-prefix;
type boolean; mandatory true;
mandatory true; description "ipv6 prefix";
description "indicate whether this }
option will be included in the uses portset-para;
option set"; }
} }
list sntp-server { container s46-br-option {
key sntp-serv-id; description "s46 br option";
description "sntp server info"; leaf enable {
leaf sntp-serv-id { type boolean;
type uint8; mandatory true;
mandatory true; description "indicate whether this
description "sntp server id"; option will be included in the
} option set";
leaf sntp-serv-addr { }
type inet:ipv6-address; list br {
mandatory true; key br-id;
description "sntp server addr"; description "br info";
} leaf br-id {
} type uint8;
} mandatory true;
container network-boot-option { description "br id";
description "network boot option"; }
leaf enable { leaf br-ipv6-addr {
type boolean; type inet:ipv6-address;
mandatory true; mandatory true;
description "indicate whether this description "br ipv6 addr";
option will be included in the }
option set"; }
} }
list boot-file { container operator-option-ipv6-address {
key boot-file-id; description "operator ipv6 address option";
description "boot file info"; leaf enable {
leaf boot-file-id { type boolean;
type uint8; mandatory true;
mandatory true; description "indicate whether this
description "boot file id"; option will be included in the
} option set";
leaf-list suitable-arch-type { }
type uint16; list operator-ipv6-addr {
description "architecture type"; key operator-ipv6-addr-id;
} description "operator ipv6 address info";
leaf-list suitable-net-if { leaf operator-ipv6-addr-id {
type uint32; type uint8;
description "network interface"; mandatory true;
} description "operator ipv6 address id";
leaf boot-file-url { }
type string; leaf operator-ipv6-addr {
mandatory true; type inet:ipv6-address;
description "url for boot file"; mandatory true;
} description "operator ipv6 address id";
list boot-file-paras { }
key para-id; }
description "boot file parameters"; }
leaf para-id { container operator-option-single-flag {
type uint8; description "operator single flag";
mandatory true; leaf enable {
description "parameter id"; type boolean;
} mandatory true;
leaf parameter { description "indicate whether this
type string; option will be included in the
mandatory true; option set";
description "parameter }
value"; list flag {
} key flag-id;
} description "operator single flag info";
} leaf flag-id {
} type uint8;
container dslite-option { mandatory true;
description "dslite option"; description "operator single flag id";
leaf enable { }
type boolean; leaf flag-value{
mandatory true; type boolean;
description "indicate whether this mandatory true;
option will be included in the description "operator single flag value";
option set"; }
} }
leaf dslite-aftr-name { }
type string; container operator-option-ipv6-prefix {
mandatory true; description "operator ipv6 prefix option";
description "aftr name"; leaf enable {
} type boolean;
} mandatory true;
container kerberos-option { description "indicate whether this
description "kerberos option"; option will be included in the
leaf enable { option set";
type boolean; }
mandatory true; list operator-ipv6-prefix{
description "indicate whether this key operator-ipv6-prefix-id;
option will be included in the description "operator ipv6 prefix info";
option set"; leaf operator-ipv6-prefix-id {
} type uint8;
leaf default-realm-name { mandatory true;
type string; description "operator ipv6 prefix id";
mandatory true; }
description "default realm name"; leaf operator-ipv6-prefix6-len{
} type uint8;
list kdc-info { mandatory true;
key kdc-id; description "operator ipv6 prefix length";
description "kdc info"; }
leaf kdc-id { leaf operator-ipv6-prefix {
type uint8; type inet:ipv6-prefix;
mandatory true; mandatory true;
description "kdc id"; description "operator ipv6 prefix";
} }
leaf priority { }
type uint16; }
mandatory true; container operator-option-int32 {
description "priority"; description "operator integer 32 option";
} leaf enable {
leaf weight { type boolean;
type uint16; mandatory true;
mandatory true; description "indicate whether this
description "weight"; option will be included in the
} option set";
leaf transport-type { }
type uint8; list int32val{
mandatory true; key int32val-id;
description "transport type"; description "operator integer 32 info";
} leaf int32val-id {
leaf port-number { type uint8;
type uint16; mandatory true;
mandatory true; description "operator integer 32 id";
description "port number"; }
} leaf int32val{
leaf kdc-ipv6-addr { type uint32;
type inet:ipv6-address; mandatory true;
mandatory true; description "operator integer 32 value";
description "kdc ipv6 addr"; }
} }
leaf realm-name { }
type string; container operator-option-int16 {
mandatory true; description "operator integer 16 option";
description "realm name"; leaf enable {
} type boolean;
} mandatory true;
} description "indicate whether this
container addr-selection-option { option will be included in the
description "address selection option"; option set";
leaf enable { }
type boolean; list int16val{
mandatory true; key int16val-id;
description "indicate whether this description "operator integer 16 info";
option will be included in the leaf int16val-id {
option set"; type uint8;
} mandatory true;
leaf a-bit-set { description "operator integer 16 id";
type boolean; }
mandatory true; leaf int16val{
description "a bit"; type uint16;
} mandatory true;
leaf p-bit-set { description "operator integer 16 value";
type boolean; }
mandatory true; }
description "p bit"; }
} container operator-option-int8 {
list policy-table { description "operator integer 8 option";
key policy-id; leaf enable {
description "policy table"; type boolean;
leaf policy-id { mandatory true;
type uint8; description "indicate whether this
mandatory true; option will be included in the
description "policy id"; option set";
} }
leaf label { list int8val{
type uint8; key int32val-id;
mandatory true; description "operator integer 8 info";
description "label"; leaf int8val-id {
} type uint8;
leaf precedence { mandatory true;
type uint8; description "operator integer 8 id";
mandatory true; }
description "precedence"; leaf int8val{
} type uint8;
leaf prefix-len { mandatory true;
type uint8; description "operator integer 8 value";
mandatory true; }
description "prefix length"; }
} }
leaf prefix { container operator-option-uri {
type inet:ipv6-prefix; description "operator uri option";
mandatory true; leaf enable {
description "prefix"; type boolean;
} mandatory true;
} description "indicate whether this
} option will be included in the
container sol-max-rt-option { option set";
description "sol max rt option"; }
leaf enable { list uri{
type boolean; key uri-id;
mandatory true; description "operator uri info";
description "indicate whether this leaf uri-id {
option will be included in the type uint8;
option set"; mandatory true;
} description "operator uri id";
leaf sol-max-rt-value { }
type yang:timeticks; leaf uri{
mandatory true; type string;
description "sol max rt value"; mandatory true;
} description "operator uri value";
} }
container inf-max-rt-option { }
description "inf max rt option"; }
leaf enable { container operator-option-textstring {
type boolean; description "operator itext string option";
mandatory true; leaf enable {
description "indicate whether this type boolean;
option will be included in the mandatory true;
option set"; description "indicate whether this
} option will be included in the
leaf inf-max-rt-value { option set";
type yang:timeticks; }
mandatory true; list textstring{
description "inf max rt value"; key textstring-id;
} description "operator text string info";
} leaf textstring-id {
container pcp-server-option { type uint8;
description "pcp server option"; mandatory true;
leaf enable { description "operator text string id";
type boolean; }
mandatory true; leaf textstring{
description "indicate whether this type string;
option will be included in the mandatory true;
option set"; description "operator text string value";
} }
list pcp-server { }
key pcp-serv-id; }
description "pcp server info"; container operator-option-var-data {
leaf pcp-serv-id { description "operator variable length data option";
type uint8; leaf enable {
mandatory true; type boolean;
description "pcp server id"; mandatory true;
} description "indicate whether this
leaf pcp-serv-addr { option will be included in the
type inet:ipv6-address; option set";
mandatory true; }
description "pcp server addr"; list int32val{
} key var-data-id;
} description "operator ivariable length data info";
} leaf var-data-id {
container s46-rule-option { type uint8;
description "s46 rule option"; mandatory true;
leaf enable { description "operator variable length id";
type boolean; }
mandatory true; leaf var-data{
description "indicate whether this type binary;
option will be included in the mandatory true;
option set"; description "operator variable length value";
} }
list s46-rule { }
key rule-id; }
description "s46 rule"; container operator-option-dns-wire {
leaf rule-id { description "operator dns wire format domain name list option";
type uint8; leaf enable {
mandatory true; type boolean;
description "rule id"; mandatory true;
} description "indicate whether this
leaf rule-type { option will be included in the
type enumeration { option set";
enum "BMR" { }
description "BMR"; list operator-option-dns-wire{
} key operator-option-dns-wire-id;
enum "FMR" { description "operator dns wire format info";
description "FMR"; leaf operator-option-dns-wire-id {
} type uint8;
} mandatory true;
mandatory true; description "operator dns wire format id";
description "rule type"; }
} leaf operator-option-dns-wire{
leaf prefix4-len { type binary;
type uint8; mandatory true;
mandatory true; description "operator dns wire format value";
description "ipv4 prefix length"; }
} }
leaf ipv4-prefix { }
type inet:ipv4-prefix; container s46-dmr-option {
mandatory true; description "s46 dmr option";
description "ipv4 prefix"; leaf enable {
} type boolean;
leaf prefix6-len { mandatory true;
type uint8; description "indicate whether this
mandatory true; option will be included in the
description "ipv6 prefix length"; option set";
} }
leaf ipv6-prefix { list dmr {
type inet:ipv6-prefix; key dmr-id;
mandatory true; description "dmr info";
description "ipv6 prefix"; leaf dmr-id {
} type uint8;
uses portset-para; mandatory true;
} description "dmr id";
} }
container s46-br-option { leaf dmr-prefix-len {
description "s46 br option"; type uint8;
leaf enable { mandatory true;
type boolean; description "dmr prefix length";
mandatory true; }
description "indicate whether this leaf dmr-ipv6-prefix {
option will be included in the type inet:ipv6-prefix;
option set"; mandatory true;
} description "dmr ipv6 prefix";
list br { }
key br-id; }
description "br info"; }
leaf br-id { container s46-v4-v6-binding-option {
type uint8; description "s46 binding option";
mandatory true; leaf enable {
description "br id"; type boolean;
} mandatory true;
leaf br-ipv6-addr { description "indicate whether this
type inet:ipv6-address; option will be included in the
mandatory true; option set";
description "br ipv6 addr"; }
} list ce {
key ce-id;
description "ce info";
leaf ce-id {
type uint8;
mandatory true;
description "ce id";
}
leaf ipv4-addr {
type inet:ipv4-address;
mandatory true;
description "ce ipv4 addr";
}
leaf bind-prefix6-len {
type uint8;
mandatory true;
description "bind ipv6 prefix
length";
}
leaf bind-ipv6-prefix {
type inet:ipv6-prefix;
mandatory true;
description "bind ipv6 prefix";
}
uses portset-para;
}
}
}
}
container network-ranges {
description "This model supports a hierarchy
to achieve dynamic configuration. That is to
say we could configure the server at different
levels through this model. The top level is a
global level which is defined as the container
'network-ranges'. The following levels are
defined as sub-containers under it. The
'network-ranges' contains the parameters
(e.g. option-sets) that would be allocated to
all the clients served by this server.";
leaf-list option-set {
type uint8;
description "a specific option set";
}
list network-range {
key network-range-id;
description "Under the 'network-ranges'
container, a 'network-range' list is
defined to configure the server at a
network level which is also considered
as the second level. Different network
are identified by the key 'network-range-id'.
This is because a server may have different
configuration parameters (e.g. option sets)
for different networks.";
leaf network-range-id {
type uint8;
mandatory true;
description "equivalent to subnet id";
}
leaf network-description {
type string;
mandatory true;
description "description of the subnet";
}
leaf network-prefix {
type inet:ipv6-prefix;
mandatory true;
description "subnet prefix";
}
leaf inherit-option-set {
type boolean;
mandatory true;
description "indicate whether to inherit
the configuration from higher level";
}
leaf-list option-set {
type uint8;
description "configured option set";
}
container address-pools {
description "A container describes
the DHCPv6 server's address pools.";
list address-pool {
key pool-id;
description "A DHCPv6 server can
be configured with several address
pools. This list defines such
address pools which are distinguish
by the key called 'pool-name'.";
leaf pool-id {
type uint8;
mandatory true;
description "pool id";
}
leaf pool-prefix {
type inet:ipv6-prefix;
mandatory true;
description "pool prefix";
}
leaf start-address {
type inet:ipv6-address-no-zone;
mandatory true;
description "start address";
}
leaf end-address {
type inet:ipv6-address-no-zone;
mandatory true;
description "end address";
}
leaf renew-time {
type yang:timeticks;
mandatory true;
description "renew time";
}
leaf rebind-time {
type yang:timeticks;
mandatory true;
description "rebind time";
}
leaf preferred-lifetime {
type yang:timeticks;
mandatory true;
description "preferred lifetime
for IA";
}
leaf valid-lifetime {
type yang:timeticks;
mandatory true;
description "valid liftime for IA";
}
leaf total-ipv6-count {
type uint64;
config "false";
mandatory true;
description "how many ipv6
addressses are in the pool";
}
leaf used-ipv6-count {
type uint64;
config "false";
mandatory true;
description "how many are
allocated";
}
leaf utilization-ratio {
type threshold;
mandatory true;
description "the utilization ratio";
}
leaf inherit-option-set {
type boolean;
mandatory true;
description "indicate whether to
inherit the configuration from
higher level";
}
leaf-list option-set {
type uint8;
description "configured option
set";
}
container reserved-addresses {
description "reserved addresses";
list static-binding {
key cli-id;
description "static binding of
reserved addresses";
leaf cli-id {
type uint32;
mandatory true;
description "client id";
}
leaf duid {
type duidtype;
mandatory true;
description "DHCP Unique
Identifer";
}
leaf-list reserv-addr {
type inet:ipv6-address;
description "reserved addr";
}
}
leaf-list other-reserv-addr {
type inet:ipv6-address;
description "other reserved
addr";
}
}
}
list binding-info {
key cli-id;
config "false";
description "A list records a binding
information for each DHCPv6 client
that has already been allocated IPv6
addresses.";
leaf cli-id {
type uint32;
mandatory true;
description "client id";
}
leaf duid {
type duidtype;
mandatory true;
description "DHCP Unique Identifer";
}
list cli-ia {
key iaid;
description "client IA";
leaf ia-type {
type string;
mandatory true;
description "IA type";
}
leaf iaid {
type uint32;
mandatory true;
description "IAID";
}
leaf-list cli-addr {
type inet:ipv6-address;
description "client addr";
}
leaf pool-id {
type uint8;
mandatory true;
description "pool id";
}
}
}
}
container prefix-pools {
description "If a server supports prefix
delegation function, this container will
be used to define the delegating router's
refix pools.";
list prefix-pool {
key pool-id;
description "Similar to server's
address pools, a delegating router
can also be configured with multiple
prefix pools specified by a list
called 'prefix-pool'.";
leaf pool-id {
type uint8;
mandatory true;
description "pool id";
}
leaf prefix {
type inet:ipv6-prefix;
mandatory true;
description "ipv6 prefix";
}
leaf prefix-length {
type uint8;
mandatory true;
description "prefix length";
}
leaf renew-time {
type yang:timeticks;
mandatory true;
description "renew time";
}
leaf rebind-time {
type yang:timeticks;
mandatory true;
description "rebind time";
}
leaf preferred-lifetime {
type yang:timeticks;
mandatory true;
description "preferred lifetime for
IA";
}
leaf valid-lifetime {
type yang:timeticks;
mandatory true;
description "valid lifetime for IA";
}
leaf utilization-ratio {
type threshold;
mandatory true;
description "utilization ratio";
}
leaf inherit-option-set {
type boolean;
mandatory true;
description "whether to inherit
configuration from higher level";
}
leaf-list option-set {
type uint8;
description "configured option
set";
}
container reserved-prefixes {
description "reserved prefixes";
list static-binding {
key cli-id;
description "static binding";
leaf cli-id {
type uint32;
mandatory true;
description "client id";
}
leaf duid {
type duidtype;
mandatory true;
description "DHCP Unique
Identifer";
}
leaf reserv-prefix-len {
type uint8;
mandatory true;
description "reserved
prefix length";
}
leaf reserv-prefix {
type inet:ipv6-prefix;
mandatory true;
description
"reserved prefix";
}
}
leaf exclude-prefix-len {
type uint8;
mandatory true;
description "exclude prefix
length";
}
leaf exclude-prefix {
type inet:ipv6-prefix;
mandatory true;
description "exclude prefix";
}
list other-reserv-prefix {
key reserv-id;
description
"other reserved prefix";
leaf reserv-id {
type uint8;
mandatory true;
description
"reserved prefix id";
}
leaf prefix-len {
type uint8;
mandatory true;
description "prefix length";
}
leaf prefix {
type inet:ipv6-prefix;
mandatory true;
description
"reserved prefix";
}
}
}
}
list binding-info {
key cli-id;
config "false";
description "A list records a
binding information for each
DHCPv6 client that has already
been allocated IPv6 addresses.";
leaf cli-id {
type uint32;
mandatory true;
description "client id";
}
leaf duid {
type duidtype;
mandatory true;
description "DHCP Unique
Identifier";
}
list cli-iapd {
key iaid;
description "client IAPD";
leaf iaid {
type uint32;
mandatory true;
description "IAID";
}
leaf-list cli-prefix {
type inet:ipv6-prefix;
description
"client ipv6 prefix";
}
leaf-list cli-prefix-len {
type uint8;
description
"client prefix length";
}
leaf pool-id {
type uint8;
mandatory true;
description "pool id";
}
}
}
}
container hosts {
description "hosts level";
list host {
key cli-id;
description "specific host";
leaf cli-id {
type uint32;
mandatory true;
description "client id";
}
leaf duid {
type duidtype;
mandatory true;
description "DHCP Unique
Identifer";
}
leaf inherit-option-set {
type boolean;
mandatory true;
description "whether to inherit
configuration
from higher level";
}
leaf-list option-set {
type uint8;
description "configured option set";
}
leaf nis-domain-name {
type string;
description "nis domain name";
}
leaf nis-plus-domain-name {
type string;
description "nisp domain name";
}
}
}
}
}
container relay-opaque-paras {
description "This container contains some
opaque values in Relay Agent options that
need to be configured on the server side
only for value match. Such Relay Agent
options include Interface-Id option,
Remote-Id option and Subscriber-Id option.";
list relays {
key relay-name;
description "relay agents";
leaf relay-name {
type string;
mandatory true;
description "relay agent name";
}
list interface-info {
key if-name;
description "interface info";
leaf if-name {
type string;
mandatory true;
description "interface name";
}
leaf interface-id {
type string;
mandatory true;
description "interface id";
}
}
list subscribers {
key subscriber;
description "subscribers";
leaf subscriber {
type uint8;
mandatory true;
description "subscriber";
}
leaf subscriber-id {
type string;
mandatory true;
description "subscriber id";
}
}
list remote-host {
key ent-num;
description "remote host";
leaf ent-num {
type uint32;
mandatory true;
description "enterprise number";
}
leaf remote-id {
type string;
mandatory true;
description "remote id";
}
}
}
}
container rsoo-enabled-options {
description "rsoo enabled options";
list rsoo-enabled-option{
key option-code;
description "rsoo enabled option";
leaf option-code {
type uint16;
mandatory true;
description "option code";
}
leaf description {
type string;
mandatory true;
description "description of the option";
}
}
}
container packet-stats {
config "false";
description "A container presents
the packet statistics related to
the DHCPv6 server.";
leaf solicit-count {
type uint32;
mandatory true;
description "solicit counter";
} }
} leaf request-count {
container s46-dmr-option { type uint32;
description "s46 dmr option"; mandatory true;
leaf enable { description "request counter";
type boolean; }
mandatory true; leaf renew-count {
description "indicate whether this type uint32;
option will be included in the mandatory true;
option set"; description "renew counter";
} }
list dmr { leaf rebind-count {
key dmr-id; type uint32;
description "dmr info"; mandatory true;
leaf dmr-id { description "rebind counter";
type uint8; }
mandatory true; leaf decline-count {
description "dmr id"; type uint32;
} mandatory true;
leaf dmr-prefix-len { description "decline count";
type uint8; }
mandatory true; leaf release-count {
description "dmr prefix length"; type uint32;
} mandatory true;
leaf dmr-ipv6-prefix { description "release counter";
type inet:ipv6-prefix; }
mandatory true; leaf info-req-count {
description "dmr ipv6 prefix"; type uint32;
} mandatory true;
} description "information request
} counter";
container s46-v4-v6-binding-option { }
description "s46 binding option"; leaf advertise-count {
leaf enable { type uint32;
type boolean; mandatory true;
mandatory true; description "advertise counter";
description "indicate whether this }
option will be included in the leaf confirm-count {
option set"; type uint32;
} mandatory true;
list ce { description "confirm counter";
key ce-id; }
description "ce info"; leaf reply-count {
leaf ce-id { type uint32;
type uint8; mandatory true;
mandatory true; description "reply counter";
description "ce id"; }
} leaf reconfigure-count {
leaf ipv4-addr { type uint32;
type inet:ipv4-address; mandatory true;
mandatory true; description "reconfigure counter";
description "ce ipv4 addr"; }
} leaf relay-forward-count {
leaf bind-prefix6-len { type uint32;
type uint8; mandatory true;
mandatory true; description "relay forward counter";
description "bind ipv6 prefix }
length"; leaf relay-reply-count {
} type uint32;
leaf bind-ipv6-prefix { mandatory true;
type inet:ipv6-prefix; description "relay reply counter";
mandatory true; }
description "bind ipv6 prefix"; }
} }
uses portset-para;
}
}
}
}
container network-ranges {
description "This model supports a hierarchy
to achieve dynamic configuration. That is to
say we could configure the server at different
levels through this model. The top level is a
global level which is defined as the container
'network-ranges'. The following levels are
defined as sub-containers under it. The
'network-ranges' contains the parameters
(e.g. option-sets) that would be allocated to
all the clients served by this server.";
leaf-list option-set {
type uint8;
description "a specific option set";
}
list network-range {
key network-range-id;
description "Under the 'network-ranges'
container, a 'network-range' list is
defined to configure the server at a
network level which is also considered
as the second level. Different network
are identified by the key 'network-range-id'.
This is because a server may have different
configuration parameters (e.g. option sets)
for different networks.";
leaf network-range-id {
type uint8;
mandatory true;
description "equivalent to subnet id";
}
leaf network-description {
type string;
mandatory true;
description "description of the subnet";
}
leaf network-prefix {
type inet:ipv6-prefix;
mandatory true;
description "subnet prefix";
}
leaf inherit-option-set {
type boolean;
mandatory true;
description "indicate whether to inherit
the configuration from higher level";
}
leaf-list option-set {
type uint8;
description "configured option set";
}
container address-pools {
description "A container describes
the DHCPv6 server's address pools.";
list address-pool {
key pool-id;
description "A DHCPv6 server can
be configured with several address
pools. This list defines such
address pools which are distinguish
by the key called 'pool-name'.";
leaf pool-id {
type uint8;
mandatory true;
description "pool id";
}
leaf pool-prefix {
type inet:ipv6-prefix;
mandatory true;
description "pool prefix";
}
leaf start-address {
type inet:ipv6-address-no-zone;
mandatory true;
description "start address";
} container relay {
leaf end-address { description "dhcpv6 relay portion";
type inet:ipv6-address-no-zone; container relay-attributes {
mandatory true; description "A container describes
description "end address"; some basic attributes of the relay
} agent including some relay agent
leaf renew-time { specific options data that need to
type yang:timeticks; be configured previously. Such options
mandatory true; include Remote-Id option and
description "renew time"; Subscriber-Id option.";
} leaf name {
leaf rebind-time { type string;
type yang:timeticks; mandatory true;
mandatory true; description "relay agent name";
description "rebind time"; }
} leaf enable {
leaf preferred-lifetime { type boolean;
type yang:timeticks; mandatory true;
mandatory true; description "whether the relay is enabled";
description "preferred lifetime }
for IA"; leaf description {
} type string;
leaf valid-lifetime { description "description of the relay agent";
type yang:timeticks; }
mandatory true; leaf-list dest-addrs {
description "valid liftime for IA"; type inet:ipv6-address;
} description "Each DHCPv6 relay agent may
leaf total-ipv6-count { be configured with a list of destination
type uint64; addresses. This node defines such a list
config "false"; of IPv6 addresses that may include
mandatory true; unicast addresses, multicast addresses
description "how many ipv6 or other addresses.";
addressses are in the pool"; }
} list subscribers {
leaf used-ipv6-count { key subscriber;
type uint64; description "subscribers";
config "false"; leaf subscriber {
mandatory true; type uint8;
description "how many are mandatory true;
allocated"; description "subscriber";
} }
leaf utilization-ratio { leaf subscriber-id {
type threshold; type string;
mandatory true; mandatory true;
description "the utilization ratio"; description "subscriber id";
} }
leaf inherit-option-set { }
type boolean; list remote-host {
mandatory true; key ent-num;
description "indicate whether to description "remote host";
inherit the configuration from leaf ent-num {
higher level"; type uint32;
} mandatory true;
leaf-list option-set { description "enterprise number";
type uint8; }
description "configured option leaf remote-id {
set"; type string;
} mandatory true;
container reserved-addresses { description "remote id";
description "reserved addresses"; }
list static-binding { }
key cli-id; uses vendor-infor;
description "static binding of }
reserved addresses"; container relay-supplied-options-option {
leaf cli-id { description "relay supplied options option";
type uint32; list rsoo-set {
mandatory true; key rsoo-set-id;
description "client id"; description "rsoo set";
} leaf rsoo-set-id {
leaf duid { type uint8;
type duidtype; mandatory true;
mandatory true; description "rsoo set id";
description "DHCP Unique }
Identifer"; container erp-local-domain-name-option {
} description "erp local domain name option";
leaf-list reserv-addr { leaf enable {
type inet:ipv6-address; type boolean;
description "reserved addr"; mandatory true;
} description "indicate whether
} this option is included in the
leaf-list other-reserv-addr { rsoo set";
type inet:ipv6-address; }
description "other reserved list erp-for-client {
addr"; key cli-id;
} description "erp for client";
} leaf cli-id {
} type uint32;
list binding-info { mandatory true;
key cli-id; description "client id";
config "false"; }
description "A list records a binding leaf duid {
information for each DHCPv6 client type duidtype;
that has already been allocated IPv6 mandatory true;
addresses."; description "DHCP Unique
leaf cli-id { Identifer";
type uint32; }
mandatory true; leaf erp-name {
description "client id"; type string;
} mandatory true;
leaf duid { description "erp name";
type duidtype; }
mandatory true; }
description "DHCP Unique Identifer"; }
} }
list cli-ia { }
key iaid; list relay-if {
description "client IA"; key if-name;
leaf ia-type { description "A relay agent may have several
type string; interfaces, we should provide a way to configure
mandatory true; and manage parameters on the interface-level. A
description "IA type"; list that describes specific interfaces and
} their corresponding parameters is employed to
leaf iaid { fulfil the configfuration. Here we use a string
type uint32; called 'if-name; as the key of list.";
mandatory true; leaf if-name {
description "IAID"; type string;
} mandatory true;
leaf-list cli-addr { description "interface name";
type inet:ipv6-address; }
description "client addr"; leaf enable {
} type boolean;
leaf pool-id { mandatory true;
type uint8; description
mandatory true; "whether this interface is enabled";
description "pool id"; }
} leaf ipv6-address {
} type inet:ipv6-address;
} description
} "ipv6 address for this interface";
container prefix-pools { }
description "If a server supports prefix leaf interface-id {
delegation function, this container will type string;
be used to define the delegating router's description "interface id";
refix pools."; }
list prefix-pool { leaf-list rsoo-set {
key pool-id; type uint8;
description "Similar to server's description "configured rsoo set";
address pools, a delegating router }
can also be configured with multiple list pd-route {
prefix pools specified by a list key pd-route-id;
called 'prefix-pool'."; description "pd route";
leaf pool-id { leaf pd-route-id {
type uint8; type uint8;
mandatory true; mandatory true;
description "pool id"; description "pd route id";
} }
leaf prefix { leaf requesting-router-id {
type inet:ipv6-prefix; type uint32;
mandatory true; mandatory true;
description "ipv6 prefix"; description "requesting router id";
} }
leaf prefix-length { leaf delegating-router-id {
type uint8; type uint32;
mandatory true; mandatory true;
description "prefix length"; description "delegating router id";
} }
leaf renew-time { leaf next-router {
type yang:timeticks; type inet:ipv6-address;
mandatory true; mandatory true;
description "renew time"; description "next router";
} }
leaf rebind-time { leaf last-router {
type yang:timeticks; type inet:ipv6-address;
mandatory true; mandatory true;
description "rebind time"; description "previous router";
} }
leaf preferred-lifetime { }
type yang:timeticks; list next-entity {
mandatory true; key dest-addr;
description "preferred lifetime for description "This node defines
IA"; a list that is used to describe
} the next hop entity of this
leaf valid-lifetime { relay distinguished by their
type yang:timeticks; addresses.";
mandatory true; leaf dest-addr {
description "valid lifetime for IA"; type inet:ipv6-address;
} mandatory true;
leaf utilization-ratio { description "destination addr";
type threshold; }
mandatory true; leaf available {
description "utilization ratio"; type boolean;
} mandatory true;
leaf inherit-option-set { description "whether the next entity
type boolean; is available or not";
mandatory true; }
description "whether to inherit leaf multicast {
configuration from higher level"; type boolean;
} mandatory true;
leaf-list option-set { description "whether the address is
type uint8; multicast or not";
description "configured option }
set"; leaf server {
type boolean;
mandatory true;
description "whether the next entity
is a server";
}
container packet-stats {
config "false";
description "packet statistics";
leaf cli-packet-rvd-count {
type uint32;
mandatory true;
description "client received packet
counter";
}
leaf solicit-rvd-count {
type uint32;
mandatory true;
description
"solicit received counter";
}
leaf request-rvd-count {
type uint32;
mandatory true;
description
"request received counter";
}
leaf renew-rvd-count {
type uint32;
mandatory true;
description
"renew received counter";
} }
container reserved-prefixes { leaf rebind-rvd-count {
description "reserved prefixes"; type uint32;
list static-binding { mandatory true;
key cli-id; description
description "static binding"; "rebind recevied counter";
leaf cli-id { }
type uint32; leaf decline-rvd-count {
mandatory true; type uint32;
description "client id"; mandatory true;
} description
leaf duid { "decline received counter";
type duidtype; }
mandatory true; leaf release-rvd-count {
description "DHCP Unique type uint32;
Identifer"; mandatory true;
} description
leaf reserv-prefix-len { "release received counter";
type uint8; }
mandatory true; leaf info-req-rvd-count {
description "reserved type uint32;
prefix length"; mandatory true;
} description
leaf reserv-prefix { "information request counter";
type inet:ipv6-prefix; }
mandatory true; leaf relay-for-rvd-count {
description type uint32;
"reserved prefix"; mandatory true;
} description
} "relay forward received counter";
leaf exclude-prefix-len { }
type uint8; leaf relay-rep-rvd-count {
mandatory true; type uint32;
description "exclude prefix mandatory true;
length"; description
} "relay reply received counter";
leaf exclude-prefix { }
type inet:ipv6-prefix; leaf packet-to-cli-count {
mandatory true; type uint32;
description "exclude prefix"; mandatory true;
} description
list other-reserv-prefix { "packet to client counter";
key reserv-id; }
description leaf adver-sent-count {
"other reserved prefix"; type uint32;
leaf reserv-id { mandatory true;
type uint8; description
mandatory true; "advertisement sent counter";
description
"reserved prefix id";
}
leaf prefix-len {
type uint8;
mandatory true;
description "prefix length";
}
leaf prefix {
type inet:ipv6-prefix;
mandatory true;
description
"reserved prefix";
}
}
}
}
list binding-info {
key cli-id;
config "false";
description "A list records a
binding information for each
DHCPv6 client that has already
been allocated IPv6 addresses.";
leaf cli-id {
type uint32;
mandatory true;
description "client id";
}
leaf duid {
type duidtype;
mandatory true;
description "DHCP Unique
Identifier";
}
list cli-iapd {
key iaid;
description "client IAPD";
leaf iaid {
type uint32;
mandatory true;
description "IAID";
}
leaf-list cli-prefix {
type inet:ipv6-prefix;
description
"client ipv6 prefix";
}
leaf-list cli-prefix-len {
type uint8;
description
"client prefix length";
}
leaf pool-id {
type uint8;
mandatory true;
description "pool id";
}
}
}
}
container hosts {
description "hosts level";
list host {
key cli-id;
description "specific host";
leaf cli-id {
type uint32;
mandatory true;
description "client id";
}
leaf duid {
type duidtype;
mandatory true;
description "DHCP Unique
Identifer";
}
leaf inherit-option-set {
type boolean;
mandatory true;
description "whether to inherit
configuration
from higher level";
}
leaf-list option-set {
type uint8;
description "configured option set";
}
leaf nis-domain-name {
type string;
description "nis domain name";
}
leaf nis-plus-domain-name {
type string;
description "nisp domain name";
}
} }
} leaf confirm-sent-count {
} type uint32;
} mandatory true;
container relay-opaque-paras { description
description "This container contains some "confirm sent counter";
opaque values in Relay Agent options that }
need to be configured on the server side leaf reply-sent-count {
only for value match. Such Relay Agent type uint32;
options include Interface-Id option, mandatory true;
Remote-Id option and Subscriber-Id option."; description
list relays { "reply sent counter";
key relay-name; }
description "relay agents"; leaf reconfig-sent-count {
leaf relay-name { type uint32;
type string; mandatory true;
mandatory true; description
description "relay agent name"; "reconfigure sent counter";
} }
list interface-info { leaf relay-for-sent-count {
key if-name; type uint32;
description "interface info"; mandatory true;
leaf if-name { description
type string; "relay forward sent counter";
mandatory true; }
description "interface name"; leaf relay-rep-sent-count {
} type uint32;
leaf interface-id { mandatory true;
type string; description
mandatory true; "relay reply sent counter";
description "interface id"; }
} }
} }
list subscribers { }
key subscriber; container relay-stats {
description "subscribers"; config "false";
leaf subscriber { description "relay statistics";
type uint8; leaf cli-packet-rvd-count {
mandatory true; type uint32;
description "subscriber"; mandatory true;
} description "client packet received counter";
leaf subscriber-id { }
type string; leaf relay-for-rvd-count {
mandatory true; type uint32;
description "subscriber id"; mandatory true;
} description "relay forward received counter";
} }
list remote-host { leaf relay-rep-rvd-count {
key ent-num; type uint32;
description "remote host"; mandatory true;
leaf ent-num { description "relay reply recevied counter";
type uint32; }
mandatory true; leaf packet-to-cli-count {
description "enterprise number"; type uint32;
} mandatory true;
leaf remote-id { description "packet to client counter";
type string; }
mandatory true; leaf relay-for-sent-count {
description "remote id"; type uint32;
} mandatory true;
} description "relay forward sent counter";
} }
} leaf relay-rep-sent-count {
container rsoo-enabled-options { type uint32;
description "rsoo enabled options"; mandatory true;
list rsoo-enabled-option{ description "relay reply sent counter";
key option-code; }
description "rsoo enabled option"; leaf discarded-packet-count {
leaf option-code { type uint32;
type uint16; mandatory true;
mandatory true; description "discarded packet counter";
description "option code"; }
} }
leaf description { }
type string; container client {
mandatory true; description "dhcpv6 client portion";
description "description of the option"; list client-if {
} key if-name;
} description "A client may have several
} interfaces, it is more reasonable to
container packet-stats { configure and manage parameters on
config "false"; the interface-level. The list defines
description "A container presents specific client interfaces and their
the packet statistics related to data. Different interfaces are distinguished
the DHCPv6 server."; by the key which is a configurable string
leaf solicit-count { value.";
type uint32; leaf if-name {
mandatory true; type string;
description "solicit counter"; mandatory true;
} description "interface name";
leaf request-count { }
type uint32; leaf cli-id {
mandatory true; type uint32;
description "request counter"; mandatory true;
} description "client id";
leaf renew-count { }
type uint32; leaf duid {
mandatory true; type duidtype;
description "renew counter"; mandatory true;
} description "DHCP Unique
leaf rebind-count { Identifer";
type uint32; }
mandatory true; leaf enable {
description "rebind counter"; type boolean;
} mandatory true;
leaf decline-count { description "whether the interface is enabled";
type uint32; }
mandatory true; leaf description {
description "decline count"; type string;
} description
leaf release-count { "description of the client interface";
type uint32; }
mandatory true; leaf pd-function {
description "release counter"; type boolean;
} mandatory true;
leaf info-req-count { description "Whether the client
type uint32; can act as a requesting router
mandatory true; to request prefixes using prefix
description "information request delegation ([RFC3633]).";
counter"; }
} leaf rapid-commit {
leaf advertise-count { type boolean;
type uint32; mandatory true;
mandatory true; description "'1' indicates a client can
description "advertise counter"; initiate a Solicit-Reply message exchange
} by adding a Rapid Commit option in Solicit
leaf confirm-count { message. '0' means the client is not allowed
type uint32; to add a Rapid Commit option to request
mandatory true; addresses in a two-message exchange
description "confirm counter"; pattern.";
} }
leaf reply-count { container mo-tab {
type uint32; description "The management tab
mandatory true; label indicates the operation
description "reply counter"; mode of the DHCPv6 client. 'm'=1
} and 'o'=1 indicate the client
leaf reconfigure-count { will use DHCPv6 to obtain all
type uint32; the configuration data. 'm'=1
mandatory true; and 'o'=0 are a meaningless
description "reconfigure counter"; combination. 'm'=0 and 'o'=1
} indicate the client will use
leaf relay-forward-count { stateless DHCPv6 to obtain
type uint32; configuration data apart from
mandatory true; addresses/prefixes data.
description "relay forward counter";
}
leaf relay-reply-count {
type uint32;
mandatory true;
description "relay reply counter";
}
}
}
container relay { 'm'=0 and 'o'=0 represent the
description "dhcpv6 relay portion"; client will not use DHCPv6
container relay-attributes { but use SLAAC to achieve
description "A container describes configuration.";
some basic attributes of the relay leaf m-tab {
agent including some relay agent type boolean;
specific options data that need to mandatory true;
be configured previously. Such options description "m tab";
include Remote-Id option and }
Subscriber-Id option."; leaf o-tab {
leaf name { type boolean;
type string; mandatory true;
mandatory true; description "o tab";
description "relay agent name"; }
} }
leaf enable { container oro-options {
type boolean; description "oro options";
mandatory true; list oro-option {
description "whether the relay is enabled"; key option-code;
} description "oro option";
leaf description { leaf option-code {
type string; type uint16;
description "description of the relay agent"; mandatory true;
} description "option code";
leaf-list dest-addrs { }
type inet:ipv6-address; leaf description {
description "Each DHCPv6 relay agent may type string;
be configured with a list of destination mandatory true;
addresses. This node defines such a list description "description of oro
of IPv6 addresses that may include options";
unicast addresses, multicast addresses }
or other addresses."; }
} }
list subscribers { container client-configured-options {
key subscriber; description "client configured options";
description "subscribers"; list new-or-standard-cli-option {
leaf subscriber { key option-code;
type uint8; description "new or standard client option";
mandatory true; leaf option-code {
description "subscriber"; type uint16;
} mandatory true;
leaf subscriber-id { description "option code";
type string; }
mandatory true; leaf option-name {
description "subscriber id"; type string;
} mandatory true;
} description "option name";
list remote-host { }
key ent-num; leaf option-description {
description "remote host"; type string;
leaf ent-num { mandatory true;
type uint32; description "description of client
mandatory true; option";
description "enterprise number"; }
} leaf option-reference {
leaf remote-id { type string;
type string; description "the reference of option";
mandatory true; }
description "remote id"; leaf option-value {
} type string;
} mandatory true;
uses vendor-infor; description "the option value";
} }
container relay-supplied-options-option { }
description "relay supplied options option"; container user-class-option {
list rsoo-set { description "user class option";
key rsoo-set-id; leaf enable {
description "rsoo set"; type boolean;
leaf rsoo-set-id { mandatory true;
type uint8; description "indicate whether this
mandatory true; option will be configured at the
description "rsoo set id"; client";
} }
container erp-local-domain-name-option { list user-class {
description "erp local domain name option"; key user-class-id;
leaf enable { description "user class";
type boolean; leaf user-class-id {
mandatory true; type uint8;
description "indicate whether mandatory true;
this option is included in the description "user class id";
rsoo set"; }
} leaf user-class-info {
list erp-for-client { type string;
key cli-id; mandatory true;
description "erp for client"; description "user class info";
leaf cli-id { }
type uint32; }
mandatory true; }
description "client id"; container vendor-class-option {
} description "vendor class option";
leaf duid { leaf enable {
type duidtype; type boolean;
mandatory true; mandatory true;
description "DHCP Unique description "indicate whether this
Identifer"; option will be configured at the
} client";
leaf erp-name {
type string;
mandatory true;
description "erp name";
}
}
}
}
}
list relay-if {
key if-name;
description "A relay agent may have several
interfaces, we should provide a way to configure
and manage parameters on the interface-level. A
list that describes specific interfaces and
their corresponding parameters is employed to
fulfil the configfuration. Here we use a string
called 'if-name; as the key of list.";
leaf if-name {
type string;
mandatory true;
description "interface name";
}
leaf enable {
type boolean;
mandatory true;
description
"whether this interface is enabled";
}
leaf ipv6-address {
type inet:ipv6-address;
description
"ipv6 address for this interface";
}
leaf interface-id {
type string;
description "interface id";
}
leaf-list rsoo-set {
type uint8;
description "configured rsoo set";
}
list pd-route {
key pd-route-id;
description "pd route";
leaf pd-route-id {
type uint8;
mandatory true;
description "pd route id";
}
leaf requesting-router-id {
type uint32;
mandatory true;
description "requesting router id";
}
leaf delegating-router-id {
type uint32;
mandatory true;
description "delegating router id";
}
leaf next-router {
type inet:ipv6-address;
mandatory true;
description "next router";
}
leaf last-router {
type inet:ipv6-address;
mandatory true;
description "previous router";
}
}
list next-entity {
key dest-addr;
description "This node defines
a list that is used to describe
the next hop entity of this
relay distinguished by their
addresses.";
leaf dest-addr {
type inet:ipv6-address;
mandatory true;
description "destination addr";
}
leaf available {
type boolean;
mandatory true;
description "whether the next entity
is available or not";
}
leaf multicast {
type boolean;
mandatory true;
description "whether the address is
multicast or not";
}
leaf server {
type boolean;
mandatory true;
description "whether the next entity
is a server";
}
container packet-stats {
config "false";
description "packet statistics";
leaf cli-packet-rvd-count {
type uint32;
mandatory true;
description "client received packet
counter";
}
leaf solicit-rvd-count {
type uint32;
mandatory true;
description
"solicit received counter";
}
leaf request-rvd-count {
type uint32;
mandatory true;
description
"request received counter";
}
leaf renew-rvd-count {
type uint32;
mandatory true;
description
"renew received counter";
}
leaf rebind-rvd-count {
type uint32;
mandatory true;
description
"rebind recevied counter";
}
leaf decline-rvd-count {
type uint32;
mandatory true;
description
"decline received counter";
}
leaf release-rvd-count {
type uint32;
mandatory true;
description
"release received counter";
}
leaf info-req-rvd-count {
type uint32;
mandatory true;
description
"information request counter";
}
leaf relay-for-rvd-count {
type uint32;
mandatory true;
description
"relay forward received counter";
}
leaf relay-rep-rvd-count {
type uint32;
mandatory true;
description
"relay reply received counter";
}
leaf packet-to-cli-count {
type uint32;
mandatory true;
description
"packet to client counter";
}
leaf adver-sent-count {
type uint32;
mandatory true;
description
"advertisement sent counter";
}
leaf confirm-sent-count {
type uint32;
mandatory true;
description
"confirm sent counter";
}
leaf reply-sent-count {
type uint32;
mandatory true;
description
"reply sent counter";
}
leaf reconfig-sent-count {
type uint32;
mandatory true;
description
"reconfigure sent counter";
}
leaf relay-for-sent-count {
type uint32;
mandatory true;
description
"relay forward sent counter";
}
leaf relay-rep-sent-count {
type uint32;
mandatory true;
description
"relay reply sent counter";
}
}
}
}
container relay-stats {
config "false";
description "relay statistics";
leaf cli-packet-rvd-count {
type uint32;
mandatory true;
description "client packet received counter";
}
leaf relay-for-rvd-count {
type uint32;
mandatory true;
description "relay forward received counter";
}
leaf relay-rep-rvd-count {
type uint32;
mandatory true;
description "relay reply recevied counter";
}
leaf packet-to-cli-count {
type uint32;
mandatory true;
description "packet to client counter";
}
leaf relay-for-sent-count {
type uint32;
mandatory true;
description "relay forward sent counter";
}
leaf relay-rep-sent-count {
type uint32;
mandatory true;
description "relay reply sent counter";
}
leaf discarded-packet-count {
type uint32;
mandatory true;
description "discarded packet counter";
}
}
}
container client {
description "dhcpv6 client portion";
list client-if {
key if-name;
description "A client may have several
interfaces, it is more reasonable to
configure and manage parameters on
the interface-level. The list defines
specific client interfaces and their
data. Different interfaces are distinguished
by the key which is a configurable string
value.";
leaf if-name {
type string;
mandatory true;
description "interface name";
}
leaf cli-id {
type uint32;
mandatory true;
description "client id";
}
leaf duid {
type duidtype;
mandatory true;
description "DHCP Unique
Identifer";
}
leaf enable {
type boolean;
mandatory true;
description "whether the interface is enabled";
}
leaf description {
type string;
description
"description of the client interface";
}
leaf pd-function {
type boolean;
mandatory true;
description "Whether the client
can act as a requesting router
to request prefixes using prefix
delegation ([RFC3633]).";
}
leaf rapid-commit {
type boolean;
mandatory true;
description "'1' indicates a client can
initiate a Solicit-Reply message exchange
by adding a Rapid Commit option in Solicit
message. '0' means the client is not allowed
to add a Rapid Commit option to request
addresses in a two-message exchange
pattern.";
}
container mo-tab {
description "The management tab
label indicates the operation
mode of the DHCPv6 client. 'm'=1
and 'o'=1 indicate the client
will use DHCPv6 to obtain all
the configuration data. 'm'=1
and 'o'=0 are a meaningless
combination. 'm'=0 and 'o'=1
indicate the client will use
stateless DHCPv6 to obtain
configuration data apart from
addresses/prefixes data.
'm'=0 and 'o'=0 represent the
client will not use DHCPv6
but use SLAAC to achieve
configuration.";
leaf m-tab {
type boolean;
mandatory true;
description "m tab";
}
leaf o-tab {
type boolean;
mandatory true;
description "o tab";
}
}
container oro-options {
description "oro options";
list oro-option {
key option-code;
description "oro option";
leaf option-code {
type uint16;
mandatory true;
description "option code";
}
leaf description {
type string;
mandatory true;
description "description of oro
options";
}
}
}
container client-configured-options {
description "client configured options";
list new-or-standard-cli-option {
key option-code;
description "new or standard client option";
leaf option-code {
type uint16;
mandatory true;
description "option code";
}
leaf option-name {
type string;
mandatory true;
description "option name";
}
leaf option-description {
type string;
mandatory true;
description "description of client
option";
}
leaf option-reference {
type string;
description "the reference of option";
}
leaf option-value {
type string;
mandatory true;
description "the option value";
}
}
container user-class-option {
description "user class option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be configured at the
client";
}
list user-class {
key user-class-id;
description "user class";
leaf user-class-id {
type uint8;
mandatory true;
description "user class id";
}
leaf user-class-info {
type string;
mandatory true;
description "user class info";
}
}
}
container vendor-class-option {
description "vendor class option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be configured at the
client";
}
leaf ent-num {
type uint32;
mandatory true;
description "enterprise number";
}
leaf-list data {
type string;
description "option data";
}
}
container client-fqdn-option {
description "client fqdn option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be configured at the
client";
}
leaf fqdn {
type string;
mandatory true;
description "fqdn";
}
leaf server-initiate-update {
type boolean;
mandatory true;
description "whether server initiate";
}
leaf client-initiate-update {
type boolean;
mandatory true;
description "whether client initiate";
}
}
container client-architecture-type-option {
description
"client architecture type option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be configured at the
client";
}
list architecture-types {
key type-id;
description "architecture types";
leaf type-id {
type uint16;
mandatory true;
description "type id";
}
leaf most-preferred {
type boolean;
mandatory true;
description "most preferred flag";
}
}
}
container client-network-interface-option {
description
"client network interface option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be configured at the
client";
}
leaf type {
type uint8;
mandatory true;
description "type";
}
leaf major {
type uint8;
mandatory true;
description "major";
}
leaf minor {
type uint8;
mandatory true;
description "minor";
}
}
container kerberos-principal-name-option {
description
"kerberos principal name option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be configured at the
client";
}
leaf principal-name {
type string;
mandatory true;
description "principal name";
}
}
container client-link-layer-addr-option {
description
"client link layer address option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be configured at the
client";
}
leaf link-layer-type {
type uint16;
mandatory true;
description "link layer type";
}
leaf link-layer-addr {
type string;
mandatory true;
description "link layer address";
}
}
}
container identity-associations {
config "false";
description "IA is a construct through
which a server and a client can identify,
group, and manage a set of related IPv6
addresses. The key of the list is a
4-byte number IAID defined in [RFC3315].";
list identity-association {
key iaid;
description "IA";
leaf iaid {
type uint32;
mandatory true;
description "IAID";
}
leaf ia-type {
type string;
mandatory true;
description "IA type";
}
leaf-list ipv6-addr {
type inet:ipv6-address;
description "ipv6 address";
}
leaf-list ipv6-prefix {
type inet:ipv6-prefix;
description "ipv6 prefix";
}
leaf-list prefix-length {
type uint8;
description "ipv6 prefix length";
}
leaf t1-time {
type yang:timeticks;
mandatory true;
description "t1 time";
}
leaf t2-time {
type yang:timeticks;
mandatory true;
description "t2 time";
}
leaf preferred-lifetime {
type yang:timeticks;
mandatory true;
description "preferred lifetime";
}
leaf valid-lifetime {
type yang:timeticks;
mandatory true;
description "valid lifetime";
}
}
}
container if-other-paras {
config "false";
description "A client can obtain
extra configuration data other than
address and prefix information through
DHCPv6. This container describes such
data the client was configured. The
potential configuration data may
include DNS server addresses, SIP
server domain names, etc.";
leaf-list uni-dhcpv6-serv-addr {
type inet:ipv6-address;
description "unicast server address";
}
container dns-paras {
description "dns parameters";
leaf domain-search-list {
type string;
mandatory true;
description "domain search list";
} }
list dns-servers { leaf ent-num {
key dns-serv-id; type uint32;
description "dns servers"; mandatory true;
leaf dns-serv-id { description "enterprise number";
type uint8; }
mandatory true; leaf-list data {
description "dns server id"; type string;
} description "option data";
leaf dns-serv-addr { }
type inet:ipv6-address; }
mandatory true; container client-fqdn-option {
description "dns server address"; description "client fqdn option";
} leaf enable {
} type boolean;
} mandatory true;
container sip-paras { description "indicate whether this
description "sip parameters"; option will be configured at the
list sip-servers { client";
key sip-serv-id; }
description "sip server info"; leaf fqdn {
leaf sip-serv-id { type string;
type uint8; mandatory true;
mandatory true; description "fqdn";
description "sip server id"; }
} leaf server-initiate-update {
leaf sip-serv-addr { type boolean;
type inet:ipv6-address; mandatory true;
mandatory true; description "whether server initiate";
description "sip server address"; }
} leaf client-initiate-update {
leaf sip-serv-domain-name { type boolean;
type string; mandatory true;
mandatory true; description "whether client initiate";
description }
"sip server domain name"; }
} container client-architecture-type-option {
} description
} "client architecture type option";
container nis-paras { leaf enable {
description "nis parameters"; type boolean;
leaf nis-domain-name { mandatory true;
type string; description "indicate whether this
mandatory true; option will be configured at the
description "nis domain name"; client";
} }
list nis-server { list architecture-types {
key nis-serv-id; key type-id;
description "nis server"; description "architecture types";
leaf nis-serv-id { leaf type-id {
type uint8; type uint16;
mandatory true; mandatory true;
description "nis server id"; description "type id";
} }
leaf nis-serv-addr { leaf most-preferred {
type inet:ipv6-address; type boolean;
mandatory true; mandatory true;
description "nis server address"; description "most preferred flag";
} }
} }
} }
container nis-plus-paras { container client-network-interface-option {
description "nisp parameters"; description
leaf nis-plus-domain-name { "client network interface option";
type string; leaf enable {
mandatory true; type boolean;
description "nisp domian name"; mandatory true;
} description "indicate whether this
list nis-plus-server { option will be configured at the
key nis-plus-serv-id; client";
description "nisp server"; }
leaf nis-plus-serv-id { leaf type {
type uint8; type uint8;
mandatory true; mandatory true;
description "nisp server id"; description "type";
} }
leaf nis-plus-serv-addr { leaf major {
type inet:ipv6-address; type uint8;
mandatory true; mandatory true;
description "nisp server address"; description "major";
} }
} leaf minor {
} type uint8;
leaf info-refresh-time { mandatory true;
type yang:timeticks; description "minor";
description "info refresh time"; }
} }
container time-zone-paras { container kerberos-principal-name-option {
description "time zone parameters"; description
leaf tz-posix { "kerberos principal name option";
type string; leaf enable {
mandatory true; type boolean;
description "tz posix"; mandatory true;
} description "indicate whether this
leaf tz-database { option will be configured at the
type string; client";
mandatory true;
description "tz database";
}
}
leaf cli-fqdn {
type string;
description "client fqdn";
}
container ntp-paras {
description "ntp parameters";
list ntp-server {
key ntp-serv-id;
description "ntp server";
leaf ntp-serv-id {
type uint8;
mandatory true;
description "ntp server id";
}
leaf ntp-serv-addr {
type inet:ipv6-address;
mandatory true;
description "ntp server address";
}
leaf ntp-serv-mul-addr {
type inet:ipv6-address;
mandatory true;
description "ntp server multicast
address";
}
leaf ntp-serv-fqdn {
type string;
mandatory true;
description "ntp server fqdn";
}
}
}
container sntp-paras {
description "sntp parameters";
list sntp-server {
key sntp-serv-id;
description "sntp server";
leaf sntp-serv-id {
type uint8;
mandatory true;
description "sntp server id";
}
leaf sntp-serv-addr {
type inet:ipv6-address;
mandatory true;
description "sntp server address";
}
}
}
container network-boot-paras {
description "network boot parameters";
list boot-file {
key boot-file-id;
description "boot file";
leaf boot-file-id {
type uint8;
mandatory true;
description "boot file id";
}
leaf-list suitable-arch-type {
type uint16;
description "architecture type";
}
leaf-list suitable-net-if {
type uint32;
description "network interface";
}
leaf boot-file-url {
type string;
mandatory true;
description "boot file url";
}
list boot-file-paras {
key para-id;
description "boot file parameters";
leaf para-id {
type uint8;
mandatory true;
description "parameter id";
}
leaf parameter {
type string;
mandatory true;
description "parameter value";
}
}
}
}
container kerberos-paras {
description "kerberos parameters";
leaf default-realm-name {
type string;
mandatory true;
description "default realm name";
}
list kdc-info {
key kdc-id;
description "kdc info";
leaf kdc-id {
type uint8;
mandatory true;
description "kdc id";
}
leaf priority {
type uint16;
mandatory true;
description "priority";
}
leaf weight {
type uint16;
mandatory true;
description "weight";
}
leaf transport-type {
type uint8;
mandatory true;
description "transport type";
}
leaf port-number {
type uint16;
mandatory true;
description "port number";
}
leaf kdc-ipv6-addr {
type inet:ipv6-address;
mandatory true;
description "kdc ipv6 address";
}
leaf realm-name {
type string;
mandatory true;
description "realm name";
}
}
}
container addr-selection-paras {
description "address selection parameters";
leaf automatic-row-add {
type boolean;
mandatory true;
description "row add";
}
leaf prefer-temporary-addr {
type boolean;
mandatory true;
description "prefer temporary";
}
list policy-table {
key policy-id;
description "policy table";
leaf policy-id {
type uint8;
mandatory true;
description "policy id ";
}
leaf label {
type uint8;
mandatory true;
description "label";
}
leaf precedence {
type uint8;
mandatory true;
description "precedence";
}
leaf prefix-len {
type uint8;
mandatory true;
description "prefix length";
}
leaf prefix {
type inet:ipv6-prefix;
mandatory true;
description "prefix";
}
}
}
leaf sol-max-rt {
type yang:timeticks;
mandatory true;
description "sol max rt";
}
leaf inf-max-rt {
type yang:timeticks;
mandatory true;
description "inf max rt";
}
container pcp-server-paras {
description "pcp server parameters";
list pcp-server {
key pcp-serv-id;
description "pcp server";
leaf pcp-serv-id {
type uint8;
mandatory true;
description "pcp server id";
}
leaf pcp-serv-addr {
type inet:ipv6-address;
mandatory true;
description "pcp server address";
}
}
}
container s46-rule-paras {
description "s46 rule parameters";
list s46-rule {
key rule-id;
description "s46 rule";
leaf rule-id {
type uint8;
mandatory true;
description "rule id";
}
leaf rule-type {
type enumeration {
enum "BMR"{
description "BMR";
}
enum "FMR"{
description "FMR";
}
}
mandatory true;
description "rule type";
}
leaf ea-len {
type uint8;
mandatory true;
description "EA bits length";
}
leaf prefix4-len {
type uint8;
mandatory true;
description "ipv4 prefix length";
}
leaf ipv4-prefix {
type inet:ipv4-prefix;
mandatory true;
description "ipv4 prefix";
}
leaf prefix6-len {
type uint8;
mandatory true;
description "ipv6 prefix length";
}
leaf ipv6-prefix {
type inet:ipv6-prefix;
mandatory true;
description "ipv6 prefix";
}
uses portset-para;
}
}
container s46-br-paras {
description "s46 br parameters";
list br {
key br-id;
description "br";
leaf br-id {
type uint8;
mandatory true;
description "br id";
}
leaf br-ipv6-addr {
type inet:ipv6-address;
mandatory true;
description "br ipv6 address";
}
}
}
container s46-dmr-paras {
description "s46 dmr parameters";
list dmr {
key dmr-id;
description "dmr";
leaf dmr-id {
type uint8;
mandatory true;
description "dmr id";
}
leaf dmr-prefix-len {
type uint8;
mandatory true;
description "dmr prefix length";
}
leaf dmr-ipv6-prefix {
type inet:ipv6-prefix;
mandatory true;
description "dmr prefix";
}
}
}
container s46-v4-v6-binding-paras {
description "s46 v4 v6 binding parameters";
leaf ipv4-addr {
type inet:ipv4-address;
mandatory true;
description "ipv4 address";
}
leaf bind-prefix6-len {
type uint8;
mandatory true;
description "bind ipv6 prefix";
}
uses portset-para;
leaf erp-local-domain-name {
type string;
mandatory true;
description "erp local domain name";
}
}
container supported-options {
description "supported options";
list supported-option {
key option-code;
description "supported option";
leaf option-code {
type uint16;
mandatory true;
description "option code";
}
leaf description {
type string;
mandatory true;
description
"description of supported
option";
}
}
}
}
container packet-stats {
config "false";
description "A container records
all the packet status information
of a specific interface.";
leaf solicit-count {
type uint32;
mandatory true;
description "solicit counter";
}
leaf request-count {
type uint32;
mandatory true;
description "request counter";
}
leaf renew-count {
type uint32;
mandatory true;
description "renew counter";
}
leaf rebind-count {
type uint32;
mandatory true;
description "rebind counter";
}
leaf decline-count {
type uint32;
mandatory true;
description "decline counter";
}
leaf release-count {
type uint32;
mandatory true;
description "release counter";
}
leaf info-req-count {
type uint32;
mandatory true;
description "information request counter";
}
leaf advertise-count {
type uint32;
mandatory true;
description "advertise counter";
}
leaf confirm-count {
type uint32;
mandatory true;
description "confirm counter";
}
leaf reply-count {
type uint32;
mandatory true;
description "reply counter";
}
leaf reconfigure-count {
type uint32;
mandatory true;
description "recofigure counter";
}
}
}
}
/* }
* Notifications leaf principal-name {
*/ type string;
mandatory true;
description "principal name";
}
}
container client-link-layer-addr-option {
description
"client link layer address option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be configured at the
client";
}
leaf link-layer-type {
type uint16;
mandatory true;
description "link layer type";
}
leaf link-layer-addr {
type string;
mandatory true;
description "link layer address";
}
}
}
container identity-associations {
config "false";
description "IA is a construct through
which a server and a client can identify,
group, and manage a set of related IPv6
addresses. The key of the list is a
4-byte number IAID defined in [RFC3315].";
list identity-association {
key iaid;
description "IA";
leaf iaid {
type uint32;
mandatory true;
description "IAID";
}
leaf ia-type {
type string;
mandatory true;
description "IA type";
notification notifications { }
description "dhcpv6 notification module"; leaf-list ipv6-addr {
container dhcpv6-server-event { type inet:ipv6-address;
description "dhcpv6 server event"; description "ipv6 address";
container pool-running-out { }
description "raised when the leaf-list ipv6-prefix {
address/prefix pool is going to type inet:ipv6-prefix;
run out. A threshold for utilization description "ipv6 prefix";
ratio of the pool has been defined in }
the server feature so that it will leaf-list prefix-length {
notify the administrator when the type uint8;
utilization ratio reaches the threshold, description "ipv6 prefix length";
and such threshold is a settable }
parameter"; leaf t1-time {
leaf utilization-ratio { type yang:timeticks;
type uint16; mandatory true;
mandatory true; description "t1 time";
description "utilization ratio"; }
} leaf t2-time {
leaf duid { type yang:timeticks;
type duidtype; mandatory true;
mandatory true; description "t2 time";
description "DHCP Unique }
Identifer"; leaf preferred-lifetime {
} type yang:timeticks;
leaf serv-name { mandatory true;
type string; description "preferred lifetime";
description "server name"; }
leaf valid-lifetime {
type yang:timeticks;
mandatory true;
description "valid lifetime";
}
}
}
container if-other-paras {
config "false";
description "A client can obtain
extra configuration data other than
address and prefix information through
DHCPv6. This container describes such
data the client was configured. The
potential configuration data may
include DNS server addresses, SIP
server domain names, etc.";
leaf-list uni-dhcpv6-serv-addr {
type inet:ipv6-address;
description "unicast server address";
} }
leaf pool-name { container dns-paras {
type string; description "dns parameters";
mandatory true; leaf domain-search-list {
description "pool name"; type string;
} mandatory true;
} description "domain search list";
container invalid-client-detected { }
description "raised when the server list dns-servers {
has found a client which can be key dns-serv-id;
regarded as a potential attacker. Some description "dns servers";
description could also be included."; leaf dns-serv-id {
leaf duid { type uint8;
type duidtype; mandatory true;
mandatory true; description "dns server id";
description "DHCP Unique }
Identifer"; leaf dns-serv-addr {
} type inet:ipv6-address;
leaf description { mandatory true;
type string; description "dns server address";
description "description of the event"; }
} }
} }
} container sip-paras {
container dhcpv6-relay-event { description "sip parameters";
description "dhcpv6 relay event"; list sip-servers {
container topo-changed { key sip-serv-id;
description "raised when the topology description "sip server info";
of the relay agent is changed."; leaf sip-serv-id {
leaf relay-if-name { type uint8;
type string; mandatory true;
mandatory true; description "sip server id";
description "relay interface name"; }
} leaf sip-serv-addr {
leaf first-hop { type inet:ipv6-address;
type boolean; mandatory true;
mandatory true; description "sip server address";
description "first hop"; }
} leaf sip-serv-domain-name {
leaf last-entity-addr { type string;
type inet:ipv6-address; mandatory true;
mandatory true; description
description "last entity address"; "sip server domain name";
} }
} }
} }
container dhcpv6-client-event { container nis-paras {
description "dhcpv6 client event"; description "nis parameters";
container ia-lease-event { leaf nis-domain-name {
description "raised when the type string;
client was allocated a new IA from mandatory true;
the server or it renew/rebind/release description "nis domain name";
its current IA"; }
leaf event-type { list nis-server {
type enumeration{ key nis-serv-id;
enum "allocation" { description "nis server";
description "allocate"; leaf nis-serv-id {
} type uint8;
enum "rebind" { mandatory true;
description "rebind"; description "nis server id";
} }
enum "renew" { leaf nis-serv-addr {
description "renew"; type inet:ipv6-address;
} mandatory true;
enum "release" { description "nis server address";
description "release"; }
} }
} }
mandatory true; container nis-plus-paras {
description "event type"; description "nisp parameters";
} leaf nis-plus-domain-name {
leaf duid { type string;
type duidtype; mandatory true;
mandatory true; description "nisp domian name";
description "DHCP Unique }
Identifer"; list nis-plus-server {
} key nis-plus-serv-id;
leaf iaid { description "nisp server";
type uint32; leaf nis-plus-serv-id {
mandatory true; type uint8;
description "IAID"; mandatory true;
} description "nisp server id";
leaf serv-name { }
type string; leaf nis-plus-serv-addr {
description "server name"; type inet:ipv6-address;
} mandatory true;
leaf description { description "nisp server address";
type string; }
description "description of event"; }
} }
} leaf info-refresh-time {
container invalid-ia-detected { type yang:timeticks;
description "raised when the identity description "info refresh time";
association of the client can be proved }
to be invalid. Possible condition includes container time-zone-paras {
duplicated address, illegal address, etc."; description "time zone parameters";
leaf duid { leaf tz-posix {
type duidtype; type string;
mandatory true; mandatory true;
description "DHCP Unique description "tz posix";
Identifer"; }
} leaf tz-database {
leaf cli-duid { type string;
type uint32; mandatory true;
mandatory true; description "tz database";
description "duid of client"; }
} }
leaf iaid { leaf cli-fqdn {
type uint32; type string;
mandatory true; description "client fqdn";
description "IAID"; }
} container ntp-paras {
leaf serv-name { description "ntp parameters";
type string; list ntp-server {
description "server name"; key ntp-serv-id;
} description "ntp server";
leaf description { leaf ntp-serv-id {
type string; type uint8;
description "description of the event"; mandatory true;
} description "ntp server id";
} }
container retransmission-failed { leaf ntp-serv-addr {
description "raised when the retransmission type inet:ipv6-address;
mechanism defined in [RFC3315] is failed."; mandatory true;
leaf duid{ description "ntp server address";
type duidtype; }
description "DUID"; leaf ntp-serv-mul-addr {
} type inet:ipv6-address;
leaf description { mandatory true;
type enumeration { description "ntp server multicast
enum "MRC failed" { address";
description "MRC failed"; }
} leaf ntp-serv-fqdn {
enum "MRD failed" { type string;
description "MRD failed"; mandatory true;
} description "ntp server fqdn";
} }
mandatory true; }
description "description of failure"; }
} container sntp-paras {
} description "sntp parameters";
container failed-status-turn-up { list sntp-server {
description "raised when the client receives key sntp-serv-id;
a message includes an unsuccessful Status Code description "sntp server";
option."; leaf sntp-serv-id {
leaf duid { type uint8;
type duidtype; mandatory true;
mandatory true; description "sntp server id";
description "DHCP Unique }
Identifer"; leaf sntp-serv-addr {
} type inet:ipv6-address;
leaf status-code { mandatory true;
type enumeration { description "sntp server address";
enum "1" { }
description "UnspecFail"; }
} }
enum "2" { container network-boot-paras {
description "NoAddrAvail"; description "network boot parameters";
} list boot-file {
enum "3" { key boot-file-id;
description "NoBinding"; description "boot file";
} leaf boot-file-id {
enum "4" { type uint8;
description "NotOnLink"; mandatory true;
} description "boot file id";
enum "5" { }
description "UseMulticast"; leaf-list suitable-arch-type {
} type uint16;
} description "architecture type";
mandatory true; }
description "employed status code"; leaf-list suitable-net-if {
} type uint32;
} description "network interface";
} }
} leaf boot-file-url {
} type string;
<CODE ENDS> mandatory true;
description "boot file url";
}
list boot-file-paras {
key para-id;
description "boot file parameters";
leaf para-id {
type uint8;
mandatory true;
description "parameter id";
}
leaf parameter {
type string;
mandatory true;
description "parameter value";
}
5. Security Considerations (TBD) }
}
}
container kerberos-paras {
description "kerberos parameters";
leaf default-realm-name {
type string;
mandatory true;
description "default realm name";
}
list kdc-info {
key kdc-id;
description "kdc info";
leaf kdc-id {
type uint8;
mandatory true;
description "kdc id";
}
leaf priority {
type uint16;
mandatory true;
description "priority";
}
leaf weight {
type uint16;
mandatory true;
description "weight";
}
leaf transport-type {
type uint8;
mandatory true;
description "transport type";
}
leaf port-number {
type uint16;
mandatory true;
description "port number";
}
leaf kdc-ipv6-addr {
type inet:ipv6-address;
mandatory true;
description "kdc ipv6 address";
}
leaf realm-name {
type string;
mandatory true;
description "realm name";
}
}
}
container addr-selection-paras {
description "address selection parameters";
leaf automatic-row-add {
type boolean;
mandatory true;
description "row add";
}
leaf prefer-temporary-addr {
type boolean;
mandatory true;
description "prefer temporary";
}
list policy-table {
key policy-id;
description "policy table";
leaf policy-id {
type uint8;
mandatory true;
description "policy id ";
}
leaf label {
type uint8;
mandatory true;
description "label";
}
leaf precedence {
type uint8;
mandatory true;
description "precedence";
}
leaf prefix-len {
type uint8;
mandatory true;
description "prefix length";
}
leaf prefix {
type inet:ipv6-prefix;
mandatory true;
description "prefix";
}
}
}
leaf sol-max-rt {
type yang:timeticks;
mandatory true;
description "sol max rt";
}
leaf inf-max-rt {
type yang:timeticks;
mandatory true;
description "inf max rt";
}
container pcp-server-paras {
description "pcp server parameters";
list pcp-server {
key pcp-serv-id;
description "pcp server";
leaf pcp-serv-id {
type uint8;
mandatory true;
description "pcp server id";
}
leaf pcp-serv-addr {
type inet:ipv6-address;
mandatory true;
description "pcp server address";
}
}
}
container s46-rule-paras {
description "s46 rule parameters";
list s46-rule {
key rule-id;
description "s46 rule";
leaf rule-id {
type uint8;
mandatory true;
description "rule id";
}
leaf rule-type {
type enumeration {
enum "BMR"{
description "BMR";
}
enum "FMR"{
description "FMR";
}
}
mandatory true;
description "rule type";
}
leaf ea-len {
type uint8;
mandatory true;
description "EA bits length";
}
leaf prefix4-len {
type uint8;
mandatory true;
description "ipv4 prefix length";
}
leaf ipv4-prefix {
type inet:ipv4-prefix;
mandatory true;
description "ipv4 prefix";
}
leaf prefix6-len {
type uint8;
mandatory true;
description "ipv6 prefix length";
}
leaf ipv6-prefix {
type inet:ipv6-prefix;
mandatory true;
description "ipv6 prefix";
}
uses portset-para;
}
}
container s46-br-paras {
description "s46 br parameters";
list br {
key br-id;
description "br";
leaf br-id {
type uint8;
mandatory true;
description "br id";
}
leaf br-ipv6-addr {
type inet:ipv6-address;
mandatory true;
description "br ipv6 address";
}
}
}
container s46-dmr-paras {
description "s46 dmr parameters";
list dmr {
key dmr-id;
description "dmr";
leaf dmr-id {
type uint8;
mandatory true;
description "dmr id";
}
leaf dmr-prefix-len {
type uint8;
mandatory true;
description "dmr prefix length";
}
leaf dmr-ipv6-prefix {
type inet:ipv6-prefix;
mandatory true;
description "dmr prefix";
}
}
}
container s46-v4-v6-binding-paras {
description "s46 v4 v6 binding parameters";
leaf ipv4-addr {
type inet:ipv4-address;
mandatory true;
description "ipv4 address";
}
leaf bind-prefix6-len {
type uint8;
mandatory true;
description "bind ipv6 prefix";
}
uses portset-para;
leaf erp-local-domain-name {
type string;
mandatory true;
description "erp local domain name";
}
}
container supported-options {
description "supported options";
list supported-option {
key option-code;
description "supported option";
leaf option-code {
type uint16;
mandatory true;
description "option code";
}
leaf description {
type string;
mandatory true;
description
"description of supported
option";
}
}
}
}
container packet-stats {
config "false";
description "A container records
all the packet status information
of a specific interface.";
leaf solicit-count {
type uint32;
mandatory true;
description "solicit counter";
}
leaf request-count {
type uint32;
mandatory true;
description "request counter";
}
leaf renew-count {
type uint32;
mandatory true;
description "renew counter";
}
leaf rebind-count {
type uint32;
mandatory true;
description "rebind counter";
}
leaf decline-count {
type uint32;
mandatory true;
description "decline counter";
}
leaf release-count {
type uint32;
mandatory true;
description "release counter";
}
leaf info-req-count {
type uint32;
mandatory true;
description "information request counter";
}
leaf advertise-count {
type uint32;
mandatory true;
description "advertise counter";
}
leaf confirm-count {
type uint32;
mandatory true;
description "confirm counter";
}
leaf reply-count {
type uint32;
mandatory true;
description "reply counter";
}
leaf reconfigure-count {
type uint32;
mandatory true;
description "recofigure counter";
}
}
}
}
/*
* Notifications
*/
notification notifications {
description "dhcpv6 notification module";
container dhcpv6-server-event {
description "dhcpv6 server event";
container pool-running-out {
description "raised when the
address/prefix pool is going to
run out. A threshold for utilization
ratio of the pool has been defined in
the server feature so that it will
notify the administrator when the
utilization ratio reaches the threshold,
and such threshold is a settable
parameter";
leaf utilization-ratio {
type uint16;
mandatory true;
description "utilization ratio";
}
leaf duid {
type duidtype;
mandatory true;
description "DHCP Unique
Identifer";
}
leaf serv-name {
type string;
description "server name";
}
leaf pool-name {
type string;
mandatory true;
description "pool name";
}
}
container invalid-client-detected {
description "raised when the server
has found a client which can be
regarded as a potential attacker. Some
description could also be included.";
leaf duid {
type duidtype;
mandatory true;
description "DHCP Unique
Identifer";
}
leaf description {
type string;
description "description of the event";
}
}
}
container dhcpv6-relay-event {
description "dhcpv6 relay event";
container topo-changed {
description "raised when the topology
of the relay agent is changed.";
leaf relay-if-name {
type string;
mandatory true;
description "relay interface name";
}
leaf first-hop {
type boolean;
mandatory true;
description "first hop";
}
leaf last-entity-addr {
type inet:ipv6-address;
mandatory true;
description "last entity address";
}
}
}
container dhcpv6-client-event {
description "dhcpv6 client event";
container ia-lease-event {
description "raised when the
client was allocated a new IA from
the server or it renew/rebind/release
its current IA";
leaf event-type {
type enumeration{
enum "allocation" {
description "allocate";
}
enum "rebind" {
description "rebind";
}
enum "renew" {
description "renew";
}
enum "release" {
description "release";
}
}
mandatory true;
description "event type";
}
leaf duid {
type duidtype;
mandatory true;
description "DHCP Unique
Identifer";
}
leaf iaid {
type uint32;
mandatory true;
description "IAID";
}
leaf serv-name {
type string;
description "server name";
}
leaf description {
type string;
description "description of event";
}
}
container invalid-ia-detected {
description "raised when the identity
association of the client can be proved
to be invalid. Possible condition includes
duplicated address, illegal address, etc.";
leaf duid {
type duidtype;
mandatory true;
description "DHCP Unique
Identifer";
}
leaf cli-duid {
type uint32;
mandatory true;
description "duid of client";
}
leaf iaid {
type uint32;
mandatory true;
description "IAID";
}
leaf serv-name {
type string;
description "server name";
}
leaf description {
type string;
description "description of the event";
}
}
container retransmission-failed {
description "raised when the retransmission
mechanism defined in [RFC3315] is failed.";
leaf duid{
type duidtype;
description "DUID";
}
leaf description {
type enumeration {
enum "MRC failed" {
description "MRC failed";
}
enum "MRD failed" {
description "MRD failed";
}
}
mandatory true;
description "description of failure";
}
}
container failed-status-turn-up {
description "raised when the client receives
a message includes an unsuccessful Status Code
option.";
leaf duid {
type duidtype;
mandatory true;
description "DHCP Unique
Identifer";
}
leaf status-code {
type enumeration {
enum "1" {
description "UnspecFail";
}
enum "2" {
description "NoAddrAvail";
}
enum "3" {
description "NoBinding";
}
enum "4" {
description "NotOnLink";
}
enum "5" {
description "UseMulticast";
}
}
mandatory true;
description "employed status code";
}
}
}
}
}
<CODE ENDS>
4. Security Considerations (TBD)
TBD TBD
6. IANA Considerations (TBD) 5. IANA Considerations (TBD)
TBD TBD
7. Acknowledgements 6. Acknowledgements
The authors would like to thank Qi Sun, Lishan Li, Sladjana Zoric, The authors would like to thank Qi Sun, Lishan Li, Sladjana Zoric,
Tomek Mrugalski, Marcin Siodelski, Bernie Volz and Bing Liu for their Tomek Mrugalski, Marcin Siodelski, Bernie Volz and Bing Liu for their
valuable comments and contributions to this work. valuable comments and contributions to this work.
8. References 7. References
8.1. Normative References 7.1. Normative References
[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", BCP 14, RFC 2119, Requirement Levels", BCP 14, RFC 2119,
DOI 10.17487/RFC2119, March 1997, DOI 10.17487/RFC2119, March 1997,
<http://www.rfc-editor.org/info/rfc2119>. <http://www.rfc-editor.org/info/rfc2119>.
[RFC3315] Droms, R., Ed., Bound, J., Volz, B., Lemon, T., Perkins, [RFC3315] Droms, R., Ed., Bound, J., Volz, B., Lemon, T., Perkins,
C., and M. Carney, "Dynamic Host Configuration Protocol C., and M. Carney, "Dynamic Host Configuration Protocol
for IPv6 (DHCPv6)", RFC 3315, DOI 10.17487/RFC3315, July for IPv6 (DHCPv6)", RFC 3315, DOI 10.17487/RFC3315, July
2003, <http://www.rfc-editor.org/info/rfc3315>. 2003, <http://www.rfc-editor.org/info/rfc3315>.
skipping to change at page 81, line 37 skipping to change at page 87, line 47
<http://www.rfc-editor.org/info/rfc6020>. <http://www.rfc-editor.org/info/rfc6020>.
[RFC6087] Bierman, A., "Guidelines for Authors and Reviewers of YANG [RFC6087] Bierman, A., "Guidelines for Authors and Reviewers of YANG
Data Model Documents", RFC 6087, DOI 10.17487/RFC6087, Data Model Documents", RFC 6087, DOI 10.17487/RFC6087,
January 2011, <http://www.rfc-editor.org/info/rfc6087>. January 2011, <http://www.rfc-editor.org/info/rfc6087>.
[RFC6991] Schoenwaelder, J., Ed., "Common YANG Data Types", [RFC6991] Schoenwaelder, J., Ed., "Common YANG Data Types",
RFC 6991, DOI 10.17487/RFC6991, July 2013, RFC 6991, DOI 10.17487/RFC6991, July 2013,
<http://www.rfc-editor.org/info/rfc6991>. <http://www.rfc-editor.org/info/rfc6991>.
8.2. Informative References 7.2. Informative References
[RFC3319] Schulzrinne, H. and B. Volz, "Dynamic Host Configuration [RFC3319] Schulzrinne, H. and B. Volz, "Dynamic Host Configuration
Protocol (DHCPv6) Options for Session Initiation Protocol Protocol (DHCPv6) Options for Session Initiation Protocol
(SIP) Servers", RFC 3319, DOI 10.17487/RFC3319, July 2003, (SIP) Servers", RFC 3319, DOI 10.17487/RFC3319, July 2003,
<http://www.rfc-editor.org/info/rfc3319>. <http://www.rfc-editor.org/info/rfc3319>.
[RFC3646] Droms, R., Ed., "DNS Configuration options for Dynamic [RFC3646] Droms, R., Ed., "DNS Configuration options for Dynamic
Host Configuration Protocol for IPv6 (DHCPv6)", RFC 3646, Host Configuration Protocol for IPv6 (DHCPv6)", RFC 3646,
DOI 10.17487/RFC3646, December 2003, DOI 10.17487/RFC3646, December 2003,
<http://www.rfc-editor.org/info/rfc3646>. <http://www.rfc-editor.org/info/rfc3646>.
skipping to change at page 83, line 22 skipping to change at page 89, line 27
[RFC7078] Matsumoto, A., Fujisaki, T., and T. Chown, "Distributing [RFC7078] Matsumoto, A., Fujisaki, T., and T. Chown, "Distributing
Address Selection Policy Using DHCPv6", RFC 7078, Address Selection Policy Using DHCPv6", RFC 7078,
DOI 10.17487/RFC7078, January 2014, DOI 10.17487/RFC7078, January 2014,
<http://www.rfc-editor.org/info/rfc7078>. <http://www.rfc-editor.org/info/rfc7078>.
[RFC7083] Droms, R., "Modification to Default Values of SOL_MAX_RT [RFC7083] Droms, R., "Modification to Default Values of SOL_MAX_RT
and INF_MAX_RT", RFC 7083, DOI 10.17487/RFC7083, November and INF_MAX_RT", RFC 7083, DOI 10.17487/RFC7083, November
2013, <http://www.rfc-editor.org/info/rfc7083>. 2013, <http://www.rfc-editor.org/info/rfc7083>.
[RFC7227] Hankins, D., Mrugalski, T., Siodelski, M., Jiang, S., and
S. Krishnan, "Guidelines for Creating New DHCPv6 Options",
BCP 187, RFC 7227, DOI 10.17487/RFC7227, May 2014,
<http://www.rfc-editor.org/info/rfc7227>.
[RFC7291] Boucadair, M., Penno, R., and D. Wing, "DHCP Options for [RFC7291] Boucadair, M., Penno, R., and D. Wing, "DHCP Options for
the Port Control Protocol (PCP)", RFC 7291, the Port Control Protocol (PCP)", RFC 7291,
DOI 10.17487/RFC7291, July 2014, DOI 10.17487/RFC7291, July 2014,
<http://www.rfc-editor.org/info/rfc7291>. <http://www.rfc-editor.org/info/rfc7291>.
[RFC7598] Mrugalski, T., Troan, O., Farrer, I., Perreault, S., Dec, [RFC7598] Mrugalski, T., Troan, O., Farrer, I., Perreault, S., Dec,
W., Bao, C., Yeh, L., and X. Deng, "DHCPv6 Options for W., Bao, C., Yeh, L., and X. Deng, "DHCPv6 Options for
Configuration of Softwire Address and Port-Mapped Configuration of Softwire Address and Port-Mapped
Clients", RFC 7598, DOI 10.17487/RFC7598, July 2015, Clients", RFC 7598, DOI 10.17487/RFC7598, July 2015,