draft-ietf-dhc-dhcpv6-yang-03.txt   draft-ietf-dhc-dhcpv6-yang-04.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: December 20, 2016 Tsinghua University Expires: May 1, 2018 Tsinghua University
T. Lemon
Nominum
I. Farrer I. Farrer
S. Zoric S. Zechlin
Deutsche Telekom AG Deutsche Telekom AG
June 18, 2016 October 28, 2017
YANG Data Model for DHCPv6 Configuration YANG Data Model for DHCPv6 Configuration
draft-ietf-dhc-dhcpv6-yang-03 draft-ietf-dhc-dhcpv6-yang-04
Abstract Abstract
This document describes a YANG data model [RFC6020] for the This document describes a YANG data model [RFC6020] for the
configuration and management of DHCPv6 servers, relays and clients. configuration and management of DHCPv6 servers, relays, and clients.
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
provisions of BCP 78 and BCP 79. provisions of BCP 78 and BCP 79.
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 https://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 December 20, 2016. This Internet-Draft will expire on May 1, 2018.
Copyright Notice Copyright Notice
Copyright (c) 2016 IETF Trust and the persons identified as the Copyright (c) 2017 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 (https://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. DHCPv6 Tree Diagrams . . . . . . . . . . . . . . . . . . . . 3 2. DHCPv6 Tree Diagram . . . . . . . . . . . . . . . . . . . . . 3
2.1. DHCPv6 Server Tree Diagrams . . . . . . . . . . . . . . . 3 2.1. DHCPv6 Server Tree Diagrams . . . . . . . . . . . . . . . 3
2.2. DHCPv6 Relay Tree Diagrams . . . . . . . . . . . . . . . 12 2.2. DHCPv6 Relay Tree Diagrams . . . . . . . . . . . . . . . 14
2.3. DHCPv6 Client Tree Diagrams . . . . . . . . . . . . . . . 15 2.3. DHCPv6 Client Tree Diagrams . . . . . . . . . . . . . . . 17
2.4. Notifications Mechanism for DHCPv6 . . . . . . . . . . . 20 2.4. Notifications Mechanism for DHCPv6 . . . . . . . . . . . 22
3. DHCPv6 YANG Model . . . . . . . . . . . . . . . . . . . . . . 22 3. DHCPv6 YANG Model . . . . . . . . . . . . . . . . . . . . . . 24
4. Security Considerations (TBD) . . . . . . . . . . . . . . . . 87 4. Security Considerations (TBD) . . . . . . . . . . . . . . . . 91
5. IANA Considerations (TBD) . . . . . . . . . . . . . . . . . . 87 5. IANA Considerations (TBD) . . . . . . . . . . . . . . . . . . 91
6. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . 87 6. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . 91
7. References . . . . . . . . . . . . . . . . . . . . . . . . . 87 7. References . . . . . . . . . . . . . . . . . . . . . . . . . 91
7.1. Normative References . . . . . . . . . . . . . . . . . . 87 7.1. Normative References . . . . . . . . . . . . . . . . . . 91
7.2. Informative References . . . . . . . . . . . . . . . . . 88 7.2. Informative References . . . . . . . . . . . . . . . . . 92
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 90 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 94
1. Introduction 1. Introduction
DHCPv6 [RFC3315] is widely used for supplying configuration and other DHCPv6 [RFC3315] is widely used for supplying configuration and other
relevant parameters to clients in IPv6 networks. This document relevant parameters to clients in IPv6 networks. This document
defines a DHCPv6 YANG data model, containing sub-modules for the defines a DHCPv6 YANG data model, containing sub-modules for the
configuration and management of DHCPv6 servers, relays and clients. configuration and management of DHCPv6 servers, relays and clients.
A single YANG model covering all of these elements provides an A single YANG model covering all of these elements provides an
operator with a common interface for the management of the entire operator with a common interface for the management of the entire
DHCPv6 deployment in their network. DHCPv6 deployment in their network.
skipping to change at page 3, line 20 skipping to change at page 3, line 17
from the client which has been learnt via the normal DHCPv6 message from the client which has been learnt via the normal DHCPv6 message
flow. This gives an operator a better method for managing DHCPv6 flow. This gives an operator a better method for managing DHCPv6
clients and simplifies 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 other relevant documents. [RFC3315] and other relevant documents.
The DHCPv6 tree diagrams provide a concise representation of a YANG The DHCPv6 tree diagrams provide a concise representation of a YANG
module to help the reader understand the module structure. The module to help the reader understand the module structure.
meaning of the symbols in these diagrams are as follows:
o Brackets "[" and "]" enclose list keys.
o Braces "{" and "}" enclose feature content.
o Parentheses "(" and ")" enclose choice and case nodes, and case
nodes are also marked with a colon (":").
o Symbols after data node names: "?" means an optional node, and "*"
denotes a list and leaf-list.
o Abbreviations before data node names: "rw" means configuration A simplified graphical representation of the data model is provided
data (read-write), and "ro" means state data (read-only). in this d cument. For a description of the symbols in these
diagrams, please refer to [I-D.ietf-netmod-yang-tree-diagrams].
2. DHCPv6 Tree Diagrams 2. DHCPv6 Tree Diagram
2.1. DHCPv6 Server Tree Diagrams 2.1. DHCPv6 Server Tree Diagrams
+--rw dhcpv6 module: ietf-dhcpv6
+--rw server +--rw server!
+--rw serv-attributes +--rw serv-attributes
| +--rw name string | +--rw name? string
| +--rw duid duidtype | +--rw duid
| +--rw enable boolean | | +--rw (duid-type)?
| +--rw interfaces-config* string | | +--:(duid-llt)
| +--rw ipv6-address? inet:ipv6-address | | | +--rw duid-llt-hardware-type? uint16
| +--rw description? string | | | +--rw duid-llt-time? yang:timeticks
| +--rw pd-function boolean | | | +--rw duid-llt-link-layer-addr? yang:mac-address
| +--rw stateless-service boolean | | +--:(duid-en)
| +--rw rapid-commit boolean | | | +--rw duid-en-enterprise-number? uint32
| +--rw vendor-info | | | +--rw duid-en-identifier? string
| +--rw ent-num uint32 | | +--:(duid-ll)
| +--rw data* string | | +--rw duid-ll-hardware-type? uint16
+--rw option-sets | | +--rw duid-ll-time? yang:timeticks
| +--rw option-set* [option-set-id] | +--rw ipv6-address* inet:ipv6-address
| +--rw option-set-id uint8 | +--rw description? string
| +--rw new-or-standard-option* [option-code] | +--rw pd-function boolean
| | +--rw option-code uint16 | +--rw stateless-service boolean
| | +--rw option-name string | +--rw rapid-commit boolean
| | +--rw option-description string | +--rw interfaces-config* string
| | +--rw option-reference? string | +--rw vendor-info
| | +--rw option-value string | +--rw ent-num uint32
| +--rw user-class-value? string | +--rw data* string
| +--rw enterprise-number? uint32 +--rw option-sets
| +--rw store-client-link-layer? boolean | +--rw option-set* [option-set-id]
| +--rw preference-option | +--rw option-set-id uint8
| | +--rw enable boolean | +--rw new-or-standard-option* [option-code]
| | +--rw preference-value uint8 | | +--rw option-code uint16
| +--rw sip-server-option | | +--rw option-name string
| | +--rw enable boolean | | +--rw option-description string
| | +--rw sip-server* [sip-serv-id] | | +--rw option-reference? string
| | +--rw sip-serv-id uint8 | | +--rw option-value string
| | +--rw sip-serv-domain-name string | +--rw user-class-value? string
| | +--rw sip-serv-addr inet:ipv6-address | +--rw enterprise-number? uint32
| +--rw dns-config-option | +--rw store-client-link-layer? boolean
| | +--rw enable boolean | +--rw preference-option
| | +--rw dns-server* [dns-serv-id] | | +--rw enable boolean
| | | +--rw dns-serv-id uint8 | | +--rw preference-value uint8
| | | +--rw dns-serv-addr inet:ipv6-address | +--rw sip-server-option
| | +--rw domain-search-list string | | +--rw enable boolean
| +--rw nis-config-option | | +--rw sip-server* [sip-serv-id]
| | +--rw enable boolean | | +--rw sip-serv-id uint8
| | +--rw nis-server* [nis-serv-id] | | +--rw sip-serv-domain-name string
| | +--rw nis-serv-id uint8 | | +--rw sip-serv-addr inet:ipv6-address
| | +--rw nis-serv-addr inet:ipv6-address | +--rw dns-config-option
| +--rw nis-plus-config-option | | +--rw enable boolean
| | +--rw enable boolean | | +--rw dns-server* [dns-serv-id]
| | +--rw nis-plus-server* [nis-plus-serv-id] | | +--rw dns-serv-id uint8
| | +--rw nis-plus-serv-id uint8 | | +--rw dns-serv-addr inet:ipv6-address
| | +--rw nis-plus-serv-addr inet:ipv6-address | +--rw domain-searchlist-option
| +--rw info-refresh-time-option | | +--rw enable boolean
| | +--rw enable boolean | | +--rw domain-searchlist* [domain-searchlist-id]
| | +--rw info-refresh-time yang:timeticks | | +--rw domain-searchlist-id uint8
| +--rw cli-fqdn-option | | +--rw domain-search-list-entry string
| | +--rw enable boolean | +--rw nis-config-option
| | +--rw server-initiate-update boolean | | +--rw enable boolean
| | +--rw client-initiate-update boolean | | +--rw nis-server* [nis-serv-id]
| | +--rw modify-name-from-cli boolean | | +--rw nis-serv-id uint8
| +--rw timezone-option | | +--rw nis-serv-addr inet:ipv6-address
| | +--rw enable boolean | +--rw nis-plus-config-option
| | +--rw tz-posix string | | +--rw enable boolean
| | +--rw tz-database string | | +--rw nis-plus-server* [nis-plus-serv-id]
| +--rw ntp-server-option | | +--rw nis-plus-serv-id uint8
| | +--rw enable boolean | | +--rw nis-plus-serv-addr inet:ipv6-address
| | +--rw ntp-server* [ntp-serv-id] | +--rw sntp-server-option
| | +--rw ntp-serv-id uint8 | | +--rw enable boolean
| | +--rw ntp-serv-addr inet:ipv6-address | | +--rw sntp-server* [sntp-serv-id]
| | +--rw ntp-serv-mul-addr inet:ipv6-address | | +--rw sntp-serv-id uint8
| | +--rw ntp-serv-fqdn string | | +--rw sntp-serv-addr inet:ipv6-address
| +--rw sntp-server-option | +--rw info-refresh-time-option
| | +--rw enable boolean | | +--rw enable boolean
| | +--rw sntp-server* [sntp-serv-id] | | +--rw info-refresh-time yang:timeticks
| | +--rw sntp-serv-id uint8 | +--rw cli-fqdn-option
| | +--rw sntp-serv-addr inet:ipv6-address | | +--rw enable boolean
| +--rw network-boot-option | | +--rw server-initiate-update boolean
| | +--rw enable boolean | | +--rw client-initiate-update boolean
| | +--rw boot-file* [boot-file-id] | | +--rw modify-name-from-cli boolean
| | +--rw boot-file-id uint8 | +--rw posix-timezone-option
| | +--rw suitable-arch-type* uint16 | | +--rw enable boolean
| | +--rw suitable-net-if* uint32 | | +--rw tz-posix string
| | +--rw boot-file-url string | +--rw posix-timezone-db-option
| | +--rw boot-file-paras* [para-id] | | +--rw enable boolean
| | +--rw para-id uint8 | | +--rw tz-database string
| | +--rw parameter string | +--rw ntp-server-option
| +--rw dslite-option | | +--rw enable boolean
| | +--rw enable boolean | | +--rw ntp-server* [ntp-serv-id]
| | +--rw dslite-aftr-name string | | +--rw ntp-serv-id uint8
| +--rw kerberos-option | | +--rw ntp-serv-addr-suboption inet:ipv6-address
| | +--rw enable boolean | | +--rw ntp-serv-mul-addr-suboption inet:ipv6-address
| | +--rw default-realm-name string | | +--rw ntp-serv-fqdn-suboption string
| | +--rw kdc-info* [kdc-id] | +--rw network-boot-option
| | +--rw kdc-id uint8 | | +--rw enable boolean
| | +--rw priority uint16 | | +--rw boot-file* [boot-file-id]
| | +--rw weight uint16 | | +--rw boot-file-id uint8
| | +--rw transport-type uint8 | | +--rw suitable-arch-type* uint16
| | +--rw port-number uint16 | | +--rw suitable-net-if* uint32
| | +--rw kdc-ipv6-addr inet:ipv6-address | | +--rw boot-file-url string
| | +--rw realm-name string | | +--rw boot-file-paras* [para-id]
| +--rw addr-selection-option | | +--rw para-id uint8
| | +--rw enable boolean | | +--rw parameter string
| | +--rw a-bit-set boolean | +--rw aftr-name-option
| | +--rw p-bit-set boolean | | +--rw enable boolean
| | +--rw policy-table* [policy-id] | | +--rw tunnel-endpoint-name string
| | +--rw policy-id uint8 | +--rw kerberos-option
| | +--rw label uint8 | | +--rw enable boolean
| | +--rw precedence uint8 | | +--rw default-realm-name string
| | +--rw prefix-len uint8 | | +--rw kdc-info* [kdc-id]
| | +--rw prefix inet:ipv6-prefix | | +--rw kdc-id uint8
| +--rw sol-max-rt-option | | +--rw priority uint16
| | +--rw enable boolean | | +--rw weight uint16
| | +--rw sol-max-rt-value yang:timeticks | | +--rw transport-type uint8
| +--rw inf-max-rt-option | | +--rw port-number uint16
| | +--rw enable boolean | | +--rw kdc-ipv6-addr inet:ipv6-address
| | +--rw inf-max-rt-value yang:timeticks | | +--rw realm-name string
| +--rw pcp-server-option | +--rw addr-selection-option
| | +--rw enable boolean | | +--rw enable boolean
| | +--rw pcp-server* [pcp-serv-id] | | +--rw a-bit-set boolean
| | +--rw pcp-serv-id uint8 | | +--rw p-bit-set boolean
| | +--rw pcp-serv-addr* inet:ipv6-address | | +--rw policy-table* [policy-id]
| +--rw s46-rule-option | | +--rw policy-id uint8
| | +--rw enable boolean | | +--rw label uint8
| | +--rw s46-rule* [rule-id] | | +--rw precedence uint8
| | +--rw rule-id uint8 | | +--rw prefix-len uint8
| | +--rw rule-type enumeration | | +--rw prefix inet:ipv6-prefix
| | +--rw ea-len uint8 | +--rw sol-max-rt-option
| | +--rw prefix4-len uint8 | | +--rw enable boolean
| | +--rw ipv4-prefix inet:ipv4-prefix | | +--rw sol-max-rt-value yang:timeticks
| | +--rw prefix6-len uint8 | +--rw inf-max-rt-option
| | +--rw ipv6-prefix inet:ipv6-prefix | | +--rw enable boolean
| | +--rw port-parameter | | +--rw inf-max-rt-value yang:timeticks
| | +--rw offset uint8 | +--rw pcp-server-option
| | +--rw psid-len uint8 | | +--rw enable boolean
| | +--rw psid uint16 | | +--rw pcp-server* [pcp-serv-id]
| +--rw s46-br-option | | +--rw pcp-serv-id uint8
| | +--rw enable boolean | | +--rw pcp-serv-addr inet:ipv6-address
| | +--rw br* [br-id] | +--rw s46-rule-option
| | +--rw br-id uint8 | | +--rw enable boolean
| | +--rw br-ipv6-addr inet:ipv6-address | | +--rw s46-rule* [rule-id]
| +--rw s46-dmr-option | | +--rw rule-id uint8
| | +--rw enable boolean | | +--rw rule-type enumeration
| | +--rw dmr* [dmr-id] | | +--rw prefix4-len uint8
| | +--rw dmr-id uint8 | | +--rw ipv4-prefix inet:ipv4-prefix
| | +--rw dmr-prefix6-len inet:ipv6-address | | +--rw prefix6-len uint8
| | +--rw dmr-ipv6-prefix inet:ipv6-prefix | | +--rw ipv6-prefix inet:ipv6-prefix
| +--rw operator-option-ipv6-address | | +--rw port-parameter
| | +--rw enable boolean | | +--rw offset uint8
| | +--rw operator-ipv6-addr* [operator-ipv6-addr-id] | | +--rw psid-len uint8
| | +--rw operator-ipv6-addr-id uint8 | | +--rw psid uint16
| | +--rw operator-ipv6-addr inet:ipv6-address | +--rw s46-br-option
| +--rw operator-option-single-flag | | +--rw enable boolean
| | +--rw enable boolean | | +--rw br* [br-id]
| | +--rw flag* [flag-id] | | +--rw br-id uint8
| | +--rw flag-id uint8 | | +--rw br-ipv6-addr inet:ipv6-address
| | +--rw flag-value boolean | +--rw operator-option-ipv6-address
| +--rw operator-option-ipv6-prefix | | +--rw enable boolean
| | +--rw enable boolean | | +--rw operator-ipv6-addr* [operator-ipv6-addr-id]
| | +--rw operator-ipv6-prefix* [operator-ipv6-prefix-id] | | +--rw operator-ipv6-addr-id uint8
| | +--rw operator-ipv6-prefix-id uint8 | | +--rw operator-ipv6-addr inet:ipv6-address
| | +--rw operator-ipv6-prefix6-len uint8 | +--rw operator-option-single-flag
| | +--rw operator-ipv6-prefix inet:ipv6-prefix | | +--rw enable boolean
| +--rw operator-option-int32 | | +--rw flag* [flag-id]
| | +--rw enable boolean | | +--rw flag-id uint8
| | +--rw int32val* [int32val-id] | | +--rw flag-value boolean
| | +--rw int32val-id uint8 | +--rw operator-option-ipv6-prefix
| | +--rw int32val uint32 | | +--rw enable boolean
| +--rw operator-option-int16 | | +--rw operator-ipv6-prefix* [operator-ipv6-prefix-id]
| | +--rw enable boolean | | +--rw operator-ipv6-prefix-id uint8
| | +--rw int16val* [int16val-id] | | +--rw operator-ipv6-prefix6-len uint8
| | +--rw int16val-id uint8 | | +--rw operator-ipv6-prefix inet:ipv6-prefix
| | +--rw int16val uint16 | +--rw operator-option-int32
| +--rw operator-option-int8 | | +--rw enable boolean
| | +--rw enable boolean | | +--rw int32val* [int32val-id]
| | +--rw int8* [int8val-id] | | +--rw int32val-id uint8
| | +--rw int8val-id uint8 | | +--rw int32val uint32
| | +--rw int8val uint8 | +--rw operator-option-int16
| +--rw operator-option-uri | | +--rw enable boolean
| | +--rw enable boolean | | +--rw int16val* [int16val-id]
| | +--rw uri* [uri-id] | | +--rw int16val-id uint8
| | +--rw uri-id uint8 | | +--rw int16val uint16
| | +--rw uri string | +--rw operator-option-int8
| +--rw operator-option-textstring | | +--rw enable boolean
| | +--rw enable boolean | | +--rw int8val* [int8val-id]
| | +--rw textstring* [textstring-id] | | +--rw int8val-id uint8
| | +--rw textstring-id uint8 | | +--rw int8val uint8
| | +--rw textstring string | +--rw operator-option-uri
| +--rw operator-option-var-data | | +--rw enable boolean
| | +--rw enable boolean | | +--rw uri* [uri-id]
| | +--rw var-data* [var-data-id] | | +--rw uri-id uint8
| | +--rw var-data-id uint8 | | +--rw uri string
| | +--rw var-data binary | +--rw operator-option-textstring
| +--rw operator-option-dns-wire | | +--rw enable boolean
| | +--rw enable boolean | | +--rw textstring* [textstring-id]
| | +--rw operator-option-dns-wire* [operator-option-dns-wire-id] | | +--rw textstring-id uint8
| | +--rw operator-option-dns-wire-id uint8 | | +--rw textstring string
| | +--rw operator-option-dns-wire string | +--rw operator-option-var-data
| +--rw s46-v4-v6-binding-option | | +--rw enable boolean
| +--rw enable boolean | | +--rw int32val* [var-data-id]
| +--rw ce* [ce-id] | | +--rw var-data-id uint8
| +--rw ce-id uint8 | | +--rw var-data binary
| +--rw ipv4-addr inet:ipv4-address | +--rw operator-option-dns-wire
| +--rw bind-prefix6-len uint8 | | +--rw enable boolean
| +--rw bind-ipv6-prefix inet:ipv6-prefix | | +--rw operator-option-dns-wire*
| +--rw port-parameter | | [operator-option-dns-wire-id]
| +--rw offset uint8 | | +--rw operator-option-dns-wire-id uint8
| +--rw psid-len uint8 | | +--rw operator-option-dns-wire binary
| +--rw psid uint16 | +--rw s46-dmr-option
+--rw network-ranges | | +--rw enable boolean
| +--rw option-set-id uint8 | | +--rw dmr* [dmr-id]
| +--rw network-range* [network-range-id] | | +--rw dmr-id uint8
| +--rw network-range-id uint8 | | +--rw dmr-prefix-len uint8
| +--rw network-description string | | +--rw dmr-ipv6-prefix inet:ipv6-prefix
| +--rw network-prefix inet:ipv6-prefix | +--rw s46-v4-v6-binding-option
| +--rw inherit-option-set boolean | +--rw enable boolean
| +--rw option-set-id uint8 | +--rw ce* [ce-id]
| +--rw address-pools | +--rw ce-id uint8
| | +--rw address-pool* [pool-id] | +--rw ipv4-addr inet:ipv4-address
| | | +--rw pool-id uint8 | +--rw bind-prefix6-len uint8
| | | +--rw pool-prefix inet:ipv6-prefix | +--rw bind-ipv6-prefix inet:ipv6-prefix
| | | +--rw start-address inet:ipv6-address | +--rw port-parameter
| | | +--rw end-address inet:ipv6-address | +--rw offset uint8
| | | +--rw renew-time yang:timeticks | +--rw psid-len uint8
| | | +--rw rebind-time yang:timeticks | +--rw psid uint16
| | | +--rw preferred-lifetime yang:timeticks +--rw network-ranges
| | | +--rw valid-lifetime yang:timeticks | +--rw option-set-id? uint8
| | | +--ro total-ipv6-count uint64 | +--rw network-range* [network-range-id]
| | | +--ro used-ipv6-count uint64 | +--rw network-range-id uint8
| | | +--rw utilization-ratio threshold | +--rw network-description string
| | | +--rw inherit-option-set boolean | +--rw network-prefix inet:ipv6-prefix
| | | +--rw option-set-id uint8 | +--rw inherit-option-set boolean
| | | +--rw reserved-addresses | +--rw option-set-id uint8
| | | +--rw static-binding* [cli-id] | +--rw reserved-addresses
| | | | +--rw cli-id uint32 | | +--rw static-binding* [cli-id]
| | | | +--rw duid duidtype | | | +--rw cli-id uint32
| | | | +--rw reserv-addr* inet:ipv6-address | | | +--rw duid
| | | +--rw other-reserv-addr* inet:ipv6-address | | | | +--rw (duid-type)?
| | +--ro binding-info* [cli-id] | | | | +--:(duid-llt)
| | +--ro cli-id uint32 | | | | | +--rw duid-llt-hardware-type? uint16
| | +--ro duid duidtype | | | | | +--rw duid-llt-time?
| | +--ro cli-ia* [iaid] | | | | | | yang:timeticks
| | +--ro ia-type string | | | | | +--rw duid-llt-link-layer-addr?
| | +--ro iaid uint32 | | | | | yang:mac-address
| | +--ro cli-addr* inet:ipv6-address | | | | +--:(duid-en)
| | +--ro pool-id? uint8 | | | | | +--rw duid-en-enterprise-number? uint32
| +--rw prefix-pools | | | | | +--rw duid-en-identifier? string
| | +--rw prefix-pool* [pool-id] | | | | +--:(duid-ll)
| | | +--rw pool-id uint8 | | | | +--rw duid-ll-hardware-type? uint16
| | | +--rw prefix inet:ipv6-prefix | | | | +--rw duid-ll-time?
| | | +--rw prefix-length uint8 | | | | yang:timeticks
| | | +--rw renew-time yang:timeticks | | | +--rw reserv-addr* inet:ipv6-address
| | | +--rw rebind-time yang:timeticks | | +--rw other-reserv-addr* inet:ipv6-address
| | | +--rw preferred-lifetime yang:timeticks | +--rw reserved-prefixes
| | | +--rw valid-lifetime yang:timeticks | | +--rw static-binding* [cli-id]
| | | +--rw utilization-ratio threshold | | | +--rw cli-id uint32
| | | +--rw inherit-option-set boolean | | | +--rw duid
| | | +--rw option-set-id uint8 | | | | +--rw (duid-type)?
| | | +--rw reserved-prefixes | | | | +--:(duid-llt)
| | | +--rw static-binding* [cli-id] | | | | | +--rw duid-llt-hardware-type? uint16
| | | | +--rw cli-id uint32 | | | | | +--rw duid-llt-time?
| | | | +--rw duid duidtype | | | | | | yang:timeticks
| | | | +--rw reserv-prefix-len uint8 | | | | | +--rw duid-llt-link-layer-addr?
| | | | +--rw reserv-prefix inet:ipv6-prefix | | | | | yang:mac-address
| | | +--rw exclude-prefix-len uint8 | | | | +--:(duid-en)
| | | +--rw exclude-prefix inet:ipv6-prefix | | | | | +--rw duid-en-enterprise-number? uint32
| | | +--rw other-reserv-prefix* [reserv-id] | | | | | +--rw duid-en-identifier? string
| | | +--rw reserv-id uint8 | | | | +--:(duid-ll)
| | | +--rw prefix-len uint8 | | | | +--rw duid-ll-hardware-type? uint16
| | | +--rw prefix inet:ipv6-prefix | | | | +--rw duid-ll-time?
| | +--ro binding-info* [cli-id] | | | | yang:timeticks
| | +--ro cli-id uint32 | | | +--rw reserv-prefix-len uint8
| | +--ro duid duidtype | | | +--rw reserv-prefix inet:ipv6-prefix
| | +--ro cli-iapd* [iaid] | | +--rw exclude-prefix-len uint8
| | +--ro iaid uint32 | | +--rw exclude-prefix inet:ipv6-prefix
| | +--ro cli-prefix* uint32 | | +--rw other-reserv-prefix* [reserv-id]
| | +--ro cli-prefix-len* uint8 | | +--rw reserv-id uint8
| | +--ro pool-id? uint8 | | +--rw prefix-len uint8
| +--rw hosts | | +--rw prefix inet:ipv6-prefix
| +--rw host* [cli-id] | +--rw address-pools
| +--rw cli-id uint32 | | +--rw address-pool* [pool-id]
| +--rw duid duidtype | | | +--rw pool-id uint8
| +--rw inherit-option-set boolean | | | +--rw pool-prefix inet:ipv6-prefix
| +--rw option-set-id uint8 | | | +--rw start-address inet:ipv6-address-no-zone
| +--rw nis-domain-name? string | | | +--rw end-address inet:ipv6-address-no-zone
| +--rw nis-plus-domain-name? string | | | +--rw renew-time yang:timeticks
+--rw relay-opaque-paras | | | +--rw rebind-time yang:timeticks
| +--rw relays* [relay-name] | | | +--rw preferred-lifetime yang:timeticks
| +--rw relay-name string | | | +--rw valid-lifetime yang:timeticks
| +--rw interface-info* [if-name] | | | +--ro total-ipv6-count uint64
| | +--rw if-name string | | | +--ro used-ipv6-count uint64
| | +--rw interface-id string | | | +--rw utilization-ratio threshold
| +--rw subscribers* [subscriber] | | | +--rw inherit-option-set boolean
| | +--rw subscriber uint8 | | | +--rw option-set-id uint8
| | +--rw subscriber-id string | | +--ro binding-info* [cli-id]
| +--rw remote-host* [ent-num] | | +--ro cli-id uint32
| +--rw ent-num uint32 | | +--ro duid
| +--rw remote-id string | | | +--ro (duid-type)?
+--rw rsoo-enabled-options | | | +--:(duid-llt)
| +--rw rsoo-enabled-option* [option-code] | | | | +--ro duid-llt-hardware-type? uint16
| +--rw option-code uint16 | | | | +--ro duid-llt-time?
| +--rw description string | | | | | yang:timeticks
+--ro packet-stats | | | | +--ro duid-llt-link-layer-addr?
+--ro solicit-count uint32 | | | | yang:mac-address
+--ro request-count uint32 | | | +--:(duid-en)
+--ro renew-count uint32 | | | | +--ro duid-en-enterprise-number? uint32
+--ro rebind-count uint32 | | | | +--ro duid-en-identifier? string
+--ro decline-count uint32 | | | +--:(duid-ll)
+--ro release-count uint32 | | | +--ro duid-ll-hardware-type? uint16
+--ro info-req-count uint32 | | | +--ro duid-ll-time?
+--ro advertise-count uint32 | | | yang:timeticks
+--ro confirm-count uint32 | | +--ro cli-ia* [iaid]
+--ro reply-count uint32 | | +--ro ia-type string
+--ro reconfigure-count uint32 | | +--ro iaid uint32
+--ro relay-forward-count uint32 | | +--ro cli-addr* inet:ipv6-address
+--ro relay-reply-count uint32 | | +--ro pool-id uint8
| +--rw prefix-pools
| | +--rw prefix-pool* [pool-id]
| | | +--rw pool-id uint8
| | | +--rw prefix inet:ipv6-prefix
| | | +--rw prefix-length uint8
| | | +--rw renew-time yang:timeticks
| | | +--rw rebind-time yang:timeticks
| | | +--rw preferred-lifetime yang:timeticks
| | | +--rw valid-lifetime yang:timeticks
| | | +--rw utilization-ratio threshold
| | | +--rw inherit-option-set boolean
| | | +--rw option-set-id uint8
| | +--ro binding-info* [cli-id]
| | +--ro cli-id uint32
| | +--ro duid
| | | +--ro (duid-type)?
| | | +--:(duid-llt)
| | | | +--ro duid-llt-hardware-type? uint16
| | | | +--ro duid-llt-time?
| | | | | yang:timeticks
| | | | +--ro duid-llt-link-layer-addr?
| | | | yang:mac-address
| | | +--:(duid-en)
| | | | +--ro duid-en-enterprise-number? uint32
| | | | +--ro duid-en-identifier? string
| | | +--:(duid-ll)
| | | +--ro duid-ll-hardware-type? uint16
| | | +--ro duid-ll-time?
| | | yang:timeticks
| | +--ro cli-iapd* [iaid]
| | +--ro iaid uint32
| | +--ro cli-prefix* inet:ipv6-prefix
| | +--ro cli-prefix-len* uint8
| | +--ro pool-id uint8
| +--rw hosts
| +--rw host* [cli-id]
| +--rw cli-id uint32
| +--rw duid
| | +--rw (duid-type)?
| | +--:(duid-llt)
| | | +--rw duid-llt-hardware-type? uint16
| | | +--rw duid-llt-time?
| | | | yang:timeticks
| | | +--rw duid-llt-link-layer-addr?
| | | yang:mac-address
| | +--:(duid-en)
| | | +--rw duid-en-enterprise-number? uint32
| | | +--rw duid-en-identifier? string
| | +--:(duid-ll)
| | +--rw duid-ll-hardware-type? uint16
| | +--rw duid-ll-time?
| | yang:timeticks
| +--rw inherit-option-set boolean
| +--rw option-set-id uint8
| +--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, o operator-option-ipv6-address, operator-option-single-flag,
operator-option-ipv6-prefix, operator-option-int32, operator- operator-option-ipv6-prefix, operator-option-int32, operator-
option-int16, operator-option-int8, operator-option-uri, operator- option-int16, operator-option-int8, operator-option-uri, operator-
option-textstring, operator-option-var-data, operator-option-dns- option-textstring, operator-option-var-data, operator-option-dns-
wire: are generic option formats described in ([RFC7227]). 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
listen on all the interfaces. This node is also used to set a listen on all the interfaces. This node is also used to set a
unicast address for the server to listen with a specific unicast address for the server to listen with a specific
interface. For example, if people want the server to listen on a interface. For example, if the server is being configured to
unicast address with a specific interface, he can use the format listen on a unicast address assigned to a specific interface, the
like "eth1/2001:db8::1". format "eth1/2001:db8::1" can be used.
o option-sets: DHCPv6 employs various options to carry additional o option-sets: DHCPv6 employs various options to carry additional
information and parameters in DHCP messages. This container information and parameters in DHCP messages. This container
defines all the possible options that need to be configured at the defines all the possible options that need to be configured at the
server side. The relevant RFCs that define those options include: server side. The relevant RFCs that define those options include:
[RFC3315], [RFC3319], [RFC3646], [RFC3898], [RFC4242], [RFC4704], [RFC3315], [RFC3319], [RFC3646], [RFC3898], [RFC4242], [RFC4704],
[RFC4833], [RFC5908], [RFC5970], [RFC4075], [RFC6334], [RFC6784], [RFC4833], [RFC5908], [RFC5970], [RFC4075], [RFC6334], [RFC6784],
[RFC7078], [RFC7083], [RFC7291], [RFC7598]. [RFC7078], [RFC7083], [RFC7291], [RFC7598].
o option-set: A server may allow different option sets to be o option-set: A server may allow different option sets to be
skipping to change at page 11, line 38 skipping to change at page 13, line 14
not. With the "new-or-standard-option" list, it is easy to extend not. With the "new-or-standard-option" list, it is easy to extend
the model when new options are defined. We could also use the the model when new options are defined. We could also use the
"new-or-standard-option" list to define an IETF standard option. "new-or-standard-option" list to define an IETF standard option.
o network-ranges: This model supports a hierarchy to achieve dynamic o network-ranges: This model supports a hierarchy to achieve dynamic
configuration. That is to say we could configure the server at configuration. That is to say we could configure the server at
different levels through this model. The top level is a global different levels through this model. The top level is a global
level which is defined as the container "network-ranges". The level which is defined as the container "network-ranges". The
following levels are defined as sub-containers under it. The following levels are defined as sub-containers under it. The
"network-ranges" contains the parameters (e.g. option-sets) that "network-ranges" contains the parameters (e.g. option-sets) that
would be allocated to all the clients served by this server. would be allocated to all the clients served by this server
o network-range: Under the "network-ranges" container, a "network- o network-range: Under the "network-ranges" container, a "network-
range" list is defined to configure the server at a network level range" list is defined to configure the server at a network level
which is also considered as the second level. Different network which is also considered as the second level. Different network
are identified by the key "network-range-id". This is because a are identified by the key "network-range-id". This is because a
server may have different configuration parameters (e.g. option server may have different configuration parameters (e.g. option
sets) for different networks. sets) for different networks.
o address-pools: Under the "network-range" list, a container o address-pools: Under the "network-range" list, a container
describes the DHCPv6 server's address pools for a specific network describes the DHCPv6 server's address pools for a specific network
skipping to change at page 12, line 45 skipping to change at page 14, line 20
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.
2.2. DHCPv6 Relay Tree Diagrams 2.2. DHCPv6 Relay Tree Diagrams
+--rw dhcpv6 module: ietf-dhcpv6
+-- ... +--rw relay!
| +--rw relay-attributes
+--rw relay | +--rw name? string
+--rw relay-attributes | +--rw description? string
| +--rw name string | +--rw dest-addrs* inet:ipv6-address
| +--rw enable boolean | +--rw subscribers* [subscriber]
| +--rw description? string | | +--rw subscriber uint8
| +--rw dest-addrs* inet:ipv6-address | | +--rw subscriber-id string
| +--rw subscribers* [subscriber] | +--rw remote-host* [ent-num]
| | +--rw subscriber uint8 | | +--rw ent-num uint32
| | +--rw subscriber-id string | | +--rw remote-id string
| +--rw remote-host* [entNum] | +--rw vendor-info
| | +--rw ent-num uint32 | +--rw ent-num uint32
| | +--rw remote-id string | +--rw data* string
| +--rw vendor-info +--rw relay-supplied-options-option
| +--rw ent-num uint32 | +--rw rsoo-set* [rsoo-set-id]
| +--rw data* string | +--rw rsoo-set-id uint8
+--rw relay-supplied-options-option | +--rw erp-local-domain-name-option
| +--rw rsoo-set* [rsoo-set-id] | +--rw enable boolean
| +--rw rsoo-set-id uint8 | +--rw erp-for-client* [cli-id]
| +--rw erp-local-domain-name-option | +--rw cli-id uint32
| +--rw enable boolean | +--rw duid
| +--rw erp-for-client* [cli-id] | | +--rw (duid-type)?
| +--rw cli-id uint32 | | +--:(duid-llt)
| +--rw duid duidtype | | | +--rw duid-llt-hardware-type? uint16
| +--rw erp-name string | | | +--rw duid-llt-time?
+--rw relay-if* [if-name] | | | | yang:timeticks
| +--rw if-name string | | | +--rw duid-llt-link-layer-addr?
| +--rw enable boolean | | | yang:mac-address
| +--rw ipv6-address? ietf:ipv6-address | | +--:(duid-en)
| +--rw interface-id? string | | | +--rw duid-en-enterprise-number? uint32
| +--rw rsoo-set [rsoo-set-id] | | | +--rw duid-en-identifier? string
| +--rw pd-route* [pd-route-id] | | +--:(duid-ll)
| | +--rw pd-route-id uint8 | | +--rw duid-ll-hardware-type? uint16
| | +--rw requesting-router-id uint32 | | +--rw duid-ll-time?
| | +--rw delegating-router-id uint32 | | yang:timeticks
| | +--rw next-router inet:ipv6-address | +--rw erp-name string
| | +--rw last-router inet:ipv6-address +--rw relay-if* [if-name]
| +--rw next-entity* [dest-addr] | +--rw if-name string
| +--rw dest-addr inet:ipv6-address | +--rw enable boolean
| +--rw available boolean | +--rw ipv6-address? inet:ipv6-address
| +--rw multicast boolean | +--rw interface-id? string
| +--rw server boolean | +--rw rsoo-set* uint8
| +--ro packet-stats | +--rw pd-route* [pd-route-id]
| +--ro cli-packet-rvd-count uint32 | | +--rw pd-route-id uint8
| +--ro solicit-rvd-count uint32 | | +--rw requesting-router-id uint32
| +--ro request-rvd-count uint32 | | +--rw delegating-router-id uint32
| +--ro renew-rvd-count uint32 | | +--rw next-router inet:ipv6-address
| +--ro rebind-rvd-count uint32 | | +--rw last-router inet:ipv6-address
| +--ro decline-rvd-count uint32 | +--rw next-entity* [dest-addr]
| +--ro release-rvd-count uint32 | +--rw dest-addr inet:ipv6-address
| +--ro info-req-rvd-count uint32 | +--rw available boolean
| +--ro relay-for-rvd-count uint32 | +--rw multicast boolean
| +--ro relay-rep-rvd-count uint32 | +--rw server boolean
| +--ro packet-to-cli-count uint32 | +--ro packet-stats
| +--ro adver-sent-count uint32 | +--ro cli-packet-rvd-count uint32
| +--ro confirm-sent-count uint32 | +--ro solicit-rvd-count uint32
| +--ro reply-sent-count uint32 | +--ro request-rvd-count uint32
| +--ro reconfig-sent-count uint32 | +--ro renew-rvd-count uint32
| +--ro relay-for-sent-count uint32 | +--ro rebind-rvd-count uint32
| +--ro relay-rep-sent-count uint32 | +--ro decline-rvd-count uint32
+--ro relay-stats | +--ro release-rvd-count uint32
+--ro cli-packet-rvd-count uint32 | +--ro info-req-rvd-count uint32
+--ro relay-for-rvd-count uint32 | +--ro relay-for-rvd-count uint32
+--ro relay-rep-rvd-count uint32 | +--ro relay-rep-rvd-count uint32
+--ro packet-to-cli-count uint32 | +--ro packet-to-cli-count uint32
+--ro relay-for-sent-count uint32 | +--ro adver-sent-count uint32
+--ro relay-rep-sent-count uint32 | +--ro confirm-sent-count uint32
+--ro discarded-packet-count uint32 | +--ro reply-sent-count uint32
| +--ro reconfig-sent-count uint32
| +--ro relay-for-sent-count uint32
| +--ro relay-rep-sent-count uint32
+--ro relay-stats
+--ro cli-packet-rvd-count uint32
+--ro relay-for-rvd-count uint32
+--ro relay-rep-rvd-count uint32
+--ro packet-to-cli-count uint32
+--ro relay-for-sent-count uint32
+--ro relay-rep-sent-count uint32
+--ro discarded-packet-count uint32
Introduction of important nodes: Introduction of important nodes:
o relay-attributes: A container describes some basic attributes of o relay-attributes: A container describes some basic attributes of
the relay agent including some relay agent specific options data the relay agent including some relay agent specific options data
that need to be configured previously. Such options include that need to be configured previously. Such options include
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
skipping to change at page 15, line 20 skipping to change at page 17, line 7
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.
2.3. DHCPv6 Client Tree Diagrams 2.3. DHCPv6 Client Tree Diagrams
+--rw dhcpv6 module: ietf-dhcpv6
+-- ... +--rw client!
| +--rw duid
+--rw client | +--rw (duid-type)?
+--rw client-if* [if-name] | +--:(duid-llt)
+--rw if-name string | | +--rw duid-llt-hardware-type? uint16
+--rw cli-id uint32 | | +--rw duid-llt-time? yang:timeticks
+--rw duid duidtype | | +--rw duid-llt-link-layer-addr? yang:mac-address
+--rw enable boolean | +--:(duid-en)
+--rw description? string | | +--rw duid-en-enterprise-number? uint32
+--rw pd-function boolean | | +--rw duid-en-identifier? string
+--rw rapid-commit boolean | +--:(duid-ll)
+--rw mo-tab | +--rw duid-ll-hardware-type? uint16
| +--rw m-tab boolean | +--rw duid-ll-time? yang:timeticks
| +--rw o-tab boolean +--rw client-if* [if-name]
+--rw oro-options +--rw if-name string
| +--rw oro-option* [option-code] +--rw cli-id uint32
| +--rw option-code uint16 +--rw description? string
| +--rw description string +--rw pd-function boolean
+--rw client-configured-options +--rw rapid-commit boolean
| +--rw new-or-standard-cli-option* [option-code] +--rw mo-tab
| | +--rw option-code uint16 | +--rw m-tab boolean
| | +--rw option-name string | +--rw o-tab boolean
| | +--rw option-description string +--rw oro-options
| | +--rw option-reference? string | +--rw oro-option* [option-code]
| | +--rw option-value string | +--rw option-code uint16
| +--rw user-class-option | +--rw description string
| | +--rw enable boolean +--rw client-configured-options
| | +--rw user-class* [user-class-id] | +--rw new-or-standard-cli-option* [option-code]
| | +--rw user-class-id uint8 | | +--rw option-code uint16
| | +--rw user-class-info string | | +--rw option-name string
| +--rw vendor-class-option | | +--rw option-description string
| | +--rw enable boolean | | +--rw option-reference? string
| | +--rw ent-num uint32 | | +--rw option-value string
| | +--rw data* string | +--rw user-class-option
| +--rw client-fqdn-option | | +--rw enable boolean
| | +--rw enable boolean | | +--rw user-class* [user-class-id]
| | +--rw fqdn string | | +--rw user-class-id uint8
| | +--rw server-initiate-update boolean | | +--rw user-class-info string
| | +--rw client-initiate-update boolean | +--rw vendor-class-option
| +--rw client-architecture-type-option | | +--rw enable boolean
| | +--rw enable boolean | | +--rw ent-num uint32
| | +--rw architecture-types* [type-id] | | +--rw data* string
| | | +--rw type-id uint16 | +--rw client-fqdn-option
| | | +--rw most-preferred boolean | | +--rw enable boolean
| +--rw client-network-interface-option | | +--rw fqdn string
| | +--rw enable booelan | | +--rw server-initiate-update boolean
| | +--rw type uint8 | | +--rw client-initiate-update boolean
| | +--rw major uint8 | +--rw client-architecture-type-option
| | +--rw minor uint8 | | +--rw enable boolean
| +--rw kerberos-principal-name-option | | +--rw architecture-types* [type-id]
| | +--rw enable boolean | | +--rw type-id uint16
| | +--rw principal-name string | | +--rw most-preferred boolean
| +--rw client-link-layer-addr-option | +--rw client-network-interface-option
| +--rw enable boolean | | +--rw enable boolean
| +--rw link-layer-type uint16 | | +--rw type uint8
| +--rw link-layer-addr string | | +--rw major uint8
+--ro identity-associations | | +--rw minor uint8
| +--ro identity-association* [iaid] | +--rw kerberos-principal-name-option
| +--ro iaid uint32 | | +--rw enable boolean
| +--ro ia-type string | | +--rw principal-name string
| +--ro ipv6-addr* inet:ipv6-address | +--rw client-link-layer-addr-option
| +--ro ipv6-prefix* inet:ipv6-prefix | +--rw enable boolean
| +--ro prefix-length* uint8 | +--rw link-layer-type uint16
| +--ro t1-time yang:timeticks | +--rw link-layer-addr string
| +--ro t2-time yang:timeticks +--ro identity-associations
| +--ro preferred-lifetime yang:timeticks | +--ro identity-association* [iaid]
| +--ro valid-lifetime yang:timeticks | +--ro iaid uint32
+--ro if-other-paras | +--ro ia-type string
| +--ro uni-dhcpv6-serv-addr inet:ipv6-address | +--ro ipv6-addr* inet:ipv6-address
| +--ro dns-paras | +--ro ipv6-prefix* inet:ipv6-prefix
| | +--ro domain-search-list string | +--ro prefix-length* uint8
| | +--ro dns-servers* [dns-serv-id] | +--ro t1-time yang:timeticks
| | +--ro dns-serv-id uint8 | +--ro t2-time yang:timeticks
| | +--ro dns-serv-addr inet:ipv6-address | +--ro preferred-lifetime yang:timeticks
| +--ro sip-paras | +--ro valid-lifetime yang:timeticks
| | +--ro sip-servers* [sip-serv-id] +--ro if-other-paras
| | +--ro sip-serv-id uint8 | +--ro uni-dhcpv6-serv-addr* inet:ipv6-address
| | +--ro sip-serv-addr inet:ipv6-address | +--ro dns-paras
| | +--ro sip-serv-domain-name string | | +--ro domain-search-list string
| +--ro nis-paras | | +--ro dns-servers* [dns-serv-id]
| | +--ro nis-domain-name string | | +--ro dns-serv-id uint8
| | +--ro nis-server* [nis-serv-id] | | +--ro dns-serv-addr inet:ipv6-address
| | +--ro nis-serv-id uint8 | +--ro sip-paras
| | +--ro nis-serv-addr inet:ipv6-address | | +--ro sip-servers* [sip-serv-id]
| +--ro nis-plus-paras | | +--ro sip-serv-id uint8
| | +--ro nis-plus-domain-name string | | +--ro sip-serv-addr inet:ipv6-address
| | +--ro nis-plus-server* [nis-plus-serv-id] | | +--ro sip-serv-domain-name string
| | +--ro nis-plus-serv-id uint8 | +--ro nis-paras
| | +--ro nis-plus-serv-addr inet:ipv6-address | | +--ro nis-domain-name string
| +--ro info-refresh-time yang:timeticks | | +--ro nis-server* [nis-serv-id]
| +--ro time-zone-paras | | +--ro nis-serv-id uint8
| | +--ro tz-posix string | | +--ro nis-serv-addr inet:ipv6-address
| | +--ro tz-database string | +--ro nis-plus-paras
| +--ro cli-fqdn string | | +--ro nis-plus-domain-name string
| +--ro ntp-paras | | +--ro nis-plus-server* [nis-plus-serv-id]
| | +--ro ntp-server* [ntp-serv-id] | | +--ro nis-plus-serv-id uint8
| | +--ro ntp-serv-id uint8 | | +--ro nis-plus-serv-addr inet:ipv6-address
| | +--ro ntp-serv-addr inet:ipv6-address | +--ro info-refresh-time? yang:timeticks
| | +--ro ntp-serv-mul-addr inet:ipv6-address | +--ro time-zone-paras
| | +--ro ntp-serv-fqdn string | | +--ro tz-posix string
| +--ro sntp-paras | | +--ro tz-database string
| | +--ro sntp-server* [sntp-serv-id] | +--ro cli-fqdn? string
| | +--ro sntp-serv-id uint8 | +--ro ntp-paras
| | +--ro sntp-serv-addr inet:ipv6-address | | +--ro ntp-server* [ntp-serv-id]
| +--ro network-boot-paras | | +--ro ntp-serv-id uint8
| | +--ro boot-file* [boot-file-id] | | +--ro ntp-serv-addr inet:ipv6-address
| | +--ro boot-file-id uint8 | | +--ro ntp-serv-mul-addr inet:ipv6-address
| | +--ro suitable-arch-type* uint16 | | +--ro ntp-serv-fqdn string
| | +--ro suitable-net-if* uint32 | +--ro sntp-paras
| | +--ro boot-file-url string | | +--ro sntp-server* [sntp-serv-id]
| | +--ro boot-file-paras* [para-id] | | +--ro sntp-serv-id uint8
| | +--ro para-id uint8 | | +--ro sntp-serv-addr inet:ipv6-address
| | +--ro parameter string | +--ro network-boot-paras
| +--ro kerberos-paras | | +--ro boot-file* [boot-file-id]
| | +--ro default-realm-name string | | +--ro boot-file-id uint8
| | +--ro kdc-info* [kdc-id] | | +--ro suitable-arch-type* uint16
| | +--ro kdc-id uint8 | | +--ro suitable-net-if* uint32
| | +--ro priority uint16 | | +--ro boot-file-url string
| | +--ro weight uint16 | | +--ro boot-file-paras* [para-id]
| | +--ro transport-type uint8 | | +--ro para-id uint8
| | +--ro port-number uint16 | | +--ro parameter string
| | +--ro kdc-ipv6-addr inet:ipv6-address | +--ro kerberos-paras
| | +--ro realm-name string | | +--ro default-realm-name string
| +--ro addr-selection-paras | | +--ro kdc-info* [kdc-id]
| | +--ro automatic-row-add boolean | | +--ro kdc-id uint8
| | +--ro prefer-temporary-addr boolean | | +--ro priority uint16
| | +--ro policy-table* [policy-id] | | +--ro weight uint16
| | +--ro policy-id uint8 | | +--ro transport-type uint8
| | +--ro label uint8 | | +--ro port-number uint16
| | +--ro precedence uint8 | | +--ro kdc-ipv6-addr inet:ipv6-address
| | +--ro prefix-len uint8 | | +--ro realm-name string
| | +--ro prefix inet:ipv6-prefix | +--ro addr-selection-paras
| +--ro sol-max-rt yang:timeticks | | +--ro automatic-row-add boolean
| +--ro inf-max-rt yang:timeticks | | +--ro prefer-temporary-addr boolean
| +--ro pcp-paras | | +--ro policy-table* [policy-id]
| | +--ro pcp-server* [pcp-serv-id] | | +--ro policy-id uint8
| | +--ro pcp-serv-id uint8 | | +--ro label uint8
| | +--ro pcp-serv-addr inet:ipv6-address | | +--ro precedence uint8
| +--ro s46-rule-paras | | +--ro prefix-len uint8
| | +--ro s46-rule* [rule-id] | | +--ro prefix inet:ipv6-prefix
| | +--ro rule-id uint8 | +--ro sol-max-rt yang:timeticks
| | +--ro rule-type enumeration | +--ro inf-max-rt yang:timeticks
| | +--ro ea-len uint8 | +--ro pcp-server-paras
| | +--ro prefix4-len uint8 | | +--ro pcp-server* [pcp-serv-id]
| | +--ro ipv4-prefix inet:ipv4-prefix | | +--ro pcp-serv-id uint8
| | +--ro prefix6-len uint8 | | +--ro pcp-serv-addr inet:ipv6-address
| | +--ro ipv6-prefix inet:ipv6-prefix | +--ro s46-rule-paras
| | +--ro port-parameter | | +--ro s46-rule* [rule-id]
| | +--ro offset uint8 | | +--ro rule-id uint8
| | +--ro psid-len uint8 | | +--ro rule-type enumeration
| | +--ro psid uint16 | | +--ro ea-len uint8
| +--ro s46-br-paras | | +--ro prefix4-len uint8
| | +--ro br* [br-id] | | +--ro ipv4-prefix inet:ipv4-prefix
| | +--ro br-id uint8 | | +--ro prefix6-len uint8
| | +--ro br-ipv6-addr inet:ipv6-address | | +--ro ipv6-prefix inet:ipv6-prefix
| +--ro s46-dmr-paras | | +--ro port-parameter
| | +--ro dmr* [dmr-id] | | +--ro offset uint8
| | +--ro dmr-id uint8 | | +--ro psid-len uint8
| | +--ro dmr-prefix6-len uint8 | | +--ro psid uint16
| | +--ro dmr-ipv6-prefix inet:ipv6-prefix | +--ro s46-br-paras
| +--ro s46-v4-v6-binding-paras | | +--ro br* [br-id]
| | +--ro ipv4-addr inet:ipv6-address | | +--ro br-id uint8
| | +--ro bind-prefix6-len uint8 | | +--ro br-ipv6-addr inet:ipv6-address
| | +--ro port-parameter | +--ro s46-dmr-paras
| | +--ro offset uint8 | | +--ro dmr* [dmr-id]
| | +--ro psid-len uint8 | | +--ro dmr-id uint8
| | +--ro psid uint16 | | +--ro dmr-prefix-len uint8
| +--ro erp-local-domain-name string | | +--ro dmr-ipv6-prefix inet:ipv6-prefix
+--ro supported-options | +--ro s46-v4-v6-binding-paras
| +--ro supported-option* [option-code] | | +--ro ipv4-addr inet:ipv4-address
| +--ro option-code uint16 | | +--ro bind-prefix6-len uint8
| +--ro description string | | +--ro port-parameter
+--ro packet-stats | | | +--ro offset uint8
+--ro solicit-count uint32 | | | +--ro psid-len uint8
+--ro request-count uint32 | | | +--ro psid uint16
+--ro renew-count uint32 | | +--ro erp-local-domain-name string
+--ro rebind-count uint32 | +--ro supported-options
+--ro decline-count uint32 | +--ro supported-option* [option-code]
+--ro release-count uint32 | +--ro option-code uint16
+--ro info-req-count uint32 | +--ro description string
+--ro advertise-count uint32 +--ro packet-stats
+--ro confirm-count uint32 +--ro solicit-count uint32
+--ro reply-count uint32 +--ro request-count uint32
+--ro reconfigure-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
Introduction of important nodes: Introduction of important nodes:
o client-if: A client may have several interfaces, it is more o client-if: A client may have several interfaces, it is more
reasonable to configure and manage parameters on the interface- reasonable to configure and manage parameters on the interface-
level. The list defines a specific client interface and its data. level. The list defines a specific client interface and its data.
Different interfaces are distinguished by the "ifName" key which Different interfaces are distinguished by the "ifName" key which
is a configurable string value. is a configurable string value.
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 will be carried in the Client ID Identifier). The DUID here will be carried in the Client ID
option to identify a specific DHCPv6 client. This leaf are same option to identify a specific DHCPv6 client. This leaf are same
as the "duid" leaf in "dhcpv6-server" feature. as the "duid" leaf in "dhcpv6-server" feature.
o pd-function: Whether the client can act as a requesting router to o pd-function: Whether the client can act as a requesting router to
request prefixes using prefix delegation ([RFC3633]). request prefixes using prefix delegation ([RFC3633]).
o rapid-commit: '1' indicates a client can initiate a Solicit-Reply o rapid-commit: '1' indicates a client can initiate a Solicit-Reply
message exchange by adding a Rapid Commit option in Solicit message exchange by adding a Rapid Commit option in Solicit
message. '0' means the client is not allowed to add a Rapid Commit message. '0' means the client is not allowed to add a Rapid
option to request addresses in a two-message exchange pattern. Commit option to request addresses in a two-message exchange
pattern.
o mo-tab: The management tab label indicates the operation mode of o mo-tab: The management tab label indicates the operation mode of
the DHCPv6 client. 'm'=1 and 'o'=1 indicate the client will use 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 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 meaningless combination. 'm'=0 and 'o'=1 indicate the client will
use stateless DHCPv6 to obtain configuration data apart from use stateless DHCPv6 to obtain configuration data apart from
addresses/prefixes data. 'm'=0 and 'o'=0 represent the client will addresses/prefixes data. 'm'=0 and 'o'=0 represent the client will
not use DHCPv6 but use SLAAC to achieve configuration. not use DHCPv6 but use SLAAC to achieve configuration.
o oro-options: This container provide a way to configure the list of o oro-options: This container provide a way to configure the list of
skipping to change at page 21, line 41 skipping to change at page 23, line 41
| +--ro iaid uint32 | +--ro iaid uint32
| +--ro serv-name? string | +--ro serv-name? string
| +--ro description? string | +--ro description? string
+--n retransmission-failed +--n retransmission-failed
| +--ro duid duidtype | +--ro duid duidtype
| +--ro description enumeration | +--ro description enumeration
+--n failed-status-turn-up +--n failed-status-turn-up
+--ro duid duidtype +--ro duid duidtype
+--ro status-code enumeration +--ro status-code enumeration
Introduction of notifications: Information about notifications:
o pool-running-out: raised when the address/prefix pool is going to o pool-running-out: raised when the address/prefix pool is going to
run out. A threshold for utilization ratio of the pool has been run out. A threshold for utilization ratio of the pool has been
defined in the server feature so that it will notify the defined in the server feature so that it will notify the
administrator when the utilization ratio reaches the threshold, administrator when the utilization ratio reaches the threshold,
and such threshold is a settable parameter. and such threshold is a settable parameter.
o invalid-client-detected: raised when the server has found a client o invalid-client-detected: raised when the server has found a client
which can be regarded as a potential attacker. Some description which can be regarded as a potential attacker. Some description
could also be included. could also be included.
skipping to change at page 22, line 25 skipping to change at page 24, line 25
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.
3. DHCPv6 YANG Model 3. DHCPv6 YANG Model
This module imports typedefs from [RFC6991]. This module imports typedefs from [RFC6991].
<CODE BEGINS> file "ietf-dhcpv6@2016-06-18.yang" <CODE BEGINS> file "ietf-dhcpv6@2017-10-26.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
sladjana.zoric@telekom.de"; sladjana.zechlin@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 2016-06-18 { revision 2017-10-26 {
description "version08: resolve yang compiling error: description "version09: resolve feedbacks from IETF96";
reference "I-D: draft-ietf-dhc-dhcpv6-yang-04";
}
revision 2016-06-18 {
description "version08: resolve yang compiling error:
top-level node must not be mandatory, wait for YANG top-level node must not be mandatory, wait for YANG
doctor's review"; doctor's review";
reference "I-D: draft-ietf-dhc-dhcpv6-yang-03"; reference "I-D: draft-ietf-dhc-dhcpv6-yang-03";
} }
revision 2016-06-15 { revision 2016-06-15 {
description "version07: resolve yang compiling errors, wait description "version07: resolve yang compiling errors, wait
for YANG doctor's review"; for YANG doctor's review";
reference "I-D: draft-ietf-dhc-dhcpv6-yang-02"; reference "I-D: draft-ietf-dhc-dhcpv6-yang-02";
} }
revision 2016-03-21 { revision 2016-03-21 {
description "version06: resolve feedbacks from IETF94"; description "version06: resolve feedbacks from IETF94";
reference "I-D: draft-ietf-dhc-dhcpv6-yang-01"; reference "I-D: draft-ietf-dhc-dhcpv6-yang-01";
} }
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 threshold {
type union { type union {
type uint16; type uint16 {
type string { range 0..100;
pattern '(([0-9a-fA-F]{2}){2,128})';
}
} }
description "the type defined for duid"; type enumeration {
enum "disabled" {
description "No threshold";
}
}
}
description "Threshold value in percent";
} }
typedef threshold { /*
* Grouping
*/
type union { grouping vendor-infor {
type uint16 { description "Vendor information.";
range 0..100; container vendor-info {
} description "";
type enumeration { leaf ent-num {
enum "disabled" { type uint32;
description "No threshold"; mandatory true;
} description "enterprise number";
}
} }
description "Threshold value in percent"; leaf-list data {
type string;
description "specific vendor info";
}
}
} }
/* grouping duid {
* Grouping description "DHCP Unique Identifier";
*/ reference "RFC3315: Section 9";
choice duid-type {
description "Selects the format for the DUID.";
case duid-llt {
description "DUID Based on Link-layer Address Plus Time";
reference "RFC3315 Section 9.2";
leaf duid-llt-hardware-type {
type uint16;
description "Hardware type as assigned by IANA (RFC826).";
}
leaf duid-llt-time {
type yang:timeticks;
description "The time value is the time that the DUID is generated
represented in seconds since midnight (UTC), January 1, 2000,
modulo 2^32.";
}
leaf duid-llt-link-layer-addr {
type yang:mac-address;
description "Link-layer address as described in RFC2464";
}
}
case duid-en {
description "DUID Assigned by Vendor Based on Enterprise Number";
reference "RFC3315 Section 9.3";
leaf duid-en-enterprise-number {
type uint32;
description "Vendor's registered Private Enterprise Number as
maintained by IANA";
}
leaf duid-en-identifier {
type string;
description "Indentifier, unique to the device that is using it";
}
}
case duid-ll {
description "DUID Based on Link-layer Address";
reference "RFC3315 Section 9.4";
leaf duid-ll-hardware-type {
type uint16;
description "Hardware type as assigned by IANA (RFC826).";
}
leaf duid-ll-time {
type yang:timeticks;
description "The time value is the time that the DUID is generated
represented in seconds since midnight (UTC), January 1, 2000,
modulo 2^32.";
}
}
grouping vendor-infor { }
description "vendor info"; }
container vendor-info {
description "";
leaf ent-num {
type uint32;
mandatory true;
description "enterprise number";
}
leaf-list data {
type string;
description "specific vendor info";
} grouping portset-para {
description "portset parameters";
container port-parameter {
description "port parameter";
leaf offset {
type uint8;
mandatory true;
description "offset in a port set";
}
leaf psid-len {
type uint8;
mandatory true;
description "length of a psid";
} }
leaf psid {
type uint16;
mandatory true;
description "psid value";
}
}
} }
grouping portset-para { /*
description "portset parameters"; * Data Nodes
container port-parameter { */
description "port parameter";
leaf offset { container server {
presence "Enables server";
description "dhcpv6 server portion";
container serv-attributes {
description "This container contains basic attributes
of a DHCPv6 server such as DUID, server name and so
on. Some optional functions that can be provided by
the server is also included.";
leaf name {
type string;
description "server's name";
}
container duid {
description "Sets the DUID";
uses duid;
}
leaf-list ipv6-address {
type inet:ipv6-address;
description "Server's IPv6 address.";
}
leaf description {
type string;
description "Description of the server.";
}
leaf pd-function {
type boolean;
mandatory true;
description "Whether the server can act as a
delegating router to perform prefix delegation
([RFC3633]).";
}
leaf stateless-service {
type boolean;
mandatory true;
description "A boolean value specifies whether
the server support client-server exchanges
involving two messages defined in ([RFC3315]).";
}
leaf rapid-commit {
type boolean;
mandatory true;
description "A boolean value specifies whether
the server support client-server exchanges
involving two messages defined in ([RFC3315]).";
}
leaf-list interfaces-config {
type string;
description "A leaf list to denote which one or
more interfaces the server should listen on. The
default value is to listen on all the interfaces.
This node is also used to set a unicast address
for the server to listen with a specific interface.
For example, if people want the server to listen
on a unicast address with a specific interface, he
can use the format like 'eth1/2001:db8::1'.";
}
uses vendor-infor;
}
container option-sets {
description "DHCPv6 employs various options to carry
additional information and parameters in DHCP messages.
This container defines all the possible options that
need to be configured at the server side.";
list option-set {
key option-set-id;
description "A server may allow different option
sets to be configured for different conditions
(i.e. different networks, clients and etc). This
'option-set' list enables various sets of options
being defined and configured in a single server.
Different sets are distinguished by the key called
'option-set-id'. All the possible options discussed
above are defined in the list and each option is
corresponding to a container.";
leaf option-set-id {
type uint8;
mandatory true;
description "the option-set-id key";
}
list new-or-standard-option {
key option-code;
description "new or standard option";
leaf option-code {
type uint16;
mandatory true;
description "the option code key";
}
leaf option-name {
type string;
mandatory true;
description "the new option's name";
}
leaf option-description {
type string;
mandatory true;
description "description of new option";
}
leaf option-reference {
type string;
description "reference to the
specification";
}
leaf option-value {
type string;
mandatory true;
description "the new option's value";
}
}
leaf user-class-value {
type string;
description "use class option's value";
}
leaf enterprise-number {
type uint32;
description "enterprise number";
}
leaf store-client-link-layer {
type boolean;
description "whether to store client's
link layer address";
}
container preference-option {
description "preference option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this option will be included in the
option set";
}
leaf preference-value {
type uint8;
mandatory true;
description "the value for this option";
}
}
container sip-server-option {
description "sip server option";
//Note - this container is currently modelling two options (21 & 22). It would allow the
//config of a mixed list of domain names and addresses in a way that doesn't follow the
//RFC. Needs to be broken into SIP Domain list and SIP Address list containers
reference "RFC3319: Dynamic Host Configuration Protocol
(DHCPv6) Options for Session Initiation Protocol (SIP)
Servers";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be included in the
option set";
}
list sip-server {
key sip-serv-id;
description "sip server info";
leaf sip-serv-id {
type uint8; type uint8;
mandatory true; mandatory true;
description "offset in a port set"; description "sip server id";
}
leaf sip-serv-domain-name {
type string;
mandatory true;
description "sip server domain
name";
}
leaf sip-serv-addr {
type inet:ipv6-address;
mandatory true;
description "sip server addr";
}
} }
leaf psid-len { }
container dns-config-option {
description "OPTION_DNS_SERVERS (23) DNS recursive Name
Server option";
reference "RFC3646: DNS Configuration options for Dynamic
Host Configuration Protocol for IPv6 (DHCPv6)";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be included in the
option set";
}
list dns-server {
key dns-serv-id;
description "dns server info";
leaf dns-serv-id {
type uint8; type uint8;
mandatory true; mandatory true;
description "length of a psid"; description "DNS server list entry ID.";
} }
leaf psid { leaf dns-serv-addr {
type uint16; type inet:ipv6-address;
mandatory true; mandatory true;
description "psid value"; description "DNS server address.";
}
} }
} }
} container domain-searchlist-option {
description "OPTION_DOMAIN_LIST (24) Domain Search List Option";
/* reference "RFC3646: DNS Configuration options for Dynamic
* Data Nodes Host Configuration Protocol for IPv6 (DHCPv6)";
*/ leaf enable {
type boolean;
container server { mandatory true;
presence "Enables server"; description "indicate whether this
description "dhcpv6 server portion"; option will be included in the
container serv-attributes { option set";
description "This container contains basic attributes }
of a DHCPv6 server such as DUID, server name and so list domain-searchlist {
on. Some optional functions that can be provided by key domain-searchlist-id;
the server is also included."; description "dns server info";
leaf name { leaf domain-searchlist-id {
type uint8;
mandatory true;
description "Domain seachlist entry ID.";
}
leaf domain-search-list-entry {
type string; type string;
mandatory true; mandatory true;
description "server's name"; description "Domain search list entry.";
}
} }
leaf duid { }
type duidtype; container nis-config-option {
description "OPTION_NIS_SERVERS (27) Network Information Service (NIS)
Servers Option.";
reference "RFC3989: Network Information Service (NIS) Configuration
Options for Dynamic Host Configuration Protocol for IPv6 (DHCPv6)";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be included in the
option set";
}
list nis-server {
key nis-serv-id;
description "nis server info";
leaf nis-serv-id {
type uint8;
mandatory true; mandatory true;
description "DHCP Unique Identifer"; description "nis server id";
}
leaf nis-serv-addr {
type inet:ipv6-address;
mandatory true;
description "nis server addr";
}
} }
}
container nis-plus-config-option {
description "OPTION_NISP_SERVERS (28): Network Information Service V2
(NIS+) Servers Option.";
reference "RFC3989: Network Information Service (NIS) Configuration
Options for Dynamic Host Configuration Protocol for IPv6 (DHCPv6)";
leaf enable { leaf enable {
type boolean; type boolean;
mandatory true; mandatory true;
description "whether to enable the server"; description "indicate whether this
option will be included in the
option set";
} }
leaf ipv6-address { list nis-plus-server {
key nis-plus-serv-id;
description "NIS+ server information.";
leaf nis-plus-serv-id {
type uint8;
mandatory true;
description "nisp server id";
}
leaf nis-plus-serv-addr {
type inet:ipv6-address; type inet:ipv6-address;
description "server's IPv6 address"; mandatory true;
description "nisp server addr";
}
} }
leaf description { }
type string; container sntp-server-option {
description "description of the server"; description "OPTION_SNTP_SERVERS (31) Simple Network Time Protocol
(SNTP) Servers Option";
reference "RFC4075: Simple Network Time Protocol (SNTP) Configuration
Option for DHCPv6";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be included in the
option set";
} }
leaf pd-function { list sntp-server {
type boolean; key sntp-serv-id;
description "sntp server info";
leaf sntp-serv-id {
type uint8;
mandatory true; mandatory true;
description "Whether the server can act as a description "sntp server id";
delegating router to perform prefix delegation }
([RFC3633])."; leaf sntp-serv-addr {
} type inet:ipv6-address;
leaf stateless-service {
type boolean;
mandatory true; mandatory true;
description "A boolean value specifies whether description "sntp server addr";
the server support client-server exchanges }
involving two messages defined in ([RFC3315]).";
} }
leaf rapid-commit { }
type boolean; container info-refresh-time-option {
mandatory true; description "OPTION_INFORMATION_REFRESH_TIME (32) Information Refresh
description "A boolean value specifies whether Time option.";
the server support client-server exchanges reference "RFC4242: Information Refresh Time Option for Dynamic Host
involving two messages defined in ([RFC3315])."; Configuration Protocol for IPv6 (DHCPv6";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be included in the
option set";
} }
leaf-list interfaces-config { leaf info-refresh-time {
type string; type yang:timeticks;
description "A leaf list to denote which one or mandatory true;
more interfaces the server should listen on. The description "The refresh time.";
default value is to listen on all the interfaces.
This node is also used to set a unicast address
for the server to listen with a specific interface.
For example, if people want the server to listen
on a unicast address with a specific interface, he
can use the format like 'eth1/2001:db8::1'.";
} }
uses vendor-infor; }
} container cli-fqdn-option {
container option-sets { description "OPTION_CLIENT_FQDN (39) DHCPv6 Client FQDN Option";
description "DHCPv6 employs various options to carry reference "RFC4704: The Dynamic Host Configuration Protocol for IPv6
additional information and parameters in DHCP messages. (DHCPv6) Client Fully Qualified Domain Name (FQDN) Option";
This container defines all the possible options that leaf enable {
need to be configured at the server side."; type boolean;
list option-set { mandatory true;
key option-set-id; description "indicate whether this option will be included in the
description "A server may allow different option option set";
sets to be configured for different conditions }
(i.e. different networks, clients and etc). This leaf server-initiate-update {
'option-set' list enables various sets of options type boolean;
being defined and configured in a single server. mandatory true;
Different sets are distinguished by the key called description "server initiate";
'option-set-id'. All the possible options discussed }
above are defined in the list and each option is leaf client-initiate-update {
corresponding to a container."; type boolean;
leaf option-set-id { mandatory true;
type uint8; description "client initiate";
mandatory true; }
description "the option-set-id key"; leaf modify-name-from-cli {
} type boolean;
list new-or-standard-option { mandatory true;
key option-code; description "modify by client";
description "new or standard option"; }
leaf option-code { }
type uint16; container posix-timezone-option {
mandatory true; description "OPTION_NEW_POSIX_TIMEZONE (41) Posix Timezone option";
description "the option code key"; reference "RFC4822: Timezone Options for DHCP";
} leaf enable {
leaf option-name { type boolean;
type string; mandatory true;
mandatory true; description "indicate whether this option will be included in the
description "the new option's name";
}
leaf option-description {
type string;
mandatory true;
description "description of new option";
}
leaf option-reference {
type string;
description "reference to the
specification";
}
leaf option-value {
type string;
mandatory true;
description "the new option's value";
}
}
leaf user-class-value {
type string;
description "use class option's value";
}
leaf enterprise-number {
type uint32;
description "enterprise number";
}
leaf store-client-link-layer {
type boolean;
description "whether to store client's
link layer address";
}
container preference-option {
description "preference option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be included in the
option set";
}
leaf preference-value {
type uint8;
mandatory true;
description "the value for this option";
}
}
container sip-server-option {
description "sip server option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be included in the
option set";
}
list sip-server {
key sip-serv-id;
description "sip server info";
leaf sip-serv-id {
type uint8;
mandatory true;
description "sip server id";
}
leaf sip-serv-domain-name {
type string;
mandatory true;
description "sip serevr domain
name";
}
leaf sip-serv-addr {
type inet:ipv6-address;
mandatory true;
description "sip server addr";
}
}
}
container dns-config-option {
description "dns configuration option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be included in the
option set";
}
list dns-server {
key dns-serv-id;
description "dns server info";
leaf dns-serv-id {
type uint8;
mandatory true;
description "dns server id";
}
leaf dns-serv-addr {
type inet:ipv6-address;
mandatory true;
description "dns server addr";
}
}
leaf domain-search-list {
type string;
mandatory true;
description "search list";
}
}
container nis-config-option {
description "nis configurtaion option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be included in the
option set"; option set";
}
} leaf tz-posix {
list nis-server { type string;
key nis-serv-id; mandatory true;
description "nis server info"; description "TZ Posix IEEE 1003.1 String";
leaf nis-serv-id { }
type uint8; }
mandatory true; container posix-timezone-db-option {
description "nis server id"; description "OPTION_NEW_TZDB_TIMEZONE (42) Timezone Database option";
} reference "RFC4822: Timezone Options for DHCP";
leaf nis-serv-addr { leaf enable {
type inet:ipv6-address; type boolean;
mandatory true; mandatory true;
description "nis server addr"; description "indicate whether this option will be included in the
}
}
}
container nis-plus-config-option {
description "nisp configuration option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be included in the
option set"; option set";
} }
list nis-plus-server { leaf tz-database {
key nis-plus-serv-id; type string;
description "nisp server info"; mandatory true;
leaf nis-plus-serv-id { description "Reference to the TZ Database";
type uint8; }
mandatory true; }
description "nisp server id"; container ntp-server-option {
} //This option looks like it needs work to correctly model the
leaf nis-plus-serv-addr { //option as defined in the RFC.
type inet:ipv6-address; description "OPTION_NTP_SERVER (56) NTP Server Option for DHCPv6";
mandatory true; reference "RFC5908: Network Time Protocol (NTP) Server Option for
description "nisp server addr"; DHCPv6";
} leaf enable {
} type boolean;
} mandatory true;
container info-refresh-time-option { description "indicate whether this option will be included in the
description "info refresh time option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be included in the
option set"; 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-suboption {
type inet:ipv6-address;
mandatory true;
description "ntp server addr";
} }
leaf info-refresh-time { leaf ntp-serv-mul-addr-suboption {
type yang:timeticks; type inet:ipv6-address;
mandatory true; mandatory true;
description "the refresh time"; description "ntp server multicast addr";
} }
} leaf ntp-serv-fqdn-suboption {
container cli-fqdn-option { type string;
description "client fqdn option"; mandatory true;
leaf enable { description "ntp server fqdn";
type boolean; }
mandatory true; }
description "indicate whether this }
option will be included in the container network-boot-option {
option set"; description "network boot option";
} leaf enable {
leaf server-initiate-update { type boolean;
type boolean; mandatory true;
mandatory true; description "indicate whether this
description "server initiate"; option will be included in the
} option set";
leaf client-initiate-update { }
type boolean; list boot-file {
mandatory true; key boot-file-id;
description "client initiate"; description "boot file info";
} leaf boot-file-id {
leaf modify-name-from-cli { type uint8;
type boolean; mandatory true;
mandatory true; description "boot file id";
description "modify by client"; }
} leaf-list suitable-arch-type {
} type uint16;
container timezone-option { description "architecture type";
description "timezone option"; }
leaf enable { leaf-list suitable-net-if {
type boolean; type uint32;
mandatory true; description "network interface";
description "indicate whether this }
option will be included in the leaf boot-file-url {
option set"; type string;
} mandatory true;
leaf tz-posix { description "url for boot file";
type string; }
mandatory true; list boot-file-paras {
description "tz posix"; key para-id;
} description "boot file parameters";
leaf tz-database { leaf para-id {
type string; type uint8;
mandatory true; mandatory true;
description "tz database"; description "parameter id";
}
}
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 { leaf parameter {
description "kerberos option"; type string;
leaf enable { mandatory true;
type boolean; description "parameter
mandatory true; value";
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; container aftr-name-option {
mandatory true; description "OPTION_AFTR_NAME (64) AFTR-Name DHCPv6 Option";
description "indicate whether this reference "RFC6334: Dynamic Host Configuration Protocol for IPv6
option will be included in the (DHCPv6) Option for Dual-Stack Lite";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this option will be included in the
option set";
}
leaf tunnel-endpoint-name {
type string;
mandatory true;
description "aftr name";
}
}
container kerberos-option {
//This needs re-working and possibly splitting into several option
//containers to follow the RFC.
description "kerberos option";
reference "RFC6784: Kerberos Options for DHCPv6";
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"; option set";
} }
leaf a-bit-set { leaf a-bit-set {
type boolean; type boolean;
mandatory true; mandatory true;
description "a bit"; description "a bit";
} }
leaf p-bit-set { leaf p-bit-set {
type boolean; type boolean;
mandatory true; mandatory true;
description "p bit"; description "p bit";
} }
list policy-table { list policy-table {
key policy-id; key policy-id;
description "policy table"; description "policy table";
leaf policy-id { leaf policy-id {
type uint8; 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";
}
}
}
container sol-max-rt-option {
description "sol max rt option";
leaf enable {
type boolean;
mandatory true; mandatory true;
description "indicate whether this description "policy id";
option will be included in the }
option set"; leaf label {
} type uint8;
leaf sol-max-rt-value {
type yang:timeticks;
mandatory true; mandatory true;
description "sol max rt value"; description "label";
} }
} leaf precedence {
container inf-max-rt-option { type uint8;
description "inf max rt option";
leaf enable {
type boolean;
mandatory true; mandatory true;
description "indicate whether this description "precedence";
option will be included in the }
option set"; leaf prefix-len {
} type uint8;
leaf inf-max-rt-value {
type yang:timeticks;
mandatory true; mandatory true;
description "inf max rt value"; description "prefix length";
} }
} leaf prefix {
container pcp-server-option { type inet:ipv6-prefix;
description "pcp server option";
leaf enable {
type boolean;
mandatory true; mandatory true;
description "indicate whether this description "prefix";
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 { container sol-max-rt-option {
description "s46 rule option"; description "OPTION_SOL_MAX_RT (82) sol max rt option";
reference "RFC7083: Modification to Default Values of
SOL_MAX_RT and INF_MAX_RT";
leaf enable { leaf enable {
type boolean; type boolean;
mandatory true; mandatory true;
description "indicate whether this description "indicate whether this
option will be included in the option will be included in the
option set"; option set";
} }
list s46-rule { leaf sol-max-rt-value {
key rule-id; type yang:timeticks;
description "s46 rule"; mandatory true;
leaf rule-id { description "sol max rt value";
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 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-option { container inf-max-rt-option {
description "s46 br option"; description "OPTION_INF_MAX_RT (83) inf max rt option";
reference "RFC7083: Modification to Default Values of
SOL_MAX_RT and INF_MAX_RT";
leaf enable { leaf enable {
type boolean; type boolean;
mandatory true; mandatory true;
description "indicate whether this description "indicate whether this
option will be included in the option will be included in the
option set"; option set";
} }
list br { leaf inf-max-rt-value {
key br-id; type yang:timeticks;
description "br info"; mandatory true;
leaf br-id { description "inf max rt value";
type uint8;
mandatory true;
description "br id";
}
leaf br-ipv6-addr {
type inet:ipv6-address;
mandatory true;
description "br ipv6 addr";
}
} }
} }
container operator-option-ipv6-address { container pcp-server-option {
description "operator ipv6 address option"; description "OPTION_V6_PCP_SERVER (86)
pcp server option";
reference "RFC7291: DHCP Options for the Port Control
Protocol (PCP)";
leaf enable { leaf enable {
type boolean; type boolean;
mandatory true; mandatory true;
description "indicate whether this description "indicate whether this
option will be included in the option will be included in the
option set"; option set";
} }
list operator-ipv6-addr { list pcp-server {
key operator-ipv6-addr-id; key pcp-serv-id;
description "operator ipv6 address info"; description "pcp server info";
leaf operator-ipv6-addr-id { leaf pcp-serv-id {
type uint8; type uint8;
mandatory true;
description "operator ipv6 address id";
}
leaf operator-ipv6-addr {
type inet:ipv6-address;
mandatory true;
description "operator ipv6 address id";
}
}
}
container operator-option-single-flag {
description "operator single flag";
leaf enable {
type boolean;
mandatory true; mandatory true;
description "indicate whether this description "pcp server id";
option will be included in the }
option set"; leaf pcp-serv-addr {
} type inet:ipv6-address;
list flag {
key flag-id;
description "operator single flag info";
leaf flag-id {
type uint8;
mandatory true;
description "operator single flag id";
}
leaf flag-value{
type boolean;
mandatory true;
description "operator single flag value";
}
}
}
container operator-option-ipv6-prefix {
description "operator ipv6 prefix option";
leaf enable {
type boolean;
mandatory true; mandatory true;
description "indicate whether this description "pcp server addr";
option will be included in the }
option set";
}
list operator-ipv6-prefix{
key operator-ipv6-prefix-id;
description "operator ipv6 prefix info";
leaf operator-ipv6-prefix-id {
type uint8;
mandatory true;
description "operator ipv6 prefix id";
}
leaf operator-ipv6-prefix6-len{
type uint8;
mandatory true;
description "operator ipv6 prefix length";
}
leaf operator-ipv6-prefix {
type inet:ipv6-prefix;
mandatory true;
description "operator ipv6 prefix";
}
}
}
container operator-option-int32 {
description "operator integer 32 option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be included in the
option set";
} }
list int32val{ }
key int32val-id; container s46-rule-option {
description "operator integer 32 info"; description "s46 rule option";
leaf int32val-id { reference "RFC7598: DHCPv6 Options for Configuration of
type uint8; Softwire Address and Port-Mapped Clients";
mandatory true;
description "operator integer 32 id";
}
leaf int32val{
type uint32;
mandatory true;
description "operator integer 32 value";
}
}
}
container operator-option-int16 {
description "operator integer 16 option";
leaf enable { leaf enable {
type boolean; type boolean;
mandatory true; mandatory true;
description "indicate whether this description "indicate whether this
option will be included in the option will be included in the
option set"; option set";
} }
list int16val{ list s46-rule {
key int16val-id; key rule-id;
description "operator integer 16 info"; description "s46 rule";
leaf int16val-id { leaf rule-id {
type uint8; type uint8;
mandatory true;
description "operator integer 16 id";
}
leaf int16val{
type uint16;
mandatory true;
description "operator integer 16 value";
}
}
}
container operator-option-int8 {
description "operator integer 8 option";
leaf enable {
type boolean;
mandatory true; mandatory true;
description "indicate whether this description "rule id";
option will be included in the }
option set"; leaf rule-type {
} type enumeration {
list int8val{ enum "BMR" {
key int8val-id; description "BMR";
description "operator integer 8 info"; }
leaf int8val-id { enum "FMR" {
type uint8; description "FMR";
mandatory true; }
description "operator integer 8 id";
} }
leaf int8val{
type uint8;
mandatory true;
description "operator integer 8 value";
}
}
}
container operator-option-uri {
description "operator uri option";
leaf enable {
type boolean;
mandatory true; mandatory true;
description "indicate whether this description "rule type";
option will be included in the }
option set"; leaf prefix4-len {
} type uint8;
list uri{
key uri-id;
description "operator uri info";
leaf uri-id {
type uint8;
mandatory true;
description "operator uri id";
}
leaf uri{
type string;
mandatory true;
description "operator uri value";
}
}
}
container operator-option-textstring {
description "operator itext string option";
leaf enable {
type boolean;
mandatory true; mandatory true;
description "indicate whether this description "ipv4 prefix length";
option will be included in the }
option set"; leaf ipv4-prefix {
} type inet:ipv4-prefix;
list textstring{
key textstring-id;
description "operator text string info";
leaf textstring-id {
type uint8;
mandatory true;
description "operator text string id";
}
leaf textstring{
type string;
mandatory true;
description "operator text string value";
}
}
}
container operator-option-var-data {
description "operator variable length data option";
leaf enable {
type boolean;
mandatory true; mandatory true;
description "indicate whether this description "ipv4 prefix";
option will be included in the }
option set"; leaf prefix6-len {
} type uint8;
list int32val{
key var-data-id;
description "operator ivariable length data info";
leaf var-data-id {
type uint8;
mandatory true;
description "operator variable length id";
}
leaf var-data{
type binary;
mandatory true;
description "operator variable length value";
}
}
}
container operator-option-dns-wire {
description "operator dns wire format domain name list option";
leaf enable {
type boolean;
mandatory true; mandatory true;
description "indicate whether this description "ipv6 prefix length";
option will be included in the }
option set"; leaf ipv6-prefix {
} type inet:ipv6-prefix;
list operator-option-dns-wire{
key operator-option-dns-wire-id;
description "operator dns wire format info";
leaf operator-option-dns-wire-id {
type uint8;
mandatory true;
description "operator dns wire format id";
}
leaf operator-option-dns-wire{
type binary;
mandatory true;
description "operator dns wire format value";
}
}
}
container s46-dmr-option {
description "s46 dmr option";
leaf enable {
type boolean;
mandatory true; mandatory true;
description "indicate whether this description "ipv6 prefix";
option will be included in the }
option set"; uses portset-para;
}
list dmr {
key dmr-id;
description "dmr info";
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 ipv6 prefix";
}
} }
} }
container s46-v4-v6-binding-option { container s46-br-option {
description "s46 binding option"; description "s46 br option";
reference "RFC7598: DHCPv6 Options for Configuration of
Softwire Address and Port-Mapped Clients";
leaf enable { leaf enable {
type boolean; type boolean;
mandatory true; mandatory true;
description "indicate whether this description "indicate whether this
option will be included in the option will be included in the
option set"; option set";
} }
list ce { list br {
key ce-id; key br-id;
description "ce info"; description "br info";
leaf ce-id { leaf br-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 option-set-id {
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; type uint8;
mandatory true; mandatory true;
description "equivalent to subnet id"; description "br id";
} }
leaf network-description { leaf br-ipv6-addr {
type string; type inet:ipv6-address;
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 option-set-id {
type uint8;
mandatory true; mandatory true;
description "the selected option-set"; description "br ipv6 addr";
} }
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 option-set-id {
type uint8;
mandatory true;
description "the selected 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 option-set-id {
type uint8;
mandatory true;
description "the selected 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 option-set-id {
type uint8;
mandatory true;
description "the selected option-set";
}
leaf nis-domain-name {
type string;
description "nis domain name";
}
leaf nis-plus-domain-name {
type string;
description "nisp domain name";
}
}
} }
} }
container operator-option-ipv6-address {
description "operator ipv6 address option";
reference "RFC7227: Guidelines for Creating New DHCPv6 Options";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be included in the
option set";
} }
container relay-opaque-paras { list operator-ipv6-addr {
description "This container contains some key operator-ipv6-addr-id;
opaque values in Relay Agent options that description "operator ipv6 address info";
need to be configured on the server side leaf operator-ipv6-addr-id {
only for value match. Such Relay Agent type uint8;
options include Interface-Id option, mandatory true;
Remote-Id option and Subscriber-Id option."; description "operator ipv6 address id";
list relays { }
key relay-name; leaf operator-ipv6-addr {
description "relay agents"; type inet:ipv6-address;
leaf relay-name { mandatory true;
type string; description "operator ipv6 address id";
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"; container operator-option-single-flag {
list rsoo-enabled-option{ description "operator single flag";
key option-code; reference "RFC7227: Guidelines for Creating New DHCPv6
description "rsoo enabled option"; Options";
leaf option-code { leaf enable {
type uint16; type boolean;
mandatory true; mandatory true;
description "option code"; description "indicate whether this
} option will be included in the
leaf description { option set";
type string;
mandatory true;
description "description of the option";
}
}
} }
container packet-stats { list flag {
config "false"; key flag-id;
description "A container presents description "operator single flag info";
the packet statistics related to leaf flag-id {
the DHCPv6 server."; type uint8;
leaf solicit-count { mandatory true;
type uint32; description "operator single flag id";
mandatory true; }
description "solicit counter"; leaf flag-value{
} type boolean;
leaf request-count { mandatory true;
type uint32; description "operator single flag value";
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 count";
}
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 "reconfigure counter";
}
leaf relay-forward-count {
type uint32;
mandatory true;
description "relay forward counter";
}
leaf relay-reply-count {
type uint32;
mandatory true;
description "relay reply counter";
}
} }
} }
container operator-option-ipv6-prefix {
description "operator ipv6 prefix option";
reference "RFC7227: Guidelines for Creating New DHCPv6
Options";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be included in the
option set";
}
list operator-ipv6-prefix{
key operator-ipv6-prefix-id;
description "operator ipv6 prefix info";
leaf operator-ipv6-prefix-id {
type uint8;
mandatory true;
description "operator ipv6 prefix id";
}
leaf operator-ipv6-prefix6-len{
type uint8;
mandatory true;
description "operator ipv6 prefix length";
}
leaf operator-ipv6-prefix {
type inet:ipv6-prefix;
mandatory true;
description "operator ipv6 prefix";
}
}
}
container operator-option-int32 {
description "operator integer 32 option";
reference "RFC7227: Guidelines for Creating New DHCPv6
Options";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be included in the
option set";
}
list int32val{
key int32val-id;
description "operator integer 32 info";
leaf int32val-id {
type uint8;
mandatory true;
description "operator integer 32 id";
}
leaf int32val{
type uint32;
mandatory true;
description "operator integer 32 value";
}
}
}
container operator-option-int16 {
description "operator integer 16 option";
reference "RFC7227: Guidelines for Creating New DHCPv6
Options";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be included in the
option set";
}
list int16val{
key int16val-id;
description "operator integer 16 info";
leaf int16val-id {
type uint8;
mandatory true;
description "operator integer 16 id";
}
leaf int16val{
type uint16;
mandatory true;
description "operator integer 16 value";
}
}
}
container operator-option-int8 {
description "operator integer 8 option";
reference "RFC7227: Guidelines for Creating New DHCPv6
Options";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be included in the
option set";
}
list int8val{
key int8val-id;
description "operator integer 8 info";
leaf int8val-id {
type uint8;
mandatory true;
description "operator integer 8 id";
}
leaf int8val{
type uint8;
mandatory true;
description "operator integer 8 value";
}
container relay { }
presence "Enables relay"; }
description "dhcpv6 relay portion"; container operator-option-uri {
container relay-attributes { description "operator uri option";
description "A container describes reference "RFC7227: Guidelines for Creating New DHCPv6
some basic attributes of the relay Options";
agent including some relay agent leaf enable {
specific options data that need to type boolean;
be configured previously. Such options mandatory true;
include Remote-Id option and description "indicate whether this
Subscriber-Id option."; option will be included in the
leaf name { option set";
}
list uri{
key uri-id;
description "operator uri info";
leaf uri-id {
type uint8;
mandatory true;
description "operator uri id";
}
leaf uri{
type string; type string;
mandatory true; mandatory true;
description "relay agent name"; description "operator uri value";
}
} }
}
container operator-option-textstring {
description "operator itext string option";
reference "RFC7227: Guidelines for Creating New DHCPv6 Options";
leaf enable { leaf enable {
type boolean; type boolean;
mandatory true; mandatory true;
description "whether the relay is enabled"; description "indicate whether this
option will be included in the
option set";
} }
leaf description { list textstring{
key textstring-id;
description "operator text string info";
leaf textstring-id {
type uint8;
mandatory true;
description "operator text string id";
}
leaf textstring{
type string; type string;
description "description of the relay agent"; mandatory true;
description "operator text string value";
}
} }
leaf-list dest-addrs { }
type inet:ipv6-address; container operator-option-var-data {
description "Each DHCPv6 relay agent may description "operator variable length data option";
be configured with a list of destination reference "RFC7227: Guidelines for Creating New DHCPv6 Options";
addresses. This node defines such a list leaf enable {
of IPv6 addresses that may include type boolean;
unicast addresses, multicast addresses mandatory true;
or other addresses."; description "indicate whether this
option will be included in the
option set";
} }
list subscribers { list int32val{
key subscriber; key var-data-id;
description "subscribers"; description "operator ivariable length data info";
leaf subscriber { leaf var-data-id {
type uint8; type uint8;
mandatory true; mandatory true;
description "subscriber"; description "operator variable length id";
} }
leaf subscriber-id { leaf var-data{
type string; type binary;
mandatory true; mandatory true;
description "subscriber id"; description "operator variable length value";
} }
} }
list remote-host { }
key ent-num; container operator-option-dns-wire {
description "remote host"; description "operator dns wire format domain name list option";
leaf ent-num { reference "RFC7227: Guidelines for Creating New DHCPv6
type uint32; Options";
mandatory true; leaf enable {
description "enterprise number"; type boolean;
} mandatory true;
leaf remote-id { description "indicate whether this
type string; option will be included in the
mandatory true; option set";
description "remote id";
}
} }
uses vendor-infor; list operator-option-dns-wire{
key operator-option-dns-wire-id;
description "operator dns wire format info";
leaf operator-option-dns-wire-id {
type uint8;
mandatory true;
description "operator dns wire format id";
}
leaf operator-option-dns-wire{
type binary;
mandatory true;
description "operator dns wire format value";
}
}
}
container s46-dmr-option {
description "s46 dmr option";
reference "RFC7598: DHCPv6 Options for Configuration of
Softwire Address and Port-Mapped Clients";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be included in the
option set";
}
list dmr {
key dmr-id;
description "dmr info";
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 ipv6 prefix";
}
}
}
container s46-v4-v6-binding-option {
description "s46 binding option";
reference "RFC7598: DHCPv6 Options for Configuration of
Softwire Address and Port-Mapped Clients";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be included in the
option set";
}
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 relay-supplied-options-option { //NB - The list of options needs to be updated with newer options.
description "relay supplied options option"; }
list rsoo-set { container network-ranges {
key rsoo-set-id; description "This model supports a hierarchy
description "rsoo set"; to achieve dynamic configuration. That is to
leaf rsoo-set-id { say we could configure the server at different
type uint8; levels through this model. The top level is a
mandatory true; global level which is defined as the container
description "rsoo set id"; 'network-ranges'. The following levels are
} defined as sub-containers under it. The
container erp-local-domain-name-option { 'network-ranges' contains the parameters
description "erp local domain name option"; (e.g. option-sets) that would be allocated to
leaf enable { all the clients served by this server.";
type boolean; leaf option-set-id {
mandatory true; type uint8;
description "indicate whether description "a specific option set";
this option is included in the }
rsoo set"; list network-range {
} key network-range-id;
list erp-for-client { description "Under the 'network-ranges'
key cli-id; container, a 'network-range' list is
description "erp for client"; defined to configure the server at a
leaf cli-id { network level which is also considered
type uint32; as the second level. Different network
mandatory true; are identified by the key 'network-range-id'.
description "client id"; This is because a server may have different
} configuration parameters (e.g. option sets)
leaf duid { for different networks.";
type duidtype; leaf network-range-id {
mandatory true; type uint8;
description "DHCP Unique mandatory true;
Identifer"; description "equivalent to subnet id";
} }
leaf erp-name { leaf network-description {
type string; type string;
mandatory true; mandatory true;
description "erp name"; 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 option-set-id {
type uint8;
mandatory true;
description "the selected 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";
}
container duid {
description "Sets the DUID";
uses duid;
}
leaf-list reserv-addr {
type inet:ipv6-address;
description "reserved addr";
}
} }
list relay-if { leaf-list other-reserv-addr {
key if-name; type inet:ipv6-address;
description "A relay agent may have several description "other reserved
interfaces, we should provide a way to configure addr";
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 { }
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";
}
container duid {
description "Sets the DUID";
uses duid;
}
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";
}
}
}
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"; config "false";
description "relay statistics"; mandatory true;
leaf cli-packet-rvd-count { description "how many ipv6
type uint32; addressses are in the pool";
mandatory true; }
description "client packet received counter"; leaf used-ipv6-count {
} type uint64;
leaf relay-for-rvd-count { config "false";
type uint32; mandatory true;
mandatory true; description "how many are
description "relay forward received counter"; allocated";
} }
leaf relay-rep-rvd-count { leaf utilization-ratio {
type uint32; type threshold;
mandatory true; mandatory true;
description "relay reply recevied counter"; description "the utilization ratio";
}
leaf packet-to-cli-count { }
type uint32; leaf inherit-option-set {
mandatory true; type boolean;
description "packet to client counter"; mandatory true;
} description "indicate whether to
leaf relay-for-sent-count { inherit the configuration from
type uint32; higher level";
mandatory true; }
description "relay forward sent counter"; leaf option-set-id {
} type uint8;
leaf relay-rep-sent-count { mandatory true;
type uint32; description "the selected option-set";
mandatory true; }
description "relay reply sent counter";
}
leaf discarded-packet-count {
type uint32;
mandatory true;
description "discarded packet counter";
}
} }
} list binding-info {
container client { key cli-id;
presence "Enables client"; config "false";
description "dhcpv6 client portion"; description "A list records a binding
list client-if { information for each DHCPv6 client
key if-name; that has already been allocated IPv6
description "A client may have several addresses.";
interfaces, it is more reasonable to leaf cli-id {
configure and manage parameters on type uint32;
the interface-level. The list defines mandatory true;
specific client interfaces and their description "client id";
data. Different interfaces are distinguished }
by the key which is a configurable string container duid {
value."; description "Sets the DUID";
leaf if-name { uses duid;
type string; }
mandatory true; list cli-ia {
description "interface name"; key iaid;
} description "client IA";
leaf cli-id { leaf ia-type {
type uint32; type string;
mandatory true; mandatory true;
description "client id"; description "IA type";
}
leaf duid {
type duidtype;
mandatory true;
description "DHCP Unique
Identifer";
}
leaf enable {
type boolean;
mandatory true;
description "whether the interface is enabled";
} }
leaf description { leaf iaid {
type string; type uint32;
description mandatory true;
"description of the client interface"; description "IAID";
} }
leaf pd-function { leaf-list cli-addr {
type boolean; type inet:ipv6-address;
mandatory true; description "client addr";
description "Whether the client
can act as a requesting router
to request prefixes using prefix
delegation ([RFC3633]).";
} }
leaf rapid-commit { leaf pool-id {
type boolean; type uint8;
mandatory true; mandatory true;
description "'1' indicates a client can description "pool id";
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 container prefix-pools {
and 'o'=1 indicate the client description "If a server supports prefix
will use DHCPv6 to obtain all delegation function, this container will
the configuration data. 'm'=1 be used to define the delegating router's
and 'o'=0 are a meaningless refix pools.";
combination. 'm'=0 and 'o'=1 list prefix-pool {
indicate the client will use key pool-id;
stateless DHCPv6 to obtain description "Similar to server's
configuration data apart from address pools, a delegating router
addresses/prefixes data. can also be configured with multiple
'm'=0 and 'o'=0 represent the prefix pools specified by a list
client will not use DHCPv6 called 'prefix-pool'.";
but use SLAAC to achieve leaf pool-id {
configuration."; type uint8;
leaf m-tab { mandatory true;
type boolean; description "pool id";
mandatory true; }
description "m tab"; leaf prefix {
} type inet:ipv6-prefix;
leaf o-tab { mandatory true;
type boolean; description "ipv6 prefix";
mandatory true; }
description "o tab"; 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 option-set-id {
type uint8;
mandatory true;
description "the selected option-set";
}
}
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";
}
container duid {
description "Sets the DUID";
uses duid;
}
list cli-iapd {
key iaid;
description "client IAPD";
leaf iaid {
type uint32;
mandatory true;
description "IAID";
} }
container oro-options { leaf-list cli-prefix {
description "oro options"; type inet:ipv6-prefix;
list oro-option { description
key option-code; "client ipv6 prefix";
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 { leaf-list cli-prefix-len {
description "client configured options"; type uint8;
list new-or-standard-cli-option { description
key option-code; "client prefix length";
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 { leaf pool-id {
config "false"; type uint8;
description "IA is a construct through mandatory true;
which a server and a client can identify, description "pool id";
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 container hosts {
address and prefix information through description "hosts level";
DHCPv6. This container describes such list host {
data the client was configured. The key cli-id;
potential configuration data may description "specific host";
include DNS server addresses, SIP leaf cli-id {
server domain names, etc."; type uint32;
leaf-list uni-dhcpv6-serv-addr { mandatory true;
type inet:ipv6-address; description "client id";
description "unicast server address"; }
} container duid {
container dns-paras { description "Sets the DUID";
description "dns parameters"; uses duid;
leaf domain-search-list { }
type string; leaf inherit-option-set {
mandatory true; type boolean;
description "domain search list"; mandatory true;
} description "whether to inherit
list dns-servers { configuration
key dns-serv-id; from higher level";
description "dns servers"; }
leaf dns-serv-id { leaf option-set-id {
type uint8; type uint8;
mandatory true; mandatory true;
description "dns server id"; description "the selected option-set";
} }
leaf dns-serv-addr { leaf nis-domain-name {
type inet:ipv6-address; type string;
mandatory true; description "nis domain name";
description "dns server address"; }
} leaf nis-plus-domain-name {
} type string;
} description "nisp domain name";
container sip-paras { }
description "sip parameters"; }
list sip-servers { }
key sip-serv-id; }
description "sip server info"; }
leaf sip-serv-id { container relay-opaque-paras {
type uint8; description "This container contains some
mandatory true; opaque values in Relay Agent options that
description "sip server id"; need to be configured on the server side
} only for value match. Such Relay Agent
leaf sip-serv-addr { options include Interface-Id option,
type inet:ipv6-address; Remote-Id option and Subscriber-Id option.";
mandatory true; list relays {
description "sip server address"; key relay-name;
} description "relay agents";
leaf sip-serv-domain-name { leaf relay-name {
type string; type string;
mandatory true; mandatory true;
description description "relay agent name";
"sip server domain name"; }
} list interface-info {
} key if-name;
} description "interface info";
container nis-paras { leaf if-name {
description "nis parameters"; type string;
leaf nis-domain-name { mandatory true;
type string; description "interface name";
mandatory true; }
description "nis domain name"; leaf interface-id {
} type string;
list nis-server { mandatory true;
key nis-serv-id; description "interface id";
description "nis server"; }
leaf nis-serv-id { }
type uint8; list subscribers {
mandatory true; key subscriber;
description "nis server id"; description "subscribers";
} leaf subscriber {
leaf nis-serv-addr { type uint8;
type inet:ipv6-address; mandatory true;
mandatory true; description "subscriber";
description "nis server address"; }
} leaf subscriber-id {
} type string;
} mandatory true;
container nis-plus-paras { description "subscriber id";
description "nisp parameters"; }
leaf nis-plus-domain-name { }
type string; list remote-host {
mandatory true; key ent-num;
description "nisp domian name"; 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 {
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 count";
}
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 "reconfigure counter";
} }
list nis-plus-server { leaf relay-forward-count {
key nis-plus-serv-id; type uint32;
description "nisp server"; mandatory true;
leaf nis-plus-serv-id { description "relay forward counter";
type uint8; }
mandatory true; leaf relay-reply-count {
description "nisp server id"; type uint32;
} mandatory true;
leaf nis-plus-serv-addr { description "relay reply counter";
type inet:ipv6-address; }
mandatory true; }
description "nisp server address"; }
}
}
}
leaf info-refresh-time {
type yang:timeticks;
description "info refresh time";
}
container time-zone-paras {
description "time zone parameters";
leaf tz-posix {
type string;
mandatory true;
description "tz posix";
}
leaf tz-database {
type string;
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";
} container relay {
leaf precedence { presence "Enables relay";
type uint8; description "dhcpv6 relay portion";
mandatory true; container relay-attributes {
description "precedence"; description "A container describes
} some basic attributes of the relay
leaf prefix-len { agent including some relay agent
type uint8; specific options data that need to
mandatory true; be configured previously. Such options
description "prefix length"; include Remote-Id option and
} Subscriber-Id option.";
leaf prefix { leaf name {
type inet:ipv6-prefix; type string;
mandatory true; description "relay agent name";
description "prefix"; }
} leaf description {
} type string;
} description "description of the relay agent";
leaf sol-max-rt { }
type yang:timeticks; leaf-list dest-addrs {
mandatory true; type inet:ipv6-address;
description "sol max rt"; description "Each DHCPv6 relay agent may
} be configured with a list of destination
leaf inf-max-rt { addresses. This node defines such a list
type yang:timeticks; of IPv6 addresses that may include
mandatory true; unicast addresses, multicast addresses
description "inf max rt"; or other addresses.";
} }
container pcp-server-paras { list subscribers {
description "pcp server parameters"; key subscriber;
list pcp-server { description "subscribers";
key pcp-serv-id; leaf subscriber {
description "pcp server"; type uint8;
leaf pcp-serv-id { mandatory true;
type uint8; description "subscriber";
mandatory true; }
description "pcp server id"; leaf subscriber-id {
} type string;
leaf pcp-serv-addr { mandatory true;
type inet:ipv6-address; description "subscriber id";
mandatory true; }
description "pcp server address"; }
} list remote-host {
} key ent-num;
} description "remote host";
container s46-rule-paras { leaf ent-num {
description "s46 rule parameters"; type uint32;
list s46-rule { mandatory true;
key rule-id; description "enterprise number";
description "s46 rule"; }
leaf rule-id { leaf remote-id {
type uint8; type string;
mandatory true; mandatory true;
description "rule id"; description "remote id";
} }
leaf rule-type { }
type enumeration { uses vendor-infor;
enum "BMR"{ }
description "BMR"; container relay-supplied-options-option {
} description "relay supplied options option";
enum "FMR"{ list rsoo-set {
description "FMR"; key rsoo-set-id;
} description "rsoo set";
} leaf rsoo-set-id {
mandatory true; type uint8;
description "rule type"; mandatory true;
} description "rsoo set id";
leaf ea-len { }
type uint8; container erp-local-domain-name-option {
mandatory true; description "erp local domain name option";
description "EA bits length"; leaf enable {
} type boolean;
leaf prefix4-len { mandatory true;
type uint8; description "indicate whether
mandatory true; this option is included in the
description "ipv4 prefix length"; rsoo set";
} }
leaf ipv4-prefix { list erp-for-client {
type inet:ipv4-prefix; key cli-id;
mandatory true; description "erp for client";
description "ipv4 prefix"; leaf cli-id {
} type uint32;
leaf prefix6-len { mandatory true;
type uint8; description "client id";
mandatory true; }
description "ipv6 prefix length"; container duid {
} description "Sets the DUID";
leaf ipv6-prefix { uses duid;
type inet:ipv6-prefix; }
mandatory true; leaf erp-name {
description "ipv6 prefix"; type string;
} mandatory true;
uses portset-para; description "erp name";
} }
} }
container s46-br-paras { }
description "s46 br parameters"; }
list br { }
key br-id; list relay-if {
description "br"; key if-name;
leaf br-id { description "A relay agent may have several
type uint8; interfaces, we should provide a way to configure
mandatory true; and manage parameters on the interface-level. A
description "br id"; list that describes specific interfaces and
} their corresponding parameters is employed to
leaf br-ipv6-addr { fulfil the configfuration. Here we use a string
type inet:ipv6-address; called 'if-name; as the key of list.";
mandatory true; leaf if-name {
description "br ipv6 address"; type string;
} mandatory true;
} description "interface name";
} }
container s46-dmr-paras { leaf enable {
description "s46 dmr parameters"; type boolean;
list dmr { mandatory true;
key dmr-id; description
description "dmr"; "whether this interface is enabled";
leaf dmr-id { }
type uint8; leaf ipv6-address {
mandatory true; type inet:ipv6-address;
description "dmr id"; description
} "ipv6 address for this interface";
leaf dmr-prefix-len { }
type uint8; leaf interface-id {
mandatory true; type string;
description "dmr prefix length"; description "interface id";
} }
leaf dmr-ipv6-prefix { leaf-list rsoo-set {
type inet:ipv6-prefix; type uint8;
mandatory true; description "configured rsoo set";
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 { list pd-route {
type uint32; key pd-route-id;
mandatory true; description "pd route";
description "rebind counter"; leaf pd-route-id {
} type uint8;
leaf decline-count { mandatory true;
type uint32; description "pd route id";
mandatory true; }
description "decline counter"; leaf requesting-router-id {
} type uint32;
leaf release-count { mandatory true;
type uint32; description "requesting router id";
mandatory true; }
description "release counter"; leaf delegating-router-id {
} type uint32;
leaf info-req-count { mandatory true;
type uint32; description "delegating router id";
mandatory true; }
description "information request counter"; leaf next-router {
} type inet:ipv6-address;
leaf advertise-count { mandatory true;
type uint32; description "next router";
mandatory true; }
description "advertise counter"; leaf last-router {
} type inet:ipv6-address;
leaf confirm-count { mandatory true;
type uint32; description "previous router";
mandatory true; }
description "confirm counter"; }
} list next-entity {
leaf reply-count { key dest-addr;
type uint32; description "This node defines
mandatory true; a list that is used to describe
description "reply counter"; the next hop entity of this
} relay distinguished by their
leaf reconfigure-count { addresses.";
type uint32; leaf dest-addr {
mandatory true; type inet:ipv6-address;
description "recofigure counter"; 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 {
presence "Enables client";
description "dhcpv6 client portion";
container duid {
description "Sets the DUID";
uses duid;
}
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 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;