前言
本文件按照 GB/T 1.1—2020《标准化工作导则 第1部分:标准化文件的结构和起草规则》的规定起草。
请注意本文件的某些内容可能涉及专利。本文件的发布机构不承担识别专利的责任。
本文件由中国通信标准化协会提出并归口。
本文件起草单位:清华大学、中国电信集团有限公司、中国信息通信研究院、华为技术有限公司。
本文件主要起草人:崔勇、孙霖晖、解冲锋、田辉、赵锋、杜宗鹏。
1 范围
本文件给出了用于 DHCPv6 的 YANG 数据模型,还规定了用于 DHCPv6 服务器、中继和客户端的配置和信息查询的模型节点技术要求。
本文件适用于使用 DHCPv6 协议的 IPv6 参数动态配置场景。
2 规范性引用文件
下列文件对于本文件的应用是必不可少的。凡是注日期的引用文件,仅所注日期的版本适用于本文件。凡是不注日期的引用文件,其最新版本(包括所有的修改单)适用于本文件。
IETF RFC 3315 IPv6 动态主机配置协议(Dynamic Host Configuration Protocol for IPv6 (DHCPv6))
IETF RFC 3319 适用于会话发起协议服务器的 DHCPv6 选项(Dynamic Host Configuration Protocol (DHCPv6) Options for Session Initiation Protocol (SIP) Servers)
IETF RFC 3646 适用于 DHCPv6 的 DNS 配置选项(DNS Configuration options for Dynamic Host Configuration Protocol for IPv6 (DHCPv6))
IETF RFC 3898 适用于 DHCPv6 的网络信息服务配置选项(Network Information Service (NIS) Configuration Options for Dynamic Host Configuration Protocol for IPv6 (DHCPv6))
IETF RFC 4075 适用于 DHCPv6 的简单网络时间协议配置选项(Simple Network Time Protocol (SNTP) Configuration Option for DHCPv6)
IETF RFC 4242 适用于 DHCPv6 的信息更新时间选项(Information Refresh Time Option for Dynamic Host Configuration Protocol for IPv6 (DHCPv6))
IETF RFC 4704 适用于 DHCPv6 的客户端完全合格域名/全称域名选项(The Dynamic Host Configuration Protocol for IPv6 (DHCPv6) Client Fully Qualified Domain Name (FQDN) Option)
IETF RFC 4833 适用于 DHCP 的时区选项(Timezone Options for DHCP)
IETF RFC 5908 适用于 DHCPv6 的网络时间协议服务器选项(Network Time Protocol (NTP) Server Option for DHCPv6)
IETF RFC 5970 适用于 DHCPv6 的网络引导选项(DHCPv6 Options for Network Boot)
IETF RFC 6334 适用于 DHCPv6 的轻型双栈选项(Dynamic Host Configuration Protocol for IPv6 (DHCPv6) Option for Dual-Stack Lite)
IETF RFC 6784 适用于 DHCPv6 的 Kerberos 选项(Kerberos Options for DHCPv6)
IETF RFC 7078 采于 DHCPv6 的分布地址选择机制(Distributing Address Selection Policy Using DHCPv6)
IETF RFC 7083 SOL_MAX_RT 和 INF_MAX_RT 的默认值修改(Modification to Default Values of SOL_MAX_RT and INF_MAX_RT)
IETF RFC 7291 适用于 DHCPv6 的端口控制协议选项(DHCP Options for the Port Control Protocol (PCP))
3 术语、定义和缩略语
3.1 术语和定义
下列术语和定义适用于本文件。
3.1.1
YANG
一种用来为 NETCONF、NETCONF RPC,以及 NETCONF 通告进行配置、状态数据建模的数据建模语言。
3.2 缩略语
下列缩略语适用于本文件。
4 概述
本文件定义了一种用于配置、管理 DHCPv6 服务器,中继和客户端的 YANG 数据模型。通过本模型管理人员可以通过 NETCONF 配置管理相关设备该模型包括三个子模块:DHCPv6 服务器、DHCPv6 中继、DHCPv6 客户端。
特别是对于 DHCPv6 客户端的配置,由于 DHCPv6 本身是一种设备配置协议,本标准并非意将原来基于 DHCPv6 协议实现的客户端选项及参数配置用基于 NETCONF/YANG 的配置来替代。DHCPv6 客户端模块是为了实现配置客户端的配置功能,同时便于获取已经通过 DHCP 协议配置的各种客户端状态信息,从而为管理员的对 DHCPv6 客户端的管理及简单的故障排除提供了便利。
5 DHCPv6 YANG 数据模型
5.1 DHCPv6 服务器数据模型
DHCPv6 服务器 YANG 数据模型结构如下。
+--rw dhcpv6
+--rw server
+--rw name string
+--rw duid duidtype
+--rw enable boolean
+--rw interfaces-config* string
+--rw ipv6-address? inet:ipv6-address
+--rw description? string
+--rw pd-function boolean
+--rw stateless-service boolean
+--rw rapid-commit boolean
+--rw vendor-info
+--rw ent-num uint32
+--rw data* string
+--rw option-sets
+--rw option-set* [option-set-id]
+--rw option-set-id uint8
+--rw new-or-standard-option* [option-code]
+--rw option-code uint16
+--rw option-name string
+--rw option-description string
+--rw option-reference? string
+--rw option-value string
+--rw user-class-value? string
+--rw enterprise-number? uint32
+--rw store-client-link-layer? boolean
+--rw preference-option
+--rw enable boolean
+--rw preference-value uint8
+--rw sip-server-option
+--rw enable boolean
+--rw sip-server* [sip-serv-id]
+--rw sip-serv-id uint8
+--rw sip-serv-domain-name string
+--rw sip-serv-addr inet:ipv6-address
+--rw dns-config-option
+--rw enable boolean
+--rw dns-server* [dns-serv-id]
| | +--rw dns-serv-id uint8
| | +--rw dns-serv-addr inet:ipv6-address
| +--rw domain-search-list string
| +--rw nis-config-option
| +--rw enable boolean
| +--rw nis-server* [nis-serv-id]
| +--rw nis-serv-id uint8
| +--rw nis-serv-addr inet:ipv6-address
| +--rw nis-plus-config-option
| +--rw enable boolean
| +--rw nis-plus-server* [nis-plus-serv-id]
| +--rw nis-plus-serv-id uint8
| +--rw nis-plus-serv-addr inet:ipv6-address
| +--rw info-refresh-time-option
| +--rw enable boolean
| +--rw info-refresh-time yang:timeticks
| +--rw cli-fqdn-option
| +--rw enable boolean
| +--rw server-initiate-update boolean
| +--rw client-initiate-update boolean
| +--rw modify-name-from-cli boolean
| +--rw timezone-option
| +--rw enable boolean
| +--rw tz-posix string
| +--rw tz-database string
| +--rw ntp-server-option
| +--rw enable boolean
| +--rw ntp-server* [ntp-serv-id]
| +--rw ntp-serv-id uint8
| +--rw ntp-serv-addr inet:ipv6-address
| +--rw ntp-serv-mul-addr inet:ipv6-address
| +--rw ntp-serv-fqdn string
| +--rw sntp-server-option
| +--rw enable boolean
| +--rw sntp-server* [sntp-serv-id]
| +--rw sntp-serv-id uint8
| +--rw sntp-serv-addr inet:ipv6-address
+--rw network-boot-option
+--rw enable boolean
+--rw boot-file* [boot-file-id]
+--rw boot-file-id uint8
+--rw suitable-arch-type* uint16
+--rw suitable-net-if* uint32
+--rw boot-file-url string
+--rw boot-file-paras* [para-id]
+--rw para-id uint8
+--rw parameter string
+--rw dslite-option
+--rw enable boolean
+--rw dslite-aftr-name string
+--rw kerberos-option
+--rw enable boolean
+--rw default-realm-name string
+--rw kdc-info* [kdc-id]
+--rw kdc-id uint8
+--rw priority uint16
+--rw weight uint16
+--rw transport-type uint8
+--rw port-number uint16
+--rw kdc-ipv6-addr inet:ipv6-address
+--rw realm-name string
+--rw addr-selection-option
+--rw enable boolean
+--rw a-bit-set boolean
+--rw p-bit-set boolean
+--rw policy-table* [policy-id]
+--rw policy-id uint8
+--rw label uint8
+--rw precedence uint8
+--rw prefix-len uint8
+--rw prefix inet:ipv6-prefix
+--rw sol-max-rt-option
+--rw enable boolean
+--rw sol-max-rt-value yang:timeticks
+--rw inf-max-rt-option
+--rw enable boolean
+--rw inf-max-rt-value yang:timeticks
+--rw pcp-server-option
+--rw enable boolean
+--rw pcp-server* [pcp-serv-id]
+--rw pcp-serv-id uint8
+--rw pcp-serv-addr* inet:ipv6-address
+--rw s46-rule-option
+--rw enable boolean
+--rw s46-rule* [rule-id]
+--rw rule-id uint8
+--rw rule-type enumeration
+--rw ea-len uint8
+--rw prefix4-len uint8
+--rw ipv4-prefix inet:ipv4-prefix
+--rw prefix6-len uint8
+--rw ipv6-prefix inet:ipv6-prefix
+--rw port-parameter
+--rw offset uint8
+--rw psid-len uint8
+--rw psid uint16
+--rw s46-br-option
+--rw enable boolean
+--rw br* [br-id]
+--rw br-id uint8
+--rw br-ipv6-addr inet:ipv6-address
+--rw s46-dmr-option
+--rw enable boolean
+--rw dmr* [dmr-id]
+--rw dmr-id uint8
+--rw dmr-prefix6-len uint8
+--rw dmr-ipv6-prefix inet:ipv6-prefix
+--rw s46-v4-v6-binding-option
+--rw enable boolean
+--rw ce* [ce-id]
+--rw ce-id uint8
+--rw ipv4-addr inet:ipv4-address
+--rw bind-prefix6-len uint8
+--rw bind-ipv6-prefix inet:ipv6-prefix
+--rw port-parameter
+--rw offset uint8
+--rw psid-len uint8
+--rw psid uint16
+--rw option-set [option-set-id]
+--rw network-range* [network-range-id]
+--rw network-range-id uint8
+--rw network-description string
+--rw network-prefix inet:ipv6-prefix
+--rw inherit-option-set boolean
+--rw option-set [option-set-id]
+--rw address-pools
+--rw address-pool* [pool-id]
+--rw pool-id uint8
+--rw pool-prefix inet:ipv6-prefix
+--rw start-address inet:ipv6-address
+--rw end-address inet:ipv6-address
+--rw renew-time yang:timeticks
+--rw rebind-time yang:timeticks
+--rw preferred-lifetime yang:timeticks
+--rw valid-lifetime yang:timeticks
+--ro total-ipv6-count uint64
+--ro used-ipv6-count uint64
+--rw utilization-ratio threshold
+--rw inherit-option-set boolean
+--rw option-set [option-set-id]
+--rw reserved-addresses
+--rw static-binding* [cli-id]
+--rw cli-id uint32
+--rw duid duidtype
+--rw reserv-addr* inet:ipv6-address
+--rw other-reserv-addr* inet:ipv6-address
+--ro binding-info* [cli-id]
| | +--ro cli-id uint32
| | +--ro duid duidtype
| | +--ro cli-ia* [iaid]
| | +--ro ia-type string
| | +--ro iaid uint32
| | +--ro cli-addr* inet:ipv6-address
| | +--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 [option-set-id]
| | | +--rw reserved-prefixes
| | | +--rw static-binding* [cli-id]
| | | | +--rw cli-id uint32
| | | | +--rw duid duidtype
| | | | +--rw reserv-prefix-len uint8
| | | | +--rw reserv-prefix inet:ipv6-prefix
| | | +--rw exclude-prefix-len uint8
| | | +--rw exclude-prefix inet:ipv6-prefix
| | | +--rw other-reserv-prefix* [reserv-id]
| | | +--rw reserv-id uint8
| | | +--rw prefix-len uint8
| | | +--rw prefix inet:ipv6-prefix
| | +--ro binding-info* [cli-id]
| | +--ro cli-id uint32
| | +--ro duid duidtype
| | +--ro cli-iapd* [iaid]
| | +--ro iaid uint32
| | +--ro cli-prefix* uint32
+--ro cli-prefix-len* uint8
+--ro pool-id? uint8
+--rw hosts
+--rw host* [cli-id]
+--rw cli-id uint32
+--rw duid duidtype
+--rw inherit-option-set boolean
+--rw option-set [option-set-id]
+--rw nis-domain-name? string
+--rw nis-plus-domain-name? string
+--rw relay-opaque-paras
+--rw relays* [relay-name]
+--rw relay-name string
+--rw interface-info* [if-name]
+--rw if-name string
+--rw interface-id string
+--rw subscribers* [subscriber]
+--rw subscriber uint8
+--rw subscriber-id string
+--rw remote-host* [ent-num]
+--rw ent-num uint32
+--rw remote-id string
+--rw rsoo-enabled-options
+--rw rsoo-enabled-option* [option-code]
+--rw option-code uint16
+--rw description string
+--ro packet-stats
+--ro solicit-count uint32
+--ro request-count uint32
+--ro renew-count uint32
+--ro rebind-count uint32
+--ro decline-count uint32
+--ro release-count uint32
+--ro info-req-count uint32
+--ro advertise-count uint32
+--ro confirm-count uint32
+--ro reply-count uint32
+--ro reconfigure-count uint32
+--ro relay-forward-count uint32
+--ro relay-reply-count uint32
重要节点介绍。
——serv-attributes:该容器包括基本的 DHCPv6 服务器参数,如 DUID,服务器名称及一些能够提供的可选功能。
——duid:每个服务器和客户端都拥有唯一的 DUID(DHCP Unique Identifier)。这里的 DUID 是为了客户端识别特定的服务器。DUID 包括一个二进制域和一个不超过 128 字节的内容域。该 DUID 容器包括 1 个 “duid-type” 子节点来制定类型,及定义不同长度内容的 4 个子节点。
——pd-function:服务器是否可以为客户端配置地址前缀(RFC 3633)。
——stateless-service:布尔量单位,指定服务器是否支持客户端-服务器两次握手的交互过程[RFC 3315]。
——rapid-commit: 为 1 时表示服务器支持 Solicit-Reply 消息交换。0 时表示服务器将忽略 Solicit 消息中的 Rapid Commit 选项。
——interfaces-config:一个叶子列表,用来指明服务器应该监听的接口。默认值为监听所有接口。该节点也可设定服务器的单播地址来监听特定接口。
—option-sets: DHCPv6 应用了多种选项来传输附加的信息和参数。该容器定义所有服务器可能的配置选项,这些选项涉及下列 RFC:[RFC 3315][RFC 3319][RFC 3646][RFC 3898][RFC 4242][RFC 4704][RFC 4833][RFC 5908][RFC 5970][RFC 4075][RFC 6334][RFC 6784][RFC 7078][RFC 7083][RFC 7291][1].
——option-set: 服务器可能允许针对不同的情况配置多种选项集合。这些选项集合列表使得不同的选项集合能在同一个服务器中定义、配置。不同的集合通过 “option-set-id” 区分。上述所有可能的选项都在列表中进行了定义、并且对应了相应的容器。由于这些选项是可选的,列表中的容器都有一个对应的布尔量参数用来确定该选项是否使用。通过 “new-or-standard-option” 列表可以很方便将新定义的选项添加到模型中。同时可以用 “new-or-standard-option” 列表定义一个 IETF 标准选项。
——network-ranges: 本模型支持分层的动态配置。即可通过本模型对服务器进行不同级别的配置。最高级别是全局配置,在“network-ranges”容器中定义。次高级别作为它下边的子容器。“network-ranges”中的定义的选项参数将被下发给该服务器所负责的所有客户端。
——network-range: 在 “network-ranges” 容器下,“network-range” 容器用来定义服务器在网络级(第二级)的配置。不同的网络通过 “network-range-id” 区分。这是因为针对不同的网络服务器可能有不同的配置参数(如不同的选项集)。
——address-pools:在“network-range”列表下,该容器描述了DHCPv6服务器对于特定网络的地址池及相关配置参数,支持对服务器在地址池级别进行配置。
—address-pool: 对于特定网络 DHCPv6 服务器能够配置多个地址池及相关参数。该列表定义了这些地址池,并通过 “pool-id” 来区分。
——binding-info:用于记录已经被分配 IPv6 地址的客户端绑定信息的列表。
——prefix-pools:位于“network-range”列表下,如果服务器支持地址前缀分配功能,则定义该前缀路由器对于特定网络的前缀池。该容器支持对服务器在前缀级别进行配置。
——prefix-pool:列表,类似服务器的地址池,分配路由器能够配置多个前缀池。
——binding-info:用于记录已经分配 IPv6 前缀的路由器绑定信息列表。
——hosts:某些情况下服务器可能需要在主机级别进行配置,该容器包括名为“host”的列表用来传输不同主机的不同配置参数。
-relay-opaque-paras: 该容器包括一些 Relay Agent 选项中的不透明值,这些参数只配置在服务器侧用于参数匹配。Relay Agent 选项中包括 Interface-Id 选项,Remote-Id 选项和 Subscriber-id 选项。
——rsoo-enabled-options: [RFC 6422]要求服务器应该具备一个管理员可配置的 RSOO-enabled 选项列表。该容器包括一个名为“rsoo-enabled-option”的列表,用于服务器侧定义、配置 RSOO-enable 选项。
——packet-stats:用来记录 DHCPv6 服务器相关的数据包信息。
5.2 DHCPv6 中继数据模型
DHCPv6 中继 YANG 数据模型结构如下。
+--rw dhcpv6
+-- ...
|
+--rw relay
+--rw relay-attributes
| +--rw name string
| +--rw enable boolean
| +--rw description? string
| +--rw dest-addrs* inet:ipv6-address
| +--rw subscribers* [subscriber]
| | +--rw subscriber uint8
| | +--rw subscriber-id string
| +--rw remote-host* [entNum]
| | +--rw ent-num uint32
| | +--rw remote-id string
| +--rw vendor-info
| +--rw ent-num uint32
| +--rw data* string
+--rw relay-supplied-options-option
| +--rw rsoo-set* [rsoo-set-id]
mid + - - rw pd-route* [ pd-route-id ]
+ -- rw rsoo - set - id
uint8
+--rw erp-local-domain-name-option
+--rw enable
boolean
+--rw erp-for-client* [cli-id]
+--rw cli-id
uint32
+--rw duid
duidtype
+--rw erp-name
string
+--rw relay-if* [if-name]
+ - - rw if - name
string
+ - - rw enable
boolean
+ - rw ipv6 - address?
ietf:ipv6-address
+ - - rw interface - id?
string
+ - - rw rsoo - set [rsoo - set - id]
uint8
+--rw requesting-router-id uint32
+--rw delegating-router-id uint32
inet:ipv6-address
inet:ipv6-address
+--rw next-entity* [dest-addr]
+--rw dest-addr
inet:ipv6-address
+--rw available
boolean
+--rw multicast
boolean
+--rw server
boolean
+--ro packet-stats
+--ro cli-packet-rvd-count uint32
+--ro solicit-rvd-count uint32
+--ro request-rvd-count uint32
+--ro renew-rvd-count uint32
+--ro rebind-rvd-count uint32
+--ro decline-rvd-count uint32
+--ro release-rvd-count uint32
+--ro info-req-rvd-count uint32
+--ro relay-for-rvd-count uint32
+--ro relay-rep-rvd-count uint32
+--ro packet-to-cli-count uint32
+--ro adver-sent-count uint32
| +--ro confirm-sent-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 |
重要节点介绍。
——relay-attributes:用来记录中继代理基本属性的容器。例如,一些需要预配置的特定选项参数。这些选项包括 Remote-Id 选项和 Subscriber-Id 选项。
——dest-addr: 每个 DHCPv6 中继代理需要配置目标地址列表,包括单播地址,组播地址等。
—relay-supplied-options-option: DHCPv6 中继代理可以提供对客户端有价值的信息。由于中继不能直接为客户端提供选项,[RFC 6422]中定义了 RSOO-enable 选项用于提出选项让服务器发送给客户端。该容器包括 RSOO-enabled 选项。
——rsoo-set: 该列表在“relay-supplied-options-option”容器下,容许中继对不同的接口配置多个RSOO-enable选项。列表中只包括[RFC 6440]中定义的EAP Re-authentication Protocol(ERP)Local Domain Name DHCPv6 Option。这是目前唯一被IANA认可的RSOO-enable选项。
——relay-if: 一个中继代理可能有多个接口,我们需要配置和管理接口级别的参数。为了满足此需求,我们定义了一个列表用来描述特定的接口及相应的参数,主键名为“if-name”。
——pd-route: “relay-if”下的子容器,用于描述边缘路由器的地址前缀配置路径。
——next-entity: 这个节点定义了一个用于描述中继代理下一跳实体的列表,不同的实体用地址进行区分。
——packet-stats: 用于说明某个特定接口上数据包信息的容器。
——relay-stats:用于记录和展示中继代理整体的数据包统计信息。
5.3 DHCPv6 客户端数据模型
DHCPv6 客户端 YANG 数据模型结构如下。
+--rw dhcpv6
+--rw client-if* [if-name]
+--rw if-name string
+--rw cli-id uint32
+--rw duid duidtype
+--rw enable boolean
+--rw description? string
+--rw pd-function boolean
+--rw rapid-commit boolean
+--rw mo-tab
+--rw m-tab boolean
+--rw o-tab boolean
+--rw oro-options
+--rw oro-option* [option-code]
+--rw option-code uint16
+--rw description string
+--rw client-configured-options
+--rw new-or-standard-cli-option* [option-code]
+--rw option-code uint16
+--rw option-name string
+--rw option-description string
+--rw option-reference? string
+--rw option-value string
+--rw user-class-option
+--rw enable boolean
+--rw user-class* [user-class-id]
+--rw user-class-id uint8
+--rw user-class-info string
+--rw vendor-class-option
+--rw enable boolean
+--rw ent-num uint32
+--rw data* string
+--rw client-fqdn-option
+--rw enable boolean
+--rw fqdn string
+--rw server-initiate-update boolean
+--rw client-initiate-update boolean
+--rw client-architecture-type-option
+--rw enable boolean
+--rw architecture-types* [type-id]
+--rw type-id uint16
+--rw most-preferred boolean
+--rw client-network-interface-option
+--rw enable booelan
+--rw type uint8
+--rw major uint8
+--rw minor uint8
+--rw kerberos-principal-name-option
+--rw enable boolean
+--rw principal-name string
+--rw client-link-layer-addr-option
+--rw enable boolean
+--rw link-layer-type uint16
+--rw link-layer-addr string
+--ro identity-associations
+--ro identity-association* [iaid]
+--ro iaid uint32
+--ro ia-type string
+--ro ipv6-addr* inet:ipv6-address
+--ro ipv6-prefix* inet:ipv6-prefix
+--ro prefix-length* uint8
+--ro t1-time yang:timeticks
+--ro t2-time yang:timeticks
+--ro preferred-lifetime yang:timeticks
+--ro valid-lifetime yang:timeticks
+--ro if-other-paras
+--ro uni-dhcpv6-serv-addr inet:ipv6-address
+--ro dns-paras
+--ro domain-search-list string
+--ro dns-servers* [dns-serv-id]
+--ro dns-serv-id uint8
+--ro dns-serv-addr inet:ipv6-address
+--ro sip-paras
+--ro sip-servers* [sip-serv-id]
+--ro sip-serv-id uint8
+--ro sip-serv-addr inet:ipv6-address
+--ro sip-serv-domain-name string
+--ro nis-paras
+--ro nis-domain-name string
+--ro nis-server* [nis-serv-id]
+--ro nis-serv-id uint8
+--ro nis-serv-addr inet:ipv6-address
+--ro nis-plus-paras
+--ro nis-plus-domain-name string
+--ro nis-plus-server* [nis-plus-serv-id]
+--ro nis-plus-serv-id uint8
+--ro nis-plus-serv-addr inet:ipv6-address
+--ro info-refresh-time yang:timeticks
+--ro time-zone-paras
+--ro tz-posix string
+--ro tz-database string
+--ro cli-fqdn string
+--ro ntp-paras
+--ro ntp-server* [ntp-serv-id]
+--ro ntp-serv-id uint8
+--ro ntp-serv-addr inet:ipv6-address
+--ro ntp-serv-mul-addr inet:ipv6-address
+--ro ntp-serv-fqdn string
+--ro sntp-paras
+--ro sntp-server* [sntp-serv-id]
+--ro sntp-serv-id uint8
+--ro sntp-serv-addr inet:ipv6-address
+--ro network-boot-paras
+--ro boot-file* [boot-file-id]
+--ro boot-file-id uint8
+--ro suitable-arch-type* uint16
+--ro suitable-net-if* uint32
+--ro boot-file-url string
+--ro boot-file-paras* [para-id]
+--ro para-id uint8
+--ro parameter string
+--ro kerberos-paras
+--ro default-realm-name string
+--ro kdc-info* [kdc-id]
+--ro kdc-id uint8
+--ro priority uint16
+--ro weight uint16
+--ro transport-type uint8
+--ro port-number uint16
+--ro kdc-ipv6-addr inet:ipv6-address
+--ro realm-name string
+--ro addr-selection-paras
+--ro automatic-row-add boolean
+--ro prefer-temporary-addr boolean
+--ro policy-table* [policy-id]
+--ro policy-id uint8
+--ro label uint8
+--ro precedence uint8
+--ro prefix-len uint8
+--ro prefix inet:ipv6-prefix
+--ro sol-max-rt yang:timeticks
+--ro inf-max-rt yang:timeticks
+--ro pcp-paras
+--ro pcp-server* [pcp-serv-id]
+--ro pcp-serv-id uint8
+--ro pcp-serv-addr inet:ipv6-address
+--ro s46-rule-paras
+--ro s46-rule* [rule-id]
+--ro rule-id uint8
+--ro rule-type enumeration
+--ro ea-len uint8
+--ro prefix4-len uint8
+--ro ipv4-prefix inet:ipv4-prefix
+--ro prefix6-len uint8
+--ro ipv6-prefix inet:ipv6-prefix
+--ro port-parameter
+--ro offset uint8
+--ro psid-len uint8
+--ro psid uint16
+--ro s46-br-paras
+--ro br* [br-id]
+--ro br-id uint8
+--ro br-ipv6-addr inet:ipv6-address
+--ro s46-dmr-paras
+--ro dmr* [dmr-id]
+--ro dmr-id uint8
+--ro dmr-prefix6-len uint8
+--ro dmr-ipv6-prefix inet:ipv6-prefix
+--ro s46-v4-v6-binding-paras
+--ro ipv4-addr inet:ipv6-address
+--ro bind-prefix6-len uint8
+--ro port-parameter
+--ro offset uint8
+--ro psid-len uint8
+--ro psid uint16
+--ro erp-local-domain-name string
+--ro supported-options
+--ro supported-option* [option-code]
+--ro option-code uint16
+--ro 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
重要节点介绍。
——client-if: 一个客户端可以有多个接口,在接口级别进行参数的配置和管理更为合理。该列表定义了一个特定的客户端接口及其数据。不同的接口通过 “ifName” 进行区分,这是一个可配置的字符串。
——duid: 每个服务器和客户端都有唯一的 DUID(DHCP Unique Identifier);DUID 包含于 Client ID 选项中,用于标识特定的用户。客户端的 DUID 容器和服务器端的一样。
——pd-function:客户端是否可以请求地址前缀(RFC 3633)。
——rapid-commit: “1”说明客户端可以通过在 Solicit 消息中包含 Rapid Commit 选项发起 Solicit-Reply 消息交互。“0”代表用户无法发起两次握手信息交互。
——mo-tab: mo-tab(management tab label) 用于说明 DHCPv6 客户端的运行模式。“m”=1 和 “o”=0 是没有意义的组合。“m”=0 和 “o”=1 说明客户端使用无状态 DHCPv6 配置除地址/前缀以外的配置参数。“m”=0 和 “o”=0 说明用户不用 DHCPv6,而是用 SLAAC 进行配置。
——oro-options: 该容器用于配置客户端在 ORO 选项中请求的选项列表。
——client-configured options: 类似于服务器端,客户端也需要配置相应选项来实现需要的功能。这个容器包含所有可能需要在客户端配置的选项。相关 RFC 包括:[RFC 3315][RFC 4704][RFC 5970][RFC 6784][RFC 6939]。
——identity-association: 客户端和服务器可以通过 IA 进行 IPv6 地址的标识、分组和管理,不同的“identity-association”用一个 4 字节的 IAID[RFC 3315]区分。
——if-other-paras: 一个客户端可以通过 DHCPv6 选项得到除地址/前缀以外的配置信息。这个容器用于说明这些 DHCPv6 的附加配置信息,包括:DNS 服务器参数,SIP 服务器参数等。
-supported-options: 该容器定义了客户端支持的选项列表,用于管理员查询客户端的性能。
-packet-stats: 该容器记录了某个特定接口上所有数据包的状态信息。
5.4 DHCPv6 消息通知方式
DHCPv6 消息通知 YANG 数据模型结构如下。
-n notifications
+--n dhcpv6-server-event
| +-n pool-running-out
| | +-ro utilization-ratio uint16
| | +-ro duid
| | | +-ro duid-type uint16
| | | +-ro duid-high-1 uint32
| | | +-ro duid-high-2 uint32
| | | +-ro duid-low-1 uint32
| | | +-ro duid-low-2 uint32
| | +-ro serv-name? string
| | +-ro pool-name string
| +-n invalid-client-detected
| +-ro duid
| | +-ro duid-type uint16
| | +--ro duid-high-1 | uint32
| | +--ro duid-high-2 | uint32
| | +--ro duid-low-1 | uint32
| | +--ro duid-low-2 | uint32
| +--ro description? | string
+--n dhcpv6-relay-event
| +--n topo-changed
| +--ro relay-if-name | string
| +--ro first-hop | boolean
| +--ro last-entity-addr | inet:ipv6-address)
+--n dhcpv6-client-event
+--n ia-lease-event
| +--ro event-type | enumeration
| +--ro duid
| | +--ro duid-type | uint16
| | +--ro duid-high-1 | uint32
| | +--ro duid-high-2 | uint32
| | +--ro duid-low-1 | uint32
| | +--ro duid-low-2 | uint32
| +--ro iaid | uint32
| +--ro serv-name? | string
| +--ro description? | string
+--n invalid-ia-detected
| +--ro duid
| | +--ro duid-type | uint16
| | +--ro duid-high-1 | uint32
| | +--ro duid-high-2 | uint32
| | +--ro duid-low-1 | uint32
| | +--ro duid-low-2 | uint32
| +--ro iaid | uint32
| +--ro serv-name? | string
| +--ro description? | string
+--n retransmission-failed
| +--ro duid
| | +--ro duid-type | uint16
| | +--ro duid-high-1 | uint32
| | +--ro duid-high-2 | uint32
| | +--ro duid-low-1 uint32
| | +--ro duid-low-2 uint32
| +--ro description enumeration
+--n failed-status-turn-up
+--ro duid
| +--ro duid-type uint16
| +--ro duid-high-1 uint32
| +--ro duid-high-2 uint32
| +--ro duid-low-1 uint32
| +--ro duid-low-2 uint32
+--ro status-code enumeration
重要节点介绍。
——pool-running-out: 地址/前缀池临近枯竭时通告。通过一个阈值定义了地址/前缀池使用率的临界值,接近临界值时通知管理员;该阈值可根据实际需求进行设定。
——ia-lease-event: 在客户端得到服务器分配的新 IA 时, 或收到 renew/rebind/release 更新现有的 IA 时通告。
——invalid-client-detected:当服务器发现某些客户端可能成为潜在的攻击者时进行通告,也可包含一些描述性的信息。
——topo-changed: 中继代理的拓扑改变时进行通告。
——invalid-ia-detected: 当客户端的 IA 无效时进行通告。可能的情况包括:重复地址,非法地址等。
——retransmission-failed: [RFC 3315]中定义的重传机制失败时进行通告。
——failed-status-turn-up: 当客户端接收到失败的 Status Code 选项时进行通告。
6 DHCPv6 YANG 数据模型代码
<CODE BEGINS> file "ietf-dhcpv6@2015-10-16.yang"
module ietf-dhcpv6 {
namespace "urn:ietf:params:xml:ns:yang:ietf-dhcpv6";
prefix "dhcpv6";
import ietf-inet-types {
prefix inet;
revision-date "2013-07-15";
}
import ietf-yang-types {
prefix yang;
—2024
revision-date "2013-07-15";
}
organization "dhc wg";
contact "yong@csnet1.cs.tsinghua.edu.cn
wangh13@mails.tsinghua.edu.cn
lh.sunlinh@gmail.com
Ted.Lemon@nominum.com
ian.farrer@telekom.de";
description "This model defines a YANG data model that can be
used to configure and manage DHCPv6 server, DHCPv6 relay and
DHCPv6 client.";
revision 2015-10-16 {
description "version05: Omit the feature statement. Modify
model according to comments from Huawei. Also correct some
grammar errors.";
reference "I-D: draft-ietf-dhc-dhcpv6-yang-00";
}
revision 2015-09-25 {
description "version04: Correct duid and grammar errors.";
reference "I-D: draft-cui-dhc-dhcpv6-yang-04";
}
revision 2015-07-01 {
description "version03: Correct grammar errors.";
reference "I-D: draft-cui-dhc-dhcpv6-yang-03";
}
revision 2015-04-13 {
description "version02: Correct grammar errors.";
reference "I-D: draft-cui-dhc-dhcpv6-yang-02";
}
revision 2015-04-02 {
description "version01: Correct grammar errors, Reuse groupings, Update 'dhcpv6-relay' feature, Add notifications.";
reference "I-D: draft-cui-dhc-dhcpv6-yang-01";
}
revision 2015-03-04 {
description "version00: Initial revision.";
reference "I-D: draft-cui-dhc-dhcpv6-yang-00";
}
/*
* Typedef
*/
typedef duidtype {
type union {
type uint16;
type string {
pattern '(([0-9a-fA-F]{2}){2,128})';
}
}
description "the type defined for duid";
}
typedef threshold {
type union {
type uint16 {
range 0..100;
}
type enumeration {
enum "disabled" {
description "No threshold";
}
}
}
YD/T 6248—2024
description "Threshold value in percent";
}
/*
* Grouping
*/
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";
}
}
}
/*
* Data Nodes
*/
container server {
description "dhcpv6 server portion";
container serv-attributes {
description "This container contains basic attributes
of a DHCPv6 server such as DUID, server name and s
on. Some optional functions that can be provided by
the server is also included.";
leaf name {
type string;
mandatory true;
description "server's name";
}
leaf duid {
type duidtype;
mandatory true;
description "DHCP Unique Identifier";
}
leaf enable {
type boolean;
mandatory true;
description "whether to enable the server";
}
leaf 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 ([RFC 3633]).";
}
leaf stateless-service {
type boolean;
mandatory true;
description "A boolean value specifies whether the server support client-server exchanges involving two messages defined in ([RFC 3315]).";
}
leaf rapid-commit {
type boolean;
mandatory true;
description "A boolean value specifies whether the server support client-server exchanges involving two messages defined in ([RFC 3315]).";
}
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";
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 configuraion option";
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;
description "nis server id";
}
leaf nis-serv-addr {
type inet:ipv6-address;
mandatory true;
description "nis server addr";
}
}
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";
}
list nis-plus-server {
key nis-plus-serv-id;
description "nisp server info";
leaf nis-plus-serv-id {
type uint8;
mandatory true;
description "nisp server id";
}
leaf nis-plus-serv-addr {
type inet:ipv6-address;
mandatory true;
description "nisp server addr";
}
}
}
}
}
container info-refresh-time-option {
description "info refresh time option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this option will be included in the option set";
}
leaf info-refresh-time {
type yang:timeticks;
mandatory true;
description "the refresh time";
}
}
container cli-fqdn-option {
description "client fqdn option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this option will be included in the option set";
}
leaf server-initiate-update {
type boolean;
mandatory true;
description "server initiate";
}
leaf client-initiate-update {
type boolean;
mandatory true;
description "client initiate";
}
leaf modify-name-from-cli {
type boolean;
mandatory true;
description "modify by client";
}
}
container timezone-option {
description "timezone option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be included in the
option set";
}
leaf tz-posix {
type string;
mandatory true;
description "tz posix";
}
leaf tz-database {
type string;
mandatory true;
description "tz database";
}
}
container ntp-server-option {
description "ntp server option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be included in the
option set";
}
list ntp-server {
key ntp-serv-id;
description "ntp server info";
leaf ntp-serv-id {
type uint8;
mandatory true;
description "ntp server id";
}
leaf ntp-serv-addr {
type inet:ipv6-address;
mandatory true;
description "ntp server addr";
}
leaf ntp-serv-mul-addr {
type inet:ipv6-address;
mandatory true;
description "ntp server multicas
addr";
}
leaf ntp-serv-fqdn {
type string;
mandatory true;
description "ntp server fqdn";
}
}
}
container sntp-server-option {
description "sntp server option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be included in the
option set";
}
list sntp-server {
key sntp-serv-id;
description "sntp server info";
leaf sntp-serv-id {
type uint8;
mandatory true;
description "sntp server id";
}
leaf sntp-serv-addr {
type inet:ipv6-address;
mandatory true;
description "sntp server addr";
}
}
}
container network-boot-option {
description "network boot option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this option will be included in the option set";
}
list boot-file {
key boot-file-id;
description "boot file info";
leaf boot-file-id {
type uint8;
mandatory true;
description "boot file id";
}
leaf-list suitable-arch-type {
type uint16;
description "architecture type";
}
leaf-list suitable-net-if {
type uint32;
description "network interface";
}
leaf boot-file-url {
type string;
mandatory true;
description "url for boot file";
}
list boot-file-paras {
key para-id;
description "boot file parameters";
leaf para-id {
type uint8;
mandatory true;
description "parameter id";
}
leaf parameter {
type string;
mandatory true;
description "parameter
value";
}
}
}
}
container dslite-option {
description "dslite option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be included in the
option set";
}
leaf dslite-aftr-name {
type string;
mandatory true;
description "aftr name";
}
}
container kerberos-option {
description "kerberos option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this option will be included in the option set";
}
leaf default-realm-name {
type string;
mandatory true;
description "default realm name";
}
list kdc-info {
key kdc-id;
description "kdc info";
leaf kdc-id {
type uint8;
mandatory true;
description "kdc id";
}
leaf priority {
type uint16;
mandatory true;
description "priority";
}
leaf weight {
type uint16;
mandatory true;
description "weight";
}
leaf transport-type {
type uint8;
mandatory true;
description "transport type";
}
leaf port-number {
type uint16;
mandatory true;
description "port number";
}
leaf kdc-ipv6-addr {
type inet:ipv6-address;
mandatory true;
description "kdc ipv6 addr";
}
leaf realm-name {
type string;
mandatory true;
description "realm name";
}
}
container addr-selection-option {
description "address selection option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this option will be included in the option set";
}
leaf a-bit-set {
type boolean;
mandatory true;
description "a bit";
}
leaf p-bit-set {
type boolean;
mandatory true;
description "p bit";
}
list policy-table {
key policy-id;
description "policy table";
leaf policy-id {
type uint8;
mandatory true;
description "policy id";
}
leaf label {
type uint8;
mandatory true;
description "label";
}
leaf 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;
description "indicate whether this option will be included in the option set";
}
leaf sol-max-rt-value {
type yang:timeticks;
mandatory true;
description "sol max rt value";
}
}
container inf-max-rt-option {
description "inf max rt option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this option will be included in the option set";
}
leaf inf-max-rt-value {
type yang:timeticks;
mandatory true;
description "inf max rt value";
}
}
container pcp-server-option {
description "pcp server option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this option will be included in the option set";
}
list pcp-server {
key pcp-serv-id;
description "pcp server info";
leaf pcp-serv-id {
type uint8;
mandatory true;
description "pcp server id";
}
leaf pcp-serv-addr {
type inet:ipv6-address;
mandatory true;
description "pcp server addr";
}
}
}
container s46-rule-option {
description "s46 rule option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this option will be included in the option set";
}
list s46-rule {
key rule-id;
description "s46 rule";
leaf rule-id {
type uint8;
mandatory true;
description "rule id";
}
leaf rule-type {
type enumeration {
enum "BMR" {
description "BMR";
}
enum "FMR" {
description "FMR";
}
}
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 {
description "s46 br option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be included in the
option set";
}
list br {
key br-id;
description "br info";
leaf br-id {
type uint8;
mandatory true;
description "br id";
}
leaf br-ipv6-addr {
type inet:ipv6-address;
mandatory true;
description "br ipv6 addr";
}
}
}
container s46-dmr-option {
description "s46 dmr option";
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";
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 network-ranges {
description "This model supports a hierarchy to achieve dynamic configuration. That is to say we could configure the server at different levels through this model. The top level is a global level which is defined as the container 'network-ranges'. The following levels are defined as sub-containers under it. The 'network-ranges' contains the parameters (e.g. option-sets) that would be allocated to all the clients served by this server.";
leaf-list option-set {
type uint8;
description "a specific option set";
}
list network-range {
key network-range-id;
description "Under the 'network-ranges' container, a 'network-range' list is defined to configure the server at a network level which is also considered as the second level. Different network are identified by the key 'network-range-id'. This is because a server may have different configuration parameters (e.g. option sets) for different networks.";
leaf network-range-id {
type uint8;
mandatory true;
description "equivalent to subnet id";
}
leaf network-description {
type string;
mandatory true;
description "description of the subnet";
}
leaf network-prefix {
type inet:ipv6-prefix;
mandatory true;
description "subnet prefix";
}
leaf inherit-option-set {
type boolean;
mandatory true;
description "indicate whether to inherit
the configuration from higher level";
}
leaf-list option-set {
type uint8;
description "configured option set";
}
container address-pools {
description "A container describes
the DHCPv6 server's address pools.";
list address-pool {
key pool-id;
description "A DHCPv6 server can
be configured with several address
pools. This list defines such
address pools which are distinguish
by the key called 'pool-name'.";
leaf pool-id {
type uint8;
mandatory true;
description "pool id";
}
leaf pool-prefix {
type inet:ipv6-prefix;
mandatory true;
description "pool prefix";
}
leaf start-address {
type inet:ipv6-address-no-zone;
mandatory true;
description "start address";
}
leaf end-address {
type inet:ipv6-address-no-zone;
mandatory true;
description "end address";
}
leaf renew-time {
type yang:timeticks;
mandatory true;
description "renew time";
}
leaf rebind-time {
type yang:timeticks;
mandatory true;
description "rebind time";
}
leaf preferred-lifetime {
type yang:timeticks;
mandatory true;
description "preferred lifetime
for IA";
}
leaf valid-lifetime {
type yang:timeticks;
mandatory true;
description "valid liftime for IA";
}
leaf total-ipv6-count {
type uint64;
config "false";
mandatory true;
description "how many ipv6
addresses are in the pool";
}
leaf used-ipv6-count {
type uint64;
config "false";
mandatory true;
description "how many are
allocated";
}
leaf utilization-ratio {
type threshold;
mandatory true;
description "the utilization ratio";
}
leaf inherit-option-set {
type boolean;
mandatory true;
description "indicate whether to
inherit the configuration from
higher level";
}
leaf-list option-set {
type uint8;
description "configured option
set";
}
container reserved-addresses {
description "reserved addresses";
list static-binding {
key cli-id;
description "static binding of
reserved addresses";
leaf cli-id {
type uint32;
mandatory true;
description "client id";
}
leaf duid {
type duidtype;
mandatory true;
description "DHCP Unique
Identifier";
}
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 Identifier";
}
list cli-ia {
key iaid;
description "client IA";
leaf ia-type {
type string;
mandatory true;
description "IA type";
}
leaf iaid {
type uint32;
mandatory true;
description "IAID";
}
leaf-list cli-addr {
type inet:ipv6-address;
description "client addr";
}
leaf pool-id {
type uint8;
mandatory true;
description "pool id";
}
}
}
}
container prefix-pools {
description "If a server supports prefix
delegation function, this container will
be used to define the delegating router's
refix pools.";
list prefix-pool {
key pool-id;
description "Similar to server's
address pools, a delegating router
can also be configured with multiple
prefix pools specified by a list
called 'prefix-pool'.";
leaf pool-id {
type uint8;
mandatory true;
description "pool id";
}
leaf prefix {
type inet:ipv6-prefix;
mandatory true;
description "ipv6 prefix";
}
leaf prefix-length {
type uint8;
mandatory true;
description "prefix length";
}
leaf renew-time {
type yang:timeticks;
mandatory true;
description "renew time";
}
leaf rebind-time {
type yang:timeticks;
mandatory true;
description "rebind time";
}
leaf preferred-lifetime {
type yang:timeticks;
mandatory true;
description "preferred lifetime for IA";
}
leaf valid-lifetime {
type yang:timeticks;
mandatory true;
description "valid lifetime for IA";
}
leaf utilization-ratio {
type threshold;
mandatory true;
description "utilization ratio";
}
leaf inherit-option-set {
type boolean;
mandatory true;
description "whether to inherit
configuration from higher level";
}
leaf-list option-set {
type uint8;
description "configured option
set";
}
container reserved-prefixes {
description "reserved prefixes";
list static-binding {
key cli-id;
description "static binding";
leaf cli-id {
type uint32;
mandatory true;
description "client id";
}
leaf duid {
type duidtype;
mandatory true;
description "DHCP Unique
Identifier";
}
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
Identifier";
}
leaf inherit-option-set {
type boolean;
mandatory true;
description "whether to inherit
configuration
from higher level";
}
leaf-list option-set {
type uint8;
description "configured option set";
}
leaf nis-domain-name {
type string;
description "nis domain name";
}
leaf nis-plus-domain-name {
type string;
description "nisp domain name";
}
}
}
}
}
}
container relay-opaque-paras {
description "This container contains some
opaque values in Relay Agent options that
need to be configured on the server side
only for value match. Such Relay Agent
options include Interface-Id option,
Remote-Id option and Subscriber-Id option.";
list relays {
key relay-name;
description "relay agents";
leaf relay-name {
type string;
mandatory true;
description "relay agent name";
}
list interface-info {
key if-name;
description "interface info";
leaf if-name {
type string;
mandatory true;
description "interface name";
}
leaf interface-id {
type string;
mandatory true;
description "interface id";
}
}
list subscribers {
key subscriber;
description "subscribers";
leaf subscriber {
type uint8;
mandatory true;
description "subscriber";
}
leaf subscriber-id {
type string;
mandatory true;
description "subscriber id";
}
}
list remote-host {
key ent-num;
description "remote host";
leaf ent-num {
type uint32;
mandatory true;
description "enterprise number";
}
leaf remote-id {
type string;
mandatory true;
description "remote id";
}
}
}
}
container rsoo-enabled-options {
description "rsoo enabled options";
list rsoo-enabled-option{
key option-code;
description "rsoo enabled option";
leaf option-code {
type uint16;
mandatory true;
description "option code";
}
leaf description {
type string;
mandatory true;
description "description of the option";
}
}
container packet-stats {
config "false";
description "A container presents
the packet statistics related to
the DHCPv6 server.";
leaf solicit-count {
type uint32;
mandatory true;
description "solicit counter";
}
leaf request-count {
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";
}
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 relay {
description "dhcpv6 relay portion";
container relay-attributes {
description "A container describes
some basic attributes of the relay
agent including some relay agent
specific options data that need to
be configured previously. Such options
include Remote-Id option and
Subscriber-Id option.";
leaf name {
type string;
mandatory true;
description "relay agent name";
}
leaf enable {
type boolean;
mandatory true;
description "whether the relay is enabled";
}
leaf description {
type string;
description "description of the relay agent";
}
leaf-list dest-addrs {
type inet:ipv6-address;
description "Each DHCPv6 relay agent may
be configured with a list of destination
addresses. This node defines such a list
of IPv6 addresses that may include
unicast addresses, multicast addresses
or other addresses.";
}
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";
}
}
uses vendor-infor;
container relay-supplied-options-option {
description "relay supplied options option";
list rsoo-set {
key rsoo-set-id;
description "rsoo set";
leaf rsoo-set-id {
type uint8;
mandatory true;
description "rsoo set id";
}
container erp-local-domain-name-option {
description "erp local domain name option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether
this option is included in the
rsoo set";
}
list erp-for-client {
key cli-id;
description "erp for client";
leaf cli-id {
type uint32;
mandatory true;
description "client id";
}
leaf duid {
type duidtype;
mandatory true;
description "DHCP Unique
Identifier";
}
leaf erp-name {
type string;
mandatory true;
description "erp name";
}
}
}
}
list relay-if {
key if-name;
description "A relay agent may have several interfaces, we should provide a way to configure and manage parameters on the interface-level. A list that describes specific interfaces and their corresponding parameters is employed to fulfil the configuration. 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 received 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 received counter";
}
leaf packet-to-cli-count {
type uint32;
mandatory true;
description "packet to client counter";
}
leaf relay-for-sent-count {
type uint32;
mandatory true;
description "relay forward sent counter";
}
leaf relay-rep-sent-count {
type uint32;
mandatory true;
description "relay reply sent counter";
}
leaf discarded-packet-count {
type uint32;
mandatory true;
description "discarded packet counter";
}
}
}
container client {
description "dhcpv6 client portion";
list client-if {
key if-name;
description "A client may have several interfaces, it is more reasonable to configure and manage parameters on the interface-level. The list defines specific client interfaces and their data. Different interfaces are distinguished by the key which is a configurable string value.";
leaf if-name {
type string;
mandatory true;
description "interface name";
}
leaf cli-id {
type uint32;
mandatory true;
description "client id";
}
leaf duid {
type duidtype;
mandatory true;
description "DHCP Unique
Identifier";
}
leaf enable {
type boolean;
mandatory true;
description "whether the interface is enabled"
}
leaf description {
type string;
description
"description of the client interface";
}
leaf pd-function {
type boolean;
mandatory true;
description "Whether the client
can act as a requesting router
to request prefixes using prefix
delegation ([RFC 3633]).";
}
leaf rapid-commit {
type boolean;
mandatory true;
description ""1" indicates a client can
initiate a Solicit-Reply message exchange by adding a Rapid Commit option in Solicit message. '0' means the client is not allowed to add a Rapid Commit option to request addresses in a two-message exchange pattern.";
container mo-tab {
description "The management tab
label indicates the operation
mode of the DHCPv6 client. 'm'=1
and 'o'=1 indicate the client
will use DHCPv6 to obtain all
the configuration data. 'm'=1
and 'o'=0 are a meaningless
combination. 'm'=0 and 'o'=1
indicate the client will use
stateless DHCPv6 to obtain
configuration data apart from
addresses/prefixes data.
'm'=0 and 'o'=0 represent the
client will not use DHCPv6
but use SLAAC to achieve
configuration.";
leaf m-tab {
type boolean;
mandatory true;
description "m tab";
}
leaf o-tab {
type boolean;
mandatory true;
description "o tab";
}
}
container oro-options {
description "oro options";
list oro-option {
key option-code;
description "oro option";
leaf option-code {
type uint16;
mandatory true;
description "option code";
}
leaf description {
type string;
mandatory true;
description "description of oro
options";
}
}
}
container client-configured-options {
description "client configured options";
list new-or-standard-cli-option {
key option-code;
description "new or standard client option";
leaf option-code {
type uint16;
mandatory true;
description "option code";
}
leaf option-name {
type string;
mandatory true;
description "option name";
}
leaf option-description {
type string;
mandatory true;
description "description of client
option";
}
}
}
leaf option-reference {
type string;
description "the reference of option"
}
leaf option-value {
type string;
mandatory true;
description "the option value";
}
}
container user-class-option {
description "user class option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this option will be configured at the client";
}
list user-class {
key user-class-id;
description "user class";
leaf user-class-id {
type uint8;
mandatory true;
description "user class id";
}
leaf user-class-info {
type string;
mandatory true;
description "user class info";
}
}
}
container vendor-class-option {
description "vendor class option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be configured at the
client";
}
leaf ent-num {
type uint32;
mandatory true;
description "enterprise number";
}
leaf-list data {
type string;
description "option data";
}
container client-fqdn-option {
description "client fqdn option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be configured at the
client";
}
leaf fqdn {
type string;
mandatory true;
description "fqdn";
}
leaf server-initiate-update {
type boolean;
mandatory true;
description "whether server initiate";
}
leaf client-initiate-update {
type boolean;
mandatory true;
description "whether client initiate";
}
}
container client-architecture-type-option {
description
"client architecture type option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be configured at the
client";
}
list architecture-types {
key type-id;
description "architecture types";
leaf type-id {
type uint16;
mandatory true;
description "type id";
}
leaf most-preferred {
type boolean;
mandatory true;
description "most preferred flag";
}
}
}
container client-network-interface-option {
description
"client network interface option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be configured at the
client";
}
leaf type {
type uint8;
mandatory true;
description "type";
}
leaf major {
type uint8;
mandatory true;
description "major";
}
leaf minor {
type uint8;
mandatory true;
description "minor";
}
}
container kerberos-principal-name-option {
description
"kerberos principal name option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this option will be configured at the client";
}
leaf principal-name {
type string;
mandatory true;
description "principal name";
}
}
container client-link-layer-addr-option {
description
"client link layer address option";
leaf enable {
type boolean;
mandatory true;
description "indicate whether this
option will be configured at the
client";
}
leaf link-layer-type {
type uint16;
mandatory true;
description "link layer type";
}
leaf link-layer-addr {
type string;
mandatory true;
description "link layer address";
}
}
}
container identity-associations {
config "false";
description "IA is a construct through
which a server and a client can identify,
group, and manage a set of related IPv6
addresses. The key of the list is a
4-byte number IAID defined in [RFC 3315]."
list identity-association {
key iaid;
description "IA";
leaf iaid {
type uint32;
mandatory true;
description "IAID";
}
leaf ia-type {
type string;
mandatory true;
description "IA type";
}
leaf-list ipv6-addr {
type inet:ipv6-address;
description "ipv6 address";
}
leaf-list ipv6-prefix {
type inet:ipv6-prefix;
description "ipv6 prefix";
}
leaf-list prefix-length {
type uint8;
description "ipv6 prefix length";
}
leaf t1-time {
type yang:timeticks;
mandatory true;
description "t1 time";
}
leaf t2-time {
type yang:timeticks;
mandatory true;
description "t2 time";
}
leaf preferred-lifetime {
type yang:timeticks;
mandatory true;
description "preferred lifetime";
}
leaf valid-lifetime {
type yang:timeticks;
mandatory true;
description "valid lifetime";
}
}
}
container if-other-paras {
config "false";
description "A client can obtain
extra configuration data other than
address and prefix information through
DHCPv6. This container describes such
data the client was configured. The
potential configuration data may
include DNS server addresses, SIP
server domain names, etc.";
leaf-list uni-dhcpv6-serv-addr {
type inet:ipv6-address;
description "unicast server address";
}
container dns-paras {
description "dns parameters";
leaf domain-search-list {
type string;
mandatory true;
description "domain search list";
}
list dns-servers {
key dns-serv-id;
description "dns servers";
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 address";
}
}
}
container sip-paras {
description "sip parameters";
list sip-servers {
key sip-serv-id;
description "sip server info";
leaf sip-serv-id {
type uint8;
mandatory true;
description "sip server id";
}
leaf sip-serv-addr {
type inet:ipv6-address;
mandatory true;
description "sip server address";
}
leaf sip-serv-domain-name {
type string;
mandatory true;
description
"sip server domain name";
}
}
}
container nis-paras {
description "nis parameters";
leaf nis-domain-name {
type string;
mandatory true;
description "nis domain name";
}
list nis-server {
key nis-serv-id;
description "nis server";
leaf nis-serv-id {
type uint8;
mandatory true;
description "nis server id";
}
leaf nis-serv-addr {
type inet:ipv6-address;
mandatory true;
description "nis server address";
}
}
}
container nis-plus-paras {
description "nisp parameters";
leaf nis-plus-domain-name {
type string;
mandatory true;
description "nisp domian name";
}
list nis-plus-server {
key nis-plus-serv-id;
description "nisp server";
leaf nis-plus-serv-id {
type uint8;
mandatory true;
description "nisp server id";
}
leaf nis-plus-serv-addr {
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";
}
leaf precedence {
type uint8;
mandatory true;
description "precedence";
}
leaf prefix-len {
type uint8;
mandatory true;
description "prefix length";
}
leaf prefix {
type inet:ipv6-prefix;
mandatory true;
description "prefix";
}
}
leaf sol-max-rt {
type yang:timeticks;
mandatory true;
description "sol max rt";
}
leaf inf-max-rt {
type yang:timeticks;
mandatory true;
description "inf max rt";
}
container pcp-server-paras {
description "pcp server parameters";
list pcp-server {
key pcp-serv-id;
description "pcp server";
leaf pcp-serv-id {
type uint8;
mandatory true;
description "pcp server id";
}
leaf pcp-serv-addr {
type inet:ipv6-address;
mandatory true;
description "pcp server address"
}
}
}
container s46-rule-paras {
description "s46 rule parameters";
list s46-rule {
key rule-id;
description "s46 rule";
leaf rule-id {
type uint8;
mandatory true;
description "rule id";
}
}
leaf rule-type {
type enumeration {
enum "BMR" {
description "BMR";
}
enum "FMR" {
description "FMR";
}
}
mandatory true;
description "rule type";
}
leaf ea-len {
type uint8;
mandatory true;
description "EA bits length";
}
leaf prefix4-len {
type uint8;
mandatory true;
description "ipv4 prefix length";
}
leaf ipv4-prefix {
type inet:ipv4-prefix;
mandatory true;
description "ipv4 prefix";
}
leaf prefix6-len {
type uint8;
mandatory true;
description "ipv6 prefix length";
}
leaf ipv6-prefix {
type inet:ipv6-prefix;
mandatory true;
description "ipv6 prefix";
}
uses portset-para;
}
}
container s46-br-paras {
description "s46 br parameters";
list br {
key br-id;
description "br";
leaf br-id {
type uint8;
mandatory true;
description "br id";
}
leaf br-ipv6-addr {
type inet:ipv6-address;
mandatory true;
description "br ipv6 address";
}
}
}
container s46-dmr-paras {
description "s46 dmr parameters";
list dmr {
key dmr-id;
description "dmr";
leaf dmr-id {
type uint8;
mandatory true;
description "dmr id";
}
leaf dmr-prefix-len {
type uint8;
mandatory true;
description "dmr prefix length";
}
leaf dmr-ipv6-prefix {
type inet:ipv6-prefix;
mandatory true;
description "dmr prefix";
}
}
}
container s46-v4-v6-binding-paras {
description "s46 v4 v6 binding parameters";
leaf ipv4-addr {
type inet:ipv4-address;
mandatory true;
description "ipv4 address";
}
leaf bind-prefix6-len {
type uint8;
mandatory true;
description "bind ipv6 prefix";
}
uses portset-para;
leaf erp-local-domain-name {
type string;
mandatory true;
description "erp local domain name";
}
}
container supported-options {
description "supported options";
list supported-option {
key option-code;
description "supported option";
leaf option-code {
type uint16;
mandatory true;
description "option code";
}
leaf description {
type string;
mandatory true;
description
"description of supported
option";
}
}
}
}
container packet-stats {
config "false";
description "A container records
all the packet status information
of a specific interface.";
leaf solicit-count {
type uint32;
mandatory true;
description "solicit counter";
}
leaf request-count {
type uint32;
mandatory true;
description "request counter";
}
leaf renew-count {
type uint32;
mandatory true;
description "renew counter";
}
leaf rebind-count {
type uint32;
mandatory true;
description "rebind counter";
}
leaf decline-count {
type uint32;
mandatory true;
description "decline counter";
}
leaf release-count {
type uint32;
mandatory true;
description "release counter";
}
leaf info-req-count {
type uint32;
mandatory true;
description "information request counter";
}
leaf advertise-count {
type uint32;
mandatory true;
description "advertise counter";
}
leaf confirm-count {
type uint32;
mandatory true;
description "confirm counter";
}
leaf reply-count {
type uint32;
mandatory true;
description "reply counter";
}
leaf reconfigure-count {
type uint32;
mandatory true;
description "recofigure counter";
}
}
}
}
}
/*
* Notifications
*/
notification notifications {
description "dhcpv6 notification module";
container dhcpv6-server-event {
description "dhcpv6 server event";
container pool-running-out {
description "raised when the
address/prefix pool is going to
run out. A threshold for utilization
ratio of the pool has been defined in
the server feature so that it will
notify the administrator when the
utilization ratio reaches the threshold,
and such threshold is a settable
parameter";
leaf utilization-ratio {
type uint16;
mandatory true;
description "utilization ratio";
}
leaf duid {
type duidtype;
mandatory true;
description "DHCP Unique
Identifier";
}
leaf serv-name {
type string;
description "server name";
}
leaf pool-name {
type string;
mandatory true;
description "pool name";
}
}
container invalid-client-detected {
description "raised when the server
has found a client which can be
regarded as a potential attacker. Some
description could also be included.";
leaf duid {
type duidtype;
mandatory true;
description "DHCP Unique
Identifier";
}
leaf description {
type string;
description "description of the event"
}
}
}
container dhcpv6-relay-event {
description "dhcpv6 relay event";
container topo-changed {
description "raised when the topology
of the relay agent is changed.";
leaf relay-if-name {
type string;
mandatory true;
description "relay interface name";
}
leaf first-hop {
type boolean;
mandatory true;
description "first hop";
}
leaf last-entity-addr {
type inet:ipv6-address;
mandatory true;
description "last entity address";
}
}
}
container dhcpv6-client-event {
description "dhcpv6 client event";
container ia-lease-event {
description "raised when the
client was allocated a new IA from
the server or it renew/rebind/release
its current IA";
leaf event-type {
type enumeration {
enum "allocation" {
description "allocate";
}
enum "rebind" {
description "rebind";
}
enum "renew" {
description "renew";
}
enum "release" {
description "release";
}
}
mandatory true;
description "event type";
}
leaf duid {
type duidtype;
mandatory true;
description "DHCP Unique
Identifier";
}
leaf iaid {
type uint32;
mandatory true;
description "IAID";
}
}
}
leaf serv-name {
type string;
description "server name";
}
leaf description {
type string;
description "description of event";
}
ntainer invalid-ia-detected {
description "raised when the identity association of the client can be proved to be invalid. Possible condition includes duplicated address, illegal address, etc.";
leaf duid {
type duidtype;
mandatory true;
description "DHCP Unique
Identifier";
}
leaf cli-duid {
type uint32;
mandatory true;
description "duid of client";
}
leaf iaid {
type uint32;
mandatory true;
description "IAID";
}
leaf serv-name {
type string;
description "server name";
}
leaf description {
type string;
description "description of the event";
}
}
container retransmission-failed {
description "raised when the retransmission
mechanism defined in [RFC 3315] is failed.";
leaf duid {
type duidtype;
description "DUID";
}
leaf description {
type enumeration {
enum "MRC failed" {
description "MRC failed";
}
enum "MRD failed" {
description "MRD failed";
}
}
mandatory true;
description "description of failure";
}
}
container failed-status-turn-up {
description "raised when the client receives
a message includes an unsuccessful Status Code
option.";
leaf duid {
type duidtype;
mandatory true;
description "DHCP Unique
Identifier";
}
leaf status-code {
type enumeration {
enum "1" {
description "UnspecFail";
}
enum "2" {
description "NoAddrAvail";
}
enum "3" {
description "NoBinding";
}
enum "4" {
description "NotOnLink";
}
enum "5" {
description "UseMulticast";
}
}
mandatory true;
description "employed status code";
}
}
}
}
}
<CODE ENDS>

评论