draft-ietf-netconf-netconf-client-server-14.txt   draft-ietf-netconf-netconf-client-server-15.txt 
NETCONF Working Group K. Watsen NETCONF Working Group K. Watsen
Internet-Draft Watsen Networks Internet-Draft Watsen Networks
Intended status: Standards Track July 2, 2019 Intended status: Standards Track October 18, 2019
Expires: January 3, 2020 Expires: April 20, 2020
NETCONF Client and Server Models NETCONF Client and Server Models
draft-ietf-netconf-netconf-client-server-14 draft-ietf-netconf-netconf-client-server-15
Abstract Abstract
This document defines two YANG modules, one module to configure a This document defines two YANG modules, one module to configure a
NETCONF client and the other module to configure a NETCONF server. NETCONF client and the other module to configure a NETCONF server.
Both modules support both the SSH and TLS transport protocols, and Both modules support both the SSH and TLS transport protocols, and
support both standard NETCONF and NETCONF Call Home connections. support both standard NETCONF and NETCONF Call Home connections.
Editorial Note (To be removed by RFC Editor) Editorial Note (To be removed by RFC Editor)
skipping to change at page 2, line 11 skipping to change at page 2, line 11
o "YYYY" --> the assigned RFC value for I-D.ietf-netconf-ssh-client- o "YYYY" --> the assigned RFC value for I-D.ietf-netconf-ssh-client-
server server
o "ZZZZ" --> the assigned RFC value for I-D.ietf-netconf-tls-client- o "ZZZZ" --> the assigned RFC value for I-D.ietf-netconf-tls-client-
server server
Artwork in this document contains placeholder values for the date of Artwork in this document contains placeholder values for the date of
publication of this draft. Please apply the following replacement: publication of this draft. Please apply the following replacement:
o "2019-07-02" --> the publication date of this draft o "2019-10-18" --> the publication date of this draft
The following Appendix section is to be removed prior to publication: The following Appendix section is to be removed prior to publication:
o Appendix B. Change Log o Appendix B. Change Log
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 https://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 January 3, 2020. This Internet-Draft will expire on April 20, 2020.
Copyright Notice Copyright Notice
Copyright (c) 2019 IETF Trust and the persons identified as the Copyright (c) 2019 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
(https://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
skipping to change at page 3, line 11 skipping to change at page 3, line 11
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 . . . . . . . . . . . . . . . . . . . . . . . . 3 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 3
2. Terminology . . . . . . . . . . . . . . . . . . . . . . . . . 4 2. Terminology . . . . . . . . . . . . . . . . . . . . . . . . . 4
3. The NETCONF Client Model . . . . . . . . . . . . . . . . . . 4 3. The NETCONF Client Model . . . . . . . . . . . . . . . . . . 4
3.1. Tree Diagram . . . . . . . . . . . . . . . . . . . . . . 4 3.1. Tree Diagram . . . . . . . . . . . . . . . . . . . . . . 4
3.2. Example Usage . . . . . . . . . . . . . . . . . . . . . . 5 3.2. Example Usage . . . . . . . . . . . . . . . . . . . . . . 6
3.3. YANG Module . . . . . . . . . . . . . . . . . . . . . . . 8 3.3. YANG Module . . . . . . . . . . . . . . . . . . . . . . . 9
4. The NETCONF Server Model . . . . . . . . . . . . . . . . . . 18 4. The NETCONF Server Model . . . . . . . . . . . . . . . . . . 20
4.1. Tree Diagram . . . . . . . . . . . . . . . . . . . . . . 18 4.1. Tree Diagram . . . . . . . . . . . . . . . . . . . . . . 20
4.2. Example Usage . . . . . . . . . . . . . . . . . . . . . . 20 4.2. Example Usage . . . . . . . . . . . . . . . . . . . . . . 22
4.3. YANG Module . . . . . . . . . . . . . . . . . . . . . . . 25 4.3. YANG Module . . . . . . . . . . . . . . . . . . . . . . . 28
5. Security Considerations . . . . . . . . . . . . . . . . . . . 36 5. Security Considerations . . . . . . . . . . . . . . . . . . . 40
6. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 37 6. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 41
6.1. The IETF XML Registry . . . . . . . . . . . . . . . . . . 37 6.1. The IETF XML Registry . . . . . . . . . . . . . . . . . . 41
6.2. The YANG Module Names Registry . . . . . . . . . . . . . 38 6.2. The YANG Module Names Registry . . . . . . . . . . . . . 42
7. References . . . . . . . . . . . . . . . . . . . . . . . . . 38 7. References . . . . . . . . . . . . . . . . . . . . . . . . . 42
7.1. Normative References . . . . . . . . . . . . . . . . . . 38 7.1. Normative References . . . . . . . . . . . . . . . . . . 42
7.2. Informative References . . . . . . . . . . . . . . . . . 39 7.2. Informative References . . . . . . . . . . . . . . . . . 43
Appendix A. Expanded Tree Diagrams . . . . . . . . . . . . . . . 41 Appendix A. Expanded Tree Diagrams . . . . . . . . . . . . . . . 45
A.1. Expanded Tree Diagram for 'ietf-netconf-client' . . . . . 41 A.1. Expanded Tree Diagram for 'ietf-netconf-client' . . . . . 45
A.2. Expanded Tree Diagram for 'ietf-netconf-server' . . . . . 52 A.2. Expanded Tree Diagram for 'ietf-netconf-server' . . . . . 60
Appendix B. Change Log . . . . . . . . . . . . . . . . . . . . . 66 Appendix B. Change Log . . . . . . . . . . . . . . . . . . . . . 79
B.1. 00 to 01 . . . . . . . . . . . . . . . . . . . . . . . . 66 B.1. 00 to 01 . . . . . . . . . . . . . . . . . . . . . . . . 79
B.2. 01 to 02 . . . . . . . . . . . . . . . . . . . . . . . . 66 B.2. 01 to 02 . . . . . . . . . . . . . . . . . . . . . . . . 79
B.3. 02 to 03 . . . . . . . . . . . . . . . . . . . . . . . . 66 B.3. 02 to 03 . . . . . . . . . . . . . . . . . . . . . . . . 79
B.4. 03 to 04 . . . . . . . . . . . . . . . . . . . . . . . . 66 B.4. 03 to 04 . . . . . . . . . . . . . . . . . . . . . . . . 79
B.5. 04 to 05 . . . . . . . . . . . . . . . . . . . . . . . . 66 B.5. 04 to 05 . . . . . . . . . . . . . . . . . . . . . . . . 80
B.6. 05 to 06 . . . . . . . . . . . . . . . . . . . . . . . . 67 B.6. 05 to 06 . . . . . . . . . . . . . . . . . . . . . . . . 80
B.7. 06 to 07 . . . . . . . . . . . . . . . . . . . . . . . . 67 B.7. 06 to 07 . . . . . . . . . . . . . . . . . . . . . . . . 80
B.8. 07 to 08 . . . . . . . . . . . . . . . . . . . . . . . . 67 B.8. 07 to 08 . . . . . . . . . . . . . . . . . . . . . . . . 80
B.9. 08 to 09 . . . . . . . . . . . . . . . . . . . . . . . . 67 B.9. 08 to 09 . . . . . . . . . . . . . . . . . . . . . . . . 80
B.10. 09 to 10 . . . . . . . . . . . . . . . . . . . . . . . . 67 B.10. 09 to 10 . . . . . . . . . . . . . . . . . . . . . . . . 81
B.11. 10 to 11 . . . . . . . . . . . . . . . . . . . . . . . . 68 B.11. 10 to 11 . . . . . . . . . . . . . . . . . . . . . . . . 81
B.12. 11 to 12 . . . . . . . . . . . . . . . . . . . . . . . . 68 B.12. 11 to 12 . . . . . . . . . . . . . . . . . . . . . . . . 81
B.13. 12 to 13 . . . . . . . . . . . . . . . . . . . . . . . . 68 B.13. 12 to 13 . . . . . . . . . . . . . . . . . . . . . . . . 82
B.14. 13 to 14 . . . . . . . . . . . . . . . . . . . . . . . . 68 B.14. 13 to 14 . . . . . . . . . . . . . . . . . . . . . . . . 82
Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . . 69 B.15. 14 to 15 . . . . . . . . . . . . . . . . . . . . . . . . 82
Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 69 Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . . 82
Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 82
1. Introduction 1. Introduction
This document defines two YANG [RFC7950] modules, one module to This document defines two YANG [RFC7950] modules, one module to
configure a NETCONF [RFC6241] client and the other module to configure a NETCONF [RFC6241] client and the other module to
configure a NETCONF server. Both modules support both NETCONF over configure a NETCONF server. Both modules support both NETCONF over
SSH [RFC6242] and NETCONF over TLS [RFC7589] and NETCONF Call Home SSH [RFC6242] and NETCONF over TLS [RFC7589] and NETCONF Call Home
connections [RFC8071]. connections [RFC8071].
2. Terminology 2. Terminology
skipping to change at page 4, line 38 skipping to change at page 4, line 38
This tree diagram only shows the nodes defined in this module; it This tree diagram only shows the nodes defined in this module; it
does show the nodes defined by "grouping" statements used by this does show the nodes defined by "grouping" statements used by this
module. module.
Please see Appendix A.1 for a tree diagram that illustrates what the Please see Appendix A.1 for a tree diagram that illustrates what the
module looks like with all the "grouping" statements expanded. module looks like with all the "grouping" statements expanded.
module: ietf-netconf-client module: ietf-netconf-client
+--rw netconf-client +--rw netconf-client
+---u netconf-client-grouping +---u netconf-client-app-grouping
grouping netconf-client-grouping grouping netconf-client-grouping
grouping netconf-client-initiate-stack-grouping
+-- (transport)
+--:(ssh) {ssh-initiate}?
| +-- ssh
| +-- tcp-client-parameters
| | +---u tcpc:tcp-client-grouping
| +-- ssh-client-parameters
| | +---u sshc:ssh-client-grouping
| +-- netconf-client-parameters
+--:(tls) {tls-initiate}?
+-- tls
+-- tcp-client-parameters
| +---u tcpc:tcp-client-grouping
+-- tls-client-parameters
| +---u tlsc:tls-client-grouping
+-- netconf-client-parameters
grouping netconf-client-listen-stack-grouping
+-- (transport)
+--:(ssh) {ssh-listen}?
| +-- ssh
| +-- tcp-server-parameters
| | +---u tcps:tcp-server-grouping
| +-- ssh-client-parameters
| | +---u sshc:ssh-client-grouping
| +-- netconf-client-parameters
+--:(tls) {tls-listen}?
+-- tls
+-- tcp-server-parameters
| +---u tcps:tcp-server-grouping
+-- tls-client-parameters
| +---u tlsc:tls-client-grouping
+-- netconf-client-parameters
grouping netconf-client-app-grouping
+-- initiate! {ssh-initiate or tls-initiate}? +-- initiate! {ssh-initiate or tls-initiate}?
| +-- netconf-server* [name] | +-- netconf-server* [name]
| +-- name? string | +-- name? string
| +-- endpoints | +-- endpoints
| | +-- endpoint* [name] | | +-- endpoint* [name]
| | +-- name? string | | +-- name? string
| | +-- (transport) | | +---u netconf-client-initiate-stack-grouping
| | +--:(ssh) {ssh-initiate}?
| | | +-- ssh
| | | +-- tcp-client-parameters
| | | | +---u tcpc:tcp-client-grouping
| | | +-- ssh-client-parameters
| | | +---u sshc:ssh-client-grouping
| | +--:(tls) {tls-initiate}?
| | +-- tls
| | +-- tcp-client-parameters
| | | +---u tcpc:tcp-client-grouping
| | +-- tls-client-parameters
| | +---u tlsc:tls-client-grouping
| +-- connection-type | +-- connection-type
| | +-- (connection-type) | | +-- (connection-type)
| | +--:(persistent-connection) | | +--:(persistent-connection)
| | | +-- persistent! | | | +-- persistent!
| | +--:(periodic-connection) | | +--:(periodic-connection)
| | +-- periodic! | | +-- periodic!
| | +-- period? uint16 | | +-- period? uint16
| | +-- anchor-time? yang:date-and-time | | +-- anchor-time? yang:date-and-time
| | +-- idle-timeout? uint16 | | +-- idle-timeout? uint16
| +-- reconnect-strategy | +-- reconnect-strategy
| +-- start-with? enumeration | +-- start-with? enumeration
| +-- max-attempts? uint8 | +-- max-attempts? uint8
+-- listen! {ssh-listen or tls-listen}? +-- listen! {ssh-listen or tls-listen}?
+-- idle-timeout? uint16 +-- idle-timeout? uint16
+-- endpoint* [name] +-- endpoint* [name]
+-- name? string +-- name? string
+-- (transport) +---u netconf-client-listen-stack-grouping
+--:(ssh) {ssh-listen}?
| +-- ssh
| +-- tcp-server-parameters
| | +---u tcps:tcp-server-grouping
| +-- ssh-client-parameters
| +---u sshc:ssh-client-grouping
+--:(tls) {tls-listen}?
+-- tls
+-- tcp-server-parameters
| +---u tcps:tcp-server-grouping
+-- tls-client-parameters
+---u tlsc:tls-client-grouping
3.2. Example Usage 3.2. Example Usage
The following example illustrates configuring a NETCONF client to The following example illustrates configuring a NETCONF client to
initiate connections, using both the SSH and TLS transport protocols, initiate connections, using both the SSH and TLS transport protocols,
as well as listening for call-home connections, again using both the as well as listening for call-home connections, again using both the
SSH and TLS transport protocols. SSH and TLS transport protocols.
This example is consistent with the examples presented in Section 2 This example is consistent with the examples presented in Section 2
of [I-D.ietf-netconf-trust-anchors] and Section 3.2 of of [I-D.ietf-netconf-trust-anchors] and Section 3.2 of
[I-D.ietf-netconf-keystore]. [I-D.ietf-netconf-keystore].
=========== NOTE: '\' line wrapping per BCP XX (RFC XXXX) =========== ========== NOTE: '\' line wrapping per BCP XXX (RFC XXXX) ===========
<netconf-client <netconf-client
xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-client"> xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-client">
<!-- NETCONF servers to initiate connections to --> <!-- NETCONF servers to initiate connections to -->
<initiate> <initiate>
<netconf-server> <netconf-server>
<name>corp-fw1</name> <name>corp-fw1</name>
<endpoints> <endpoints>
<endpoint> <endpoint>
skipping to change at page 6, line 38 skipping to change at page 6, line 49
<username>foobar</username> <username>foobar</username>
<public-key> <public-key>
<local-definition> <local-definition>
<algorithm>rsa2048</algorithm> <algorithm>rsa2048</algorithm>
<private-key>base64encodedvalue==</private-key> <private-key>base64encodedvalue==</private-key>
<public-key>base64encodedvalue==</public-key> <public-key>base64encodedvalue==</public-key>
</local-definition> </local-definition>
</public-key> </public-key>
</client-identity> </client-identity>
<server-authentication> <server-authentication>
<ca-certs>explicitly-trusted-server-ca-certs</ca-cer\ <ca-certs>
ts> <truststore-reference>explicitly-trusted-server-ca\
<server-certs>explicitly-trusted-server-certs</serve\ -certs</truststore-reference>
r-certs> </ca-certs>
<server-certs>
<truststore-reference>explicitly-trusted-server-ce\
rts</truststore-reference>
</server-certs>
</server-authentication> </server-authentication>
<keepalives> <keepalives>
<max-wait>30</max-wait> <max-wait>30</max-wait>
<max-attempts>3</max-attempts> <max-attempts>3</max-attempts>
</keepalives> </keepalives>
</ssh-client-parameters> </ssh-client-parameters>
<netconf-client-parameters>
<!-- nothing to configure -->
</netconf-client-parameters>
</ssh> </ssh>
</endpoint> </endpoint>
<endpoint> <endpoint>
<name>corp-fw2.example.com</name> <name>corp-fw2.example.com</name>
<ssh> <tls>
<tcp-client-parameters> <tcp-client-parameters>
<remote-address>corp-fw2.example.com</remote-address> <remote-address>corp-fw2.example.com</remote-address>
<keepalives> <keepalives>
<idle-time>15</idle-time> <idle-time>15</idle-time>
<max-probes>3</max-probes> <max-probes>3</max-probes>
<probe-interval>30</probe-interval> <probe-interval>30</probe-interval>
</keepalives> </keepalives>
</tcp-client-parameters> </tcp-client-parameters>
<ssh-client-parameters> <tls-client-parameters>
<client-identity> <client-identity>
<username>foobar</username> <local-definition>
<public-key> <algorithm>rsa2048</algorithm>
<local-definition> <private-key>base64encodedvalue==</private-key>
<algorithm>rsa2048</algorithm> <public-key>base64encodedvalue==</public-key>
<private-key>base64encodedvalue==</private-key> <cert>base64encodedvalue==</cert>
<public-key>base64encodedvalue==</public-key> </local-definition>
</local-definition>
</public-key>
</client-identity> </client-identity>
<server-authentication> <server-authentication>
<ca-certs>explicitly-trusted-server-ca-certs</ca-cer\ <ca-certs>
ts> <truststore-reference>explicitly-trusted-server-ca\
<server-certs>explicitly-trusted-server-certs</serve\ -certs</truststore-reference>
r-certs> </ca-certs>
<server-certs>
<truststore-reference>explicitly-trusted-server-ce\
rts</truststore-reference>
</server-certs>
</server-authentication> </server-authentication>
<keepalives> <keepalives>
<max-wait>30</max-wait> <max-wait>30</max-wait>
<max-attempts>3</max-attempts> <max-attempts>3</max-attempts>
</keepalives> </keepalives>
</ssh-client-parameters> </tls-client-parameters>
</ssh> <netconf-client-parameters>
<!-- nothing to configure -->
</netconf-client-parameters>
</tls>
</endpoint> </endpoint>
</endpoints> </endpoints>
<connection-type> <connection-type>
<persistent/> <persistent/>
</connection-type> </connection-type>
<reconnect-strategy> <reconnect-strategy>
<start-with>last-connected</start-with> <start-with>last-connected</start-with>
</reconnect-strategy> </reconnect-strategy>
</netconf-server> </netconf-server>
</initiate> </initiate>
skipping to change at page 8, line 18 skipping to change at page 8, line 42
<username>foobar</username> <username>foobar</username>
<public-key> <public-key>
<local-definition> <local-definition>
<algorithm>rsa2048</algorithm> <algorithm>rsa2048</algorithm>
<private-key>base64encodedvalue==</private-key> <private-key>base64encodedvalue==</private-key>
<public-key>base64encodedvalue==</public-key> <public-key>base64encodedvalue==</public-key>
</local-definition> </local-definition>
</public-key> </public-key>
</client-identity> </client-identity>
<server-authentication> <server-authentication>
<ca-certs>explicitly-trusted-server-ca-certs</ca-certs> <ca-certs>
<server-certs>explicitly-trusted-server-certs</server-ce\ <truststore-reference>explicitly-trusted-server-ca-cer\
rts> ts</truststore-reference>
<ssh-host-keys>explicitly-trusted-ssh-host-keys</ssh-hos\ </ca-certs>
t-keys> <server-certs>
<truststore-reference>explicitly-trusted-server-certs<\
/truststore-reference>
</server-certs>
<ssh-host-keys>
<truststore-reference>explicitly-trusted-ssh-host-keys\
</truststore-reference>
</ssh-host-keys>
</server-authentication> </server-authentication>
</ssh-client-parameters> </ssh-client-parameters>
<netconf-client-parameters>
<!-- nothing to configure -->
</netconf-client-parameters>
</ssh> </ssh>
</endpoint> </endpoint>
</listen> </listen>
</netconf-client> </netconf-client>
3.3. YANG Module 3.3. YANG Module
This YANG module has normative references to [RFC6242], [RFC6991], This YANG module has normative references to [RFC6242], [RFC6991],
[RFC7589], [RFC8071], [I-D.kwatsen-netconf-tcp-client-server], [RFC7589], [RFC8071], [I-D.kwatsen-netconf-tcp-client-server],
[I-D.ietf-netconf-ssh-client-server], and [I-D.ietf-netconf-ssh-client-server], and
[I-D.ietf-netconf-tls-client-server]. [I-D.ietf-netconf-tls-client-server].
<CODE BEGINS> file "ietf-netconf-client@2019-07-02.yang" <CODE BEGINS> file "ietf-netconf-client@2019-10-18.yang"
module ietf-netconf-client { module ietf-netconf-client {
yang-version 1.1; yang-version 1.1;
namespace "urn:ietf:params:xml:ns:yang:ietf-netconf-client"; namespace "urn:ietf:params:xml:ns:yang:ietf-netconf-client";
prefix ncc; prefix ncc;
import ietf-yang-types { import ietf-yang-types {
prefix yang; prefix yang;
reference reference
"RFC 6991: Common YANG Data Types"; "RFC 6991: Common YANG Data Types";
} }
skipping to change at page 9, line 14 skipping to change at page 9, line 48
"RFC AAAA: YANG Groupings for TCP Clients and TCP Servers"; "RFC AAAA: YANG Groupings for TCP Clients and TCP Servers";
} }
import ietf-tcp-server { import ietf-tcp-server {
prefix tcps; prefix tcps;
reference reference
"RFC AAAA: YANG Groupings for TCP Clients and TCP Servers"; "RFC AAAA: YANG Groupings for TCP Clients and TCP Servers";
} }
import ietf-ssh-client { import ietf-ssh-client {
prefix sshc; prefix sshc;
revision-date 2019-07-02; // stable grouping definitions revision-date 2019-10-18; // stable grouping definitions
reference reference
"RFC BBBB: YANG Groupings for SSH Clients and SSH Servers"; "RFC BBBB: YANG Groupings for SSH Clients and SSH Servers";
} }
import ietf-tls-client { import ietf-tls-client {
prefix tlsc; prefix tlsc;
revision-date 2019-07-02; // stable grouping definitions revision-date 2019-10-18; // stable grouping definitions
reference reference
"RFC CCCC: YANG Groupings for TLS Clients and TLS Servers"; "RFC CCCC: YANG Groupings for TLS Clients and TLS Servers";
} }
organization organization
"IETF NETCONF (Network Configuration) Working Group"; "IETF NETCONF (Network Configuration) Working Group";
contact contact
"WG Web: <http://datatracker.ietf.org/wg/netconf/> "WG Web: <http://datatracker.ietf.org/wg/netconf/>
WG List: <mailto:netconf@ietf.org> WG List: <mailto:netconf@ietf.org>
skipping to change at page 10, line 4 skipping to change at page 10, line 37
Redistribution and use in source and binary forms, with Redistribution and use in source and binary forms, with
or without modification, is permitted pursuant to, and or without modification, is permitted pursuant to, and
subject to the license terms contained in, the Simplified subject to the license terms contained in, the Simplified
BSD License set forth in Section 4.c of the IETF Trust's BSD License set forth in Section 4.c of the IETF Trust's
Legal Provisions Relating to IETF Documents Legal Provisions Relating to IETF Documents
(https://trustee.ietf.org/license-info). (https://trustee.ietf.org/license-info).
This version of this YANG module is part of RFC XXXX This version of this YANG module is part of RFC XXXX
(https://www.rfc-editor.org/info/rfcXXXX); see the RFC (https://www.rfc-editor.org/info/rfcXXXX); see the RFC
itself for full legal notices.; itself for full legal notices.;
The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL', The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL',
'SHALL NOT', 'SHOULD', 'SHOULD NOT', 'RECOMMENDED', 'SHALL NOT', 'SHOULD', 'SHOULD NOT', 'RECOMMENDED',
'NOT RECOMMENDED', 'MAY', and 'OPTIONAL' in this document 'NOT RECOMMENDED', 'MAY', and 'OPTIONAL' in this document
are to be interpreted as described in BCP 14 (RFC 2119) are to be interpreted as described in BCP 14 (RFC 2119)
(RFC 8174) when, and only when, they appear in all (RFC 8174) when, and only when, they appear in all
capitals, as shown here."; capitals, as shown here.";
revision 2019-07-02 { revision 2019-10-18 {
description description
"Initial version"; "Initial version";
reference reference
"RFC XXXX: NETCONF Client and Server Models"; "RFC XXXX: NETCONF Client and Server Models";
} }
// Features // Features
feature ssh-initiate { feature ssh-initiate {
description description
"The 'ssh-initiate' feature indicates that the NETCONF client "The 'ssh-initiate' feature indicates that the NETCONF client
supports initiating SSH connections to NETCONF servers."; supports initiating SSH connections to NETCONF servers.";
reference reference
"RFC 6242: "RFC 6242:
Using the NETCONF Protocol over Secure Shell (SSH)"; Using the NETCONF Protocol over Secure Shell (SSH)";
} }
skipping to change at page 11, line 4 skipping to change at page 11, line 38
server call-home SSH connections."; server call-home SSH connections.";
reference reference
"RFC 8071: NETCONF Call Home and RESTCONF Call Home"; "RFC 8071: NETCONF Call Home and RESTCONF Call Home";
} }
feature tls-listen { feature tls-listen {
description description
"The 'tls-listen' feature indicates that the NETCONF client "The 'tls-listen' feature indicates that the NETCONF client
supports opening a port to listen for incoming NETCONF supports opening a port to listen for incoming NETCONF
server call-home TLS connections."; server call-home TLS connections.";
reference reference
"RFC 8071: NETCONF Call Home and RESTCONF Call Home"; "RFC 8071: NETCONF Call Home and RESTCONF Call Home";
} }
// Groupings // Groupings
grouping netconf-client-grouping { grouping netconf-client-grouping {
description description
"Top-level grouping for NETCONF client configuration."; "A reusable grouping for configuring a NETCONF client
without any consideration for how underlying transport
sessions are established.
This grouping currently doesn't define any nodes.";
}
grouping netconf-client-initiate-stack-grouping {
description
"A reusable grouping for configuring a NETCONF client
'initiate' protocol stack for a single connection.";
choice transport {
mandatory true;
description
"Selects between available transports.";
case ssh {
if-feature "ssh-initiate";
container ssh {
description
"Specifies IP and SSH specific configuration
for the connection.";
container tcp-client-parameters {
description
"A wrapper around the TCP client parameters
to avoid name collisions.";
uses tcpc:tcp-client-grouping {
refine "remote-port" {
default "830";
description
"The NETCONF client will attempt to connect
to the IANA-assigned well-known port value
for 'netconf-ssh' (443) if no value is
specified.";
}
}
}
container ssh-client-parameters {
description
"A wrapper around the SSH client parameters to
avoid name collisions.";
uses sshc:ssh-client-grouping;
}
container netconf-client-parameters {
description
"A wrapper around the NETCONF client parameters
to avoid name collisions.";
uses ncc:netconf-client-grouping;
}
}
}
case tls {
if-feature "tls-initiate";
container tls {
description
"Specifies IP and TLS specific configuration
for the connection.";
container tcp-client-parameters {
description
"A wrapper around the TCP client parameters
to avoid name collisions.";
uses tcpc:tcp-client-grouping {
refine "remote-port" {
default "6513";
description
"The NETCONF client will attempt to connect
to the IANA-assigned well-known port value
for 'netconf-tls' (6513) if no value is
specified.";
}
}
}
container tls-client-parameters {
must "client-identity" {
description
"NETCONF/TLS clients MUST pass some
authentication credentials.";
}
description
"A wrapper around the TLS client parameters
to avoid name collisions.";
uses tlsc:tls-client-grouping;
}
container netconf-client-parameters {
description
"A wrapper around the NETCONF client parameters
to avoid name collisions.";
uses ncc:netconf-client-grouping;
}
}
}
}
} // netconf-client-initiate-stack-grouping
grouping netconf-client-listen-stack-grouping {
description
"A reusable grouping for configuring a NETCONF client
'listen' protocol stack for a single connection.";
choice transport {
mandatory true;
description
"Selects between available transports.";
case ssh {
if-feature "ssh-listen";
container ssh {
description
"SSH-specific listening configuration for inbound
connections.";
container tcp-server-parameters {
description
"A wrapper around the TCP server parameters
to avoid name collisions.";
uses tcps:tcp-server-grouping {
refine "local-port" {
default "4334";
description
"The NETCONF client will listen on the IANA-
assigned well-known port for 'netconf-ch-ssh'
(4334) if no value is specified.";
}
}
}
container ssh-client-parameters {
description
"A wrapper around the SSH client parameters
to avoid name collisions.";
uses sshc:ssh-client-grouping;
}
container netconf-client-parameters {
description
"A wrapper around the NETCONF client parameters
to avoid name collisions.";
uses ncc:netconf-client-grouping;
}
}
}
case tls {
if-feature "tls-listen";
container tls {
description
"TLS-specific listening configuration for inbound
connections.";
container tcp-server-parameters {
description
"A wrapper around the TCP server parameters
to avoid name collisions.";
uses tcps:tcp-server-grouping {
refine "local-port" {
default "4334";
description
"The NETCONF client will listen on the IANA-
assigned well-known port for 'netconf-ch-ssh'
(4334) if no value is specified.";
}
}
}
container tls-client-parameters {
must "client-identity" {
description
"NETCONF/TLS clients MUST pass some
authentication credentials.";
}
description
"A wrapper around the TLS client parameters
to avoid name collisions.";
uses tlsc:tls-client-grouping;
}
container netconf-client-parameters {
description
"A wrapper around the NETCONF client parameters
to avoid name collisions.";
uses ncc:netconf-client-grouping;
}
}
}
}
} // netconf-client-listen-stack-grouping
grouping netconf-client-app-grouping {
description
"A reusable grouping for configuring a NETCONF client
application that supports both 'initiate' and 'listen'
protocol stacks for a multiplicity of connections.";
container initiate { container initiate {
if-feature "ssh-initiate or tls-initiate"; if-feature "ssh-initiate or tls-initiate";
presence "Enables client to initiate TCP connections"; presence "Enables client to initiate TCP connections";
description description
"Configures client initiating underlying TCP connections."; "Configures client initiating underlying TCP connections.";
list netconf-server { list netconf-server {
key "name"; key "name";
min-elements 1; min-elements 1;
description description
"List of NETCONF servers the NETCONF client is to "List of NETCONF servers the NETCONF client is to
initiate connections to in parallel."; maintain simultaneous connections with.";
leaf name { leaf name {
type string; type string;
description description
"An arbitrary name for the NETCONF server."; "An arbitrary name for the NETCONF server.";
} }
container endpoints { container endpoints {
description description
"Container for the list of endpoints."; "Container for the list of endpoints.";
list endpoint { list endpoint {
key "name"; key "name";
skipping to change at page 11, line 47 skipping to change at page 16, line 20
description description
"A user-ordered list of endpoints that the NETCONF "A user-ordered list of endpoints that the NETCONF
client will attempt to connect to in the specified client will attempt to connect to in the specified
sequence. Defining more than one enables sequence. Defining more than one enables
high-availability."; high-availability.";
leaf name { leaf name {
type string; type string;
description description
"An arbitrary name for the endpoint."; "An arbitrary name for the endpoint.";
} }
choice transport { uses netconf-client-initiate-stack-grouping;
mandatory true;
description
"Selects between available transports.";
case ssh {
if-feature "ssh-initiate";
container ssh {
description
"Specifies IP and SSH specific configuration
for the connection.";
container tcp-client-parameters {
description
"A wrapper around the TCP client parameters
to avoid name collisions.";
uses tcpc:tcp-client-grouping {
refine "remote-port" {
default "830";
description
"The NETCONF client will attempt to connect
to the IANA-assigned well-known port value
for 'netconf-ssh' (443) if no value is
specified.";
}
}
}
container ssh-client-parameters {
description
"A wrapper around the SSH client parameters to
avoid name collisions.";
uses sshc:ssh-client-grouping;
}
}
}
case tls {
if-feature "tls-initiate";
container tls {
description
"Specifies IP and TLS specific configuration
for the connection.";
container tcp-client-parameters {
description
"A wrapper around the TCP client parameters
to avoid name collisions.";
uses tcpc:tcp-client-grouping {
refine "remote-port" {
default "6513";
description
"The NETCONF client will attempt to connect
to the IANA-assigned well-known port value
for 'netconf-tls' (6513) if no value is
specified.";
}
}
}
container tls-client-parameters {
must "client-identity" {
description
"NETCONF/TLS clients MUST pass some
authentication credentials.";
}
description
"A wrapper around the TLS client parameters
to avoid name collisions.";
uses tlsc:tls-client-grouping;
}
}
}
} // choice transport
} // list endpoint } // list endpoint
} // container endpoints } // container endpoints
container connection-type { container connection-type {
description description
"Indicates the NETCONF client's preference for how the "Indicates the NETCONF client's preference for how the
NETCONF connection is maintained."; NETCONF connection is maintained.";
choice connection-type { choice connection-type {
mandatory true; mandatory true;
description description
skipping to change at page 16, line 36 skipping to change at page 19, line 38
list endpoint { list endpoint {
key "name"; key "name";
min-elements 1; min-elements 1;
description description
"List of endpoints to listen for NETCONF connections."; "List of endpoints to listen for NETCONF connections.";
leaf name { leaf name {
type string; type string;
description description
"An arbitrary name for the NETCONF listen endpoint."; "An arbitrary name for the NETCONF listen endpoint.";
} }
choice transport { uses netconf-client-listen-stack-grouping;
mandatory true;
description
"Selects between available transports.";
case ssh {
if-feature "ssh-listen";
container ssh {
description
"SSH-specific listening configuration for inbound
connections.";
container tcp-server-parameters {
description
"A wrapper around the TCP server parameters
to avoid name collisions.";
uses tcps:tcp-server-grouping {
refine "local-port" {
default "4334";
description
"The NETCONF client will listen on the IANA-
assigned well-known port for 'netconf-ch-ssh'
(4334) if no value is specified.";
}
}
}
container ssh-client-parameters {
description
"A wrapper around the SSH client parameters
to avoid name collisions.";
uses sshc:ssh-client-grouping;
}
}
}
case tls {
if-feature "tls-listen";
container tls {
description
"TLS-specific listening configuration for inbound
connections.";
container tcp-server-parameters {
description
"A wrapper around the TCP server parameters
to avoid name collisions.";
uses tcps:tcp-server-grouping {
refine "local-port" {
default "4334";
description
"The NETCONF client will listen on the IANA-
assigned well-known port for 'netconf-ch-ssh'
(4334) if no value is specified.";
}
}
}
container tls-client-parameters {
must "client-identity" {
description
"NETCONF/TLS clients MUST pass some
authentication credentials.";
}
description
"A wrapper around the TLS client parameters
to avoid name collisions.";
uses tlsc:tls-client-grouping;
}
}
}
} // transport
} // endpoint } // endpoint
} // listen } // listen
} // netconf-client } // netconf-client-app-grouping
// Protocol accessible node, for servers that implement this // Protocol accessible node, for servers that implement this
// module. // module.
container netconf-client { container netconf-client {
uses netconf-client-grouping; uses netconf-client-app-grouping;
description description
"Top-level container for NETCONF client configuration."; "Top-level container for NETCONF client configuration.";
} }
} }
<CODE ENDS> <CODE ENDS>
4. The NETCONF Server Model 4. The NETCONF Server Model
The NETCONF server model presented in this section supports both The NETCONF server model presented in this section supports both
listening for connections as well as initiating call-home listening for connections as well as initiating call-home
skipping to change at page 18, line 45 skipping to change at page 20, line 30
This tree diagram only shows the nodes defined in this module; it This tree diagram only shows the nodes defined in this module; it
does show the nodes defined by "grouping" statements used by this does show the nodes defined by "grouping" statements used by this
module. module.
Please see Appendix A.2 for a tree diagram that illustrates what the Please see Appendix A.2 for a tree diagram that illustrates what the
module looks like with all the "grouping" statements expanded. module looks like with all the "grouping" statements expanded.
module: ietf-netconf-server module: ietf-netconf-server
+--rw netconf-server +--rw netconf-server
+---u netconf-server-grouping +---u netconf-server-app-grouping
grouping netconf-server-grouping grouping netconf-server-grouping
+-- client-identification
+-- cert-maps
+---u x509c2n:cert-to-name
grouping netconf-server-listen-stack-grouping
+-- (transport)
+--:(ssh) {ssh-listen}?
| +-- ssh
| +-- tcp-server-parameters
| | +---u tcps:tcp-server-grouping
| +-- ssh-server-parameters
| | +---u sshs:ssh-server-grouping
| +-- netconf-server-parameters
| +---u ncs:netconf-server-grouping
+--:(tls) {tls-listen}?
+-- tls
+-- tcp-server-parameters
| +---u tcps:tcp-server-grouping
+-- tls-server-parameters
| +---u tlss:tls-server-grouping
+-- netconf-server-parameters
+---u ncs:netconf-server-grouping
grouping netconf-server-callhome-stack-grouping
+-- (transport)
+--:(ssh) {ssh-call-home}?
| +-- ssh
| +-- tcp-client-parameters
| | +---u tcpc:tcp-client-grouping
| +-- ssh-server-parameters
| | +---u sshs:ssh-server-grouping
| +-- netconf-server-parameters
| +---u ncs:netconf-server-grouping
+--:(tls) {tls-call-home}?
+-- tls
+-- tcp-client-parameters
| +---u tcpc:tcp-client-grouping
+-- tls-server-parameters
| +---u tlss:tls-server-grouping
+-- netconf-server-parameters
+---u ncs:netconf-server-grouping
grouping netconf-server-app-grouping
+-- listen! {ssh-listen or tls-listen}? +-- listen! {ssh-listen or tls-listen}?
| +-- idle-timeout? uint16 | +-- idle-timeout? uint16
| +-- endpoint* [name] | +-- endpoint* [name]
| +-- name? string | +-- name? string
| +-- (transport) | +---u netconf-server-listen-stack-grouping
| +--:(ssh) {ssh-listen}?
| | +-- ssh
| | +-- tcp-server-parameters
| | | +---u tcps:tcp-server-grouping
| | +-- ssh-server-parameters
| | +---u sshs:ssh-server-grouping
| +--:(tls) {tls-listen}?
| +-- tls
| +-- tcp-server-parameters
| | +---u tcps:tcp-server-grouping
| +-- tls-server-parameters
| +---u tlss:tls-server-grouping
+-- call-home! {ssh-call-home or tls-call-home}? +-- call-home! {ssh-call-home or tls-call-home}?
+-- netconf-client* [name] +-- netconf-client* [name]
+-- name? string +-- name? string
+-- endpoints +-- endpoints
| +-- endpoint* [name] | +-- endpoint* [name]
| +-- name? string | +-- name? string
| +-- (transport) | +---u netconf-server-callhome-stack-grouping
| +--:(ssh) {ssh-call-home}?
| | +-- ssh
| | +-- tcp-client-parameters
| | | +---u tcpc:tcp-client-grouping
| | +-- ssh-server-parameters
| | +---u sshs:ssh-server-grouping
| +--:(tls) {tls-call-home}?
| +-- tls
| +-- tcp-client-parameters
| | +---u tcpc:tcp-client-grouping
| +-- tls-server-parameters
| +---u tlss:tls-server-grouping
+-- connection-type +-- connection-type
| +-- (connection-type) | +-- (connection-type)
| +--:(persistent-connection) | +--:(persistent-connection)
| | +-- persistent! | | +-- persistent!
| +--:(periodic-connection) | +--:(periodic-connection)
| +-- periodic! | +-- periodic!
| +-- period? uint16 | +-- period? uint16
| +-- anchor-time? yang:date-and-time | +-- anchor-time? yang:date-and-time
| +-- idle-timeout? uint16 | +-- idle-timeout? uint16
+-- reconnect-strategy +-- reconnect-strategy
skipping to change at page 20, line 16 skipping to change at page 22, line 16
The following example illustrates configuring a NETCONF server to The following example illustrates configuring a NETCONF server to
listen for NETCONF client connections using both the SSH and TLS listen for NETCONF client connections using both the SSH and TLS
transport protocols, as well as configuring call-home to two NETCONF transport protocols, as well as configuring call-home to two NETCONF
clients, one using SSH and the other using TLS. clients, one using SSH and the other using TLS.
This example is consistent with the examples presented in Section 2 This example is consistent with the examples presented in Section 2
of [I-D.ietf-netconf-trust-anchors] and Section 3.2 of of [I-D.ietf-netconf-trust-anchors] and Section 3.2 of
[I-D.ietf-netconf-keystore]. [I-D.ietf-netconf-keystore].
=========== NOTE: '\' line wrapping per BCP XX (RFC XXXX) =========== ========== NOTE: '\' line wrapping per BCP XXX (RFC XXXX) ===========
<netconf-server <netconf-server
xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-server" xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-server"
xmlns:x509c2n="urn:ietf:params:xml:ns:yang:ietf-x509-cert-to-name"> xmlns:x509c2n="urn:ietf:params:xml:ns:yang:ietf-x509-cert-to-name">
<!-- endpoints to listen for NETCONF connections on --> <!-- endpoints to listen for NETCONF connections on -->
<listen> <listen>
<endpoint> <!-- listening for SSH connections --> <endpoint> <!-- listening for SSH connections -->
<name>netconf/ssh</name> <name>netconf/ssh</name>
<ssh> <ssh>
skipping to change at page 20, line 50 skipping to change at page 22, line 50
</public-key> </public-key>
</host-key> </host-key>
</server-identity> </server-identity>
<client-authentication> <client-authentication>
<supported-authentication-methods> <supported-authentication-methods>
<publickey/> <publickey/>
</supported-authentication-methods> </supported-authentication-methods>
<client-auth-defined-elsewhere/> <client-auth-defined-elsewhere/>
</client-authentication> </client-authentication>
</ssh-server-parameters> </ssh-server-parameters>
<netconf-server-parameters>
<!-- nothing to configure -->
</netconf-server-parameters>
</ssh> </ssh>
</endpoint> </endpoint>
<endpoint> <!-- listening for TLS sessions --> <endpoint> <!-- listening for TLS sessions -->
<name>netconf/tls</name> <name>netconf/tls</name>
<tls> <tls>
<tcp-server-parameters> <tcp-server-parameters>
<local-address>192.0.2.7</local-address> <local-address>192.0.2.7</local-address>
</tcp-server-parameters> </tcp-server-parameters>
<tls-server-parameters> <tls-server-parameters>
<server-identity> <server-identity>
<local-definition> <local-definition>
<algorithm>rsa2048</algorithm> <algorithm>rsa2048</algorithm>
<private-key>base64encodedvalue==</private-key> <private-key>base64encodedvalue==</private-key>
<public-key>base64encodedvalue==</public-key> <public-key>base64encodedvalue==</public-key>
<cert>base64encodedvalue==</cert> <cert>base64encodedvalue==</cert>
</local-definition> </local-definition>
</server-identity> </server-identity>
<client-authentication> <client-authentication>
<required/> <required/>
<ca-certs>explicitly-trusted-client-ca-certs</ca-certs> <ca-certs>
<client-certs>explicitly-trusted-client-certs</client-ce\ <truststore-reference>explicitly-trusted-client-ca-cer\
rts> ts</truststore-reference>
</ca-certs>
<client-certs>
<truststore-reference>explicitly-trusted-client-certs<\
/truststore-reference>
</client-certs>
</client-authentication>
</tls-server-parameters>
<netconf-server-parameters>
<client-identification>
<cert-maps> <cert-maps>
<cert-to-name> <cert-to-name>
<id>1</id> <id>1</id>
<fingerprint>11:0A:05:11:00</fingerprint> <fingerprint>11:0A:05:11:00</fingerprint>
<map-type>x509c2n:san-any</map-type> <map-type>x509c2n:san-any</map-type>
</cert-to-name> </cert-to-name>
<cert-to-name> <cert-to-name>
<id>2</id> <id>2</id>
<fingerprint>B3:4F:A1:8C:54</fingerprint> <fingerprint>B3:4F:A1:8C:54</fingerprint>
<map-type>x509c2n:specified</map-type> <map-type>x509c2n:specified</map-type>
<name>scooby-doo</name> <name>scooby-doo</name>
</cert-to-name> </cert-to-name>
</cert-maps> </cert-maps>
</client-authentication> </client-identification>
</tls-server-parameters> </netconf-server-parameters>
</tls> </tls>
</endpoint> </endpoint>
</listen> </listen>
<!-- calling home to SSH and TLS based NETCONF clients --> <!-- calling home to SSH and TLS based NETCONF clients -->
<call-home> <call-home>
<netconf-client> <!-- SSH-based client --> <netconf-client> <!-- SSH-based client -->
<name>config-mgr</name> <name>config-mgr</name>
<endpoints> <endpoints>
<endpoint> <endpoint>
<name>east-data-center</name> <name>east-data-center</name>
<ssh> <ssh>
skipping to change at page 22, line 27 skipping to change at page 24, line 39
</public-key> </public-key>
</host-key> </host-key>
</server-identity> </server-identity>
<client-authentication> <client-authentication>
<supported-authentication-methods> <supported-authentication-methods>
<publickey/> <publickey/>
</supported-authentication-methods> </supported-authentication-methods>
<client-auth-defined-elsewhere/> <client-auth-defined-elsewhere/>
</client-authentication> </client-authentication>
</ssh-server-parameters> </ssh-server-parameters>
<netconf-server-parameters>
<!-- nothing to configure -->
</netconf-server-parameters>
</ssh> </ssh>
</endpoint> </endpoint>
<endpoint> <endpoint>
<name>west-data-center</name> <name>west-data-center</name>
<ssh> <ssh>
<tcp-client-parameters> <tcp-client-parameters>
<remote-address>west.config-mgr.example.com</remote-ad\ <remote-address>west.config-mgr.example.com</remote-ad\
dress> dress>
</tcp-client-parameters> </tcp-client-parameters>
<ssh-server-parameters> <ssh-server-parameters>
skipping to change at page 23, line 7 skipping to change at page 25, line 22
</public-key> </public-key>
</host-key> </host-key>
</server-identity> </server-identity>
<client-authentication> <client-authentication>
<supported-authentication-methods> <supported-authentication-methods>
<publickey/> <publickey/>
</supported-authentication-methods> </supported-authentication-methods>
<client-auth-defined-elsewhere/> <client-auth-defined-elsewhere/>
</client-authentication> </client-authentication>
</ssh-server-parameters> </ssh-server-parameters>
<netconf-server-parameters>
<!-- nothing to configure -->
</netconf-server-parameters>
</ssh> </ssh>
</endpoint> </endpoint>
</endpoints> </endpoints>
<connection-type> <connection-type>
<periodic> <periodic>
<idle-timeout>300</idle-timeout> <idle-timeout>300</idle-timeout>
<period>60</period> <period>60</period>
</periodic> </periodic>
</connection-type> </connection-type>
<reconnect-strategy> <reconnect-strategy>
skipping to change at page 23, line 47 skipping to change at page 26, line 18
<server-identity> <server-identity>
<local-definition> <local-definition>
<algorithm>rsa2048</algorithm> <algorithm>rsa2048</algorithm>
<private-key>base64encodedvalue==</private-key> <private-key>base64encodedvalue==</private-key>
<public-key>base64encodedvalue==</public-key> <public-key>base64encodedvalue==</public-key>
<cert>base64encodedvalue==</cert> <cert>base64encodedvalue==</cert>
</local-definition> </local-definition>
</server-identity> </server-identity>
<client-authentication> <client-authentication>
<required/> <required/>
<ca-certs>explicitly-trusted-client-ca-certs</ca-cer\ <ca-certs>
ts> <truststore-reference>explicitly-trusted-client-ca\
<client-certs>explicitly-trusted-client-certs</clien\ -certs</truststore-reference>
t-certs> </ca-certs>
<client-certs>
<truststore-reference>explicitly-trusted-client-ce\
rts</truststore-reference>
</client-certs>
</client-authentication>
<keepalives>
<max-wait>30</max-wait>
<max-attempts>3</max-attempts>
</keepalives>
</tls-server-parameters>
<netconf-server-parameters>
<client-identification>
<cert-maps> <cert-maps>
<cert-to-name> <cert-to-name>
<id>1</id> <id>1</id>
<fingerprint>11:0A:05:11:00</fingerprint> <fingerprint>11:0A:05:11:00</fingerprint>
<map-type>x509c2n:san-any</map-type> <map-type>x509c2n:san-any</map-type>
</cert-to-name> </cert-to-name>
<cert-to-name> <cert-to-name>
<id>2</id> <id>2</id>
<fingerprint>B3:4F:A1:8C:54</fingerprint> <fingerprint>B3:4F:A1:8C:54</fingerprint>
<map-type>x509c2n:specified</map-type> <map-type>x509c2n:specified</map-type>
<name>scooby-doo</name> <name>scooby-doo</name>
</cert-to-name> </cert-to-name>
</cert-maps> </cert-maps>
</client-authentication> </client-identification>
<keepalives> </netconf-server-parameters>
<max-wait>30</max-wait>
<max-attempts>3</max-attempts>
</keepalives>
</tls-server-parameters>
</tls> </tls>
</endpoint> </endpoint>
<endpoint> <endpoint>
<name>west-data-center</name> <name>west-data-center</name>
<tls> <tls>
<tcp-client-parameters> <tcp-client-parameters>
<remote-address>west.analytics.example.com</remote-add\ <remote-address>west.analytics.example.com</remote-add\
ress> ress>
<keepalives> <keepalives>
<idle-time>15</idle-time> <idle-time>15</idle-time>
skipping to change at page 24, line 47 skipping to change at page 27, line 25
<server-identity> <server-identity>
<local-definition> <local-definition>
<algorithm>rsa2048</algorithm> <algorithm>rsa2048</algorithm>
<private-key>base64encodedvalue==</private-key> <private-key>base64encodedvalue==</private-key>
<public-key>base64encodedvalue==</public-key> <public-key>base64encodedvalue==</public-key>
<cert>base64encodedvalue==</cert> <cert>base64encodedvalue==</cert>
</local-definition> </local-definition>
</server-identity> </server-identity>
<client-authentication> <client-authentication>
<required/> <required/>
<ca-certs>explicitly-trusted-client-ca-certs</ca-cer\ <ca-certs>
ts> <truststore-reference>explicitly-trusted-client-ca\
<client-certs>explicitly-trusted-client-certs</clien\ -certs</truststore-reference>
t-certs> </ca-certs>
<client-certs>
<truststore-reference>explicitly-trusted-client-ce\
rts</truststore-reference>
</client-certs>
</client-authentication>
<keepalives>
<max-wait>30</max-wait>
<max-attempts>3</max-attempts>
</keepalives>
</tls-server-parameters>
<netconf-server-parameters>
<client-identification>
<cert-maps> <cert-maps>
<cert-to-name> <cert-to-name>
<id>1</id> <id>1</id>
<fingerprint>11:0A:05:11:00</fingerprint> <fingerprint>11:0A:05:11:00</fingerprint>
<map-type>x509c2n:san-any</map-type> <map-type>x509c2n:san-any</map-type>
</cert-to-name> </cert-to-name>
<cert-to-name> <cert-to-name>
<id>2</id> <id>2</id>
<fingerprint>B3:4F:A1:8C:54</fingerprint> <fingerprint>B3:4F:A1:8C:54</fingerprint>
<map-type>x509c2n:specified</map-type> <map-type>x509c2n:specified</map-type>
skipping to change at page 25, line 14 skipping to change at page 28, line 4
<cert-to-name> <cert-to-name>
<id>1</id> <id>1</id>
<fingerprint>11:0A:05:11:00</fingerprint> <fingerprint>11:0A:05:11:00</fingerprint>
<map-type>x509c2n:san-any</map-type> <map-type>x509c2n:san-any</map-type>
</cert-to-name> </cert-to-name>
<cert-to-name> <cert-to-name>
<id>2</id> <id>2</id>
<fingerprint>B3:4F:A1:8C:54</fingerprint> <fingerprint>B3:4F:A1:8C:54</fingerprint>
<map-type>x509c2n:specified</map-type> <map-type>x509c2n:specified</map-type>
<name>scooby-doo</name> <name>scooby-doo</name>
</cert-to-name> </cert-to-name>
</cert-maps> </cert-maps>
</client-authentication> </client-identification>
<keepalives> </netconf-server-parameters>
<max-wait>30</max-wait>
<max-attempts>3</max-attempts>
</keepalives>
</tls-server-parameters>
</tls> </tls>
</endpoint> </endpoint>
</endpoints> </endpoints>
<connection-type> <connection-type>
<persistent/> <persistent/>
</connection-type> </connection-type>
<reconnect-strategy> <reconnect-strategy>
<start-with>first-listed</start-with> <start-with>first-listed</start-with>
<max-attempts>3</max-attempts> <max-attempts>3</max-attempts>
</reconnect-strategy> </reconnect-strategy>
skipping to change at page 25, line 44 skipping to change at page 28, line 31
</netconf-server> </netconf-server>
4.3. YANG Module 4.3. YANG Module
This YANG module has normative references to [RFC6242], [RFC6991], This YANG module has normative references to [RFC6242], [RFC6991],
[RFC7407], [RFC7589], [RFC8071], [RFC7407], [RFC7589], [RFC8071],
[I-D.kwatsen-netconf-tcp-client-server], [I-D.kwatsen-netconf-tcp-client-server],
[I-D.ietf-netconf-ssh-client-server], and [I-D.ietf-netconf-ssh-client-server], and
[I-D.ietf-netconf-tls-client-server]. [I-D.ietf-netconf-tls-client-server].
<CODE BEGINS> file "ietf-netconf-server@2019-07-02.yang" <CODE BEGINS> file "ietf-netconf-server@2019-10-18.yang"
module ietf-netconf-server { module ietf-netconf-server {
yang-version 1.1; yang-version 1.1;
namespace "urn:ietf:params:xml:ns:yang:ietf-netconf-server"; namespace "urn:ietf:params:xml:ns:yang:ietf-netconf-server";
prefix ncs; prefix ncs;
import ietf-yang-types { import ietf-yang-types {
prefix yang; prefix yang;
reference reference
"RFC 6991: Common YANG Data Types"; "RFC 6991: Common YANG Data Types";
} }
skipping to change at page 26, line 28 skipping to change at page 29, line 15
} }
import ietf-tcp-server { import ietf-tcp-server {
prefix tcps; prefix tcps;
reference reference
"RFC AAAA: YANG Groupings for TCP Clients and TCP Servers"; "RFC AAAA: YANG Groupings for TCP Clients and TCP Servers";
} }
import ietf-ssh-server { import ietf-ssh-server {
prefix sshs; prefix sshs;
revision-date 2019-07-02; // stable grouping definitions revision-date 2019-10-18; // stable grouping definitions
reference reference
"RFC BBBB: YANG Groupings for SSH Clients and SSH Servers"; "RFC BBBB: YANG Groupings for SSH Clients and SSH Servers";
} }
import ietf-tls-server { import ietf-tls-server {
prefix tlss; prefix tlss;
revision-date 2019-07-02; // stable grouping definitions revision-date 2019-10-18; // stable grouping definitions
reference reference
"RFC CCCC: YANG Groupings for TLS Clients and TLS Servers"; "RFC CCCC: YANG Groupings for TLS Clients and TLS Servers";
} }
organization organization
"IETF NETCONF (Network Configuration) Working Group"; "IETF NETCONF (Network Configuration) Working Group";
contact contact
"WG Web: <http://datatracker.ietf.org/wg/netconf/> "WG Web: <http://datatracker.ietf.org/wg/netconf/>
WG List: <mailto:netconf@ietf.org> WG List: <mailto:netconf@ietf.org>
skipping to change at page 27, line 27 skipping to change at page 30, line 14
(https://www.rfc-editor.org/info/rfcXXXX); see the RFC (https://www.rfc-editor.org/info/rfcXXXX); see the RFC
itself for full legal notices.; itself for full legal notices.;
The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL', The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL',
'SHALL NOT', 'SHOULD', 'SHOULD NOT', 'RECOMMENDED', 'SHALL NOT', 'SHOULD', 'SHOULD NOT', 'RECOMMENDED',
'NOT RECOMMENDED', 'MAY', and 'OPTIONAL' in this document 'NOT RECOMMENDED', 'MAY', and 'OPTIONAL' in this document
are to be interpreted as described in BCP 14 (RFC 2119) are to be interpreted as described in BCP 14 (RFC 2119)
(RFC 8174) when, and only when, they appear in all (RFC 8174) when, and only when, they appear in all
capitals, as shown here."; capitals, as shown here.";
revision 2019-07-02 { revision 2019-10-18 {
description description
"Initial version"; "Initial version";
reference reference
"RFC XXXX: NETCONF Client and Server Models"; "RFC XXXX: NETCONF Client and Server Models";
} }
// Features // Features
feature ssh-listen { feature ssh-listen {
description description
skipping to change at page 28, line 31 skipping to change at page 31, line 17
server supports initiating a NETCONF over TLS call server supports initiating a NETCONF over TLS call
home connection to NETCONF clients."; home connection to NETCONF clients.";
reference reference
"RFC 8071: NETCONF Call Home and RESTCONF Call Home"; "RFC 8071: NETCONF Call Home and RESTCONF Call Home";
} }
// Groupings // Groupings
grouping netconf-server-grouping { grouping netconf-server-grouping {
description description
"Top-level grouping for NETCONF server configuration."; "A reusable grouping for configuring a NETCONF server
without any consideration for how underlying transport
sessions are established.
Note that this grouping uses a fairly typical descendent
node name such that a stack of 'uses' statements will
have name conflicts. It is intended that the consuming
data model will resolve the issue by wrapping the 'uses'
statement in a container called, e.g.,
'netconf-server-parameters'. This model purposely does
not do this itself so as to provide maximum flexibility
to consuming models.";
container client-identification {
description
"Specifies a mapping through which clients MAY be identified
(i.e., the NETCONF username) from a supplied certificate.
Note that a client MAY alternatively be identified via an
HTTP-level authentication schema. This configuration does
not necessitate clients send a certificate (that can be
controlled via the ietf-netconf-server module).";
container cert-maps {
when "../../../../tls";
uses x509c2n:cert-to-name;
description
"The cert-maps container is used by TLS-based NETCONF
servers (even if the TLS sessions are terminated
externally) to map the NETCONF client's presented
X.509 certificate to a NETCONF username. If no
matching and valid cert-to-name list entry can be
found, then the NETCONF server MUST close the
connection, and MUST NOT accept NETCONF messages
over it.";
reference
"RFC 7407: A YANG Data Model for SNMP Configuration.";
}
}
}
grouping netconf-server-listen-stack-grouping {
description
"A reusable grouping for configuring a NETCONF server
'listen' protocol stack for a single connection.";
choice transport {
mandatory true;
description
"Selects between available transports.";
case ssh {
if-feature "ssh-listen";
container ssh {
description
"SSH-specific listening configuration for inbound
connections.";
container tcp-server-parameters {
description
"A wrapper around the TCP client parameters
to avoid name collisions.";
uses tcps:tcp-server-grouping {
refine "local-port" {
default "830";
description
"The NETCONF server will listen on the
IANA-assigned well-known port value
for 'netconf-ssh' (830) if no value
is specified.";
}
}
}
container ssh-server-parameters {
description
"A wrapper around the SSH server parameters
to avoid name collisions.";
uses sshs:ssh-server-grouping;
}
container netconf-server-parameters {
description
"A wrapper around the NETCONF server parameters
to avoid name collisions.";
uses ncs:netconf-server-grouping;
}
}
}
case tls {
if-feature "tls-listen";
container tls {
description
"TLS-specific listening configuration for inbound
connections.";
container tcp-server-parameters {
description
"A wrapper around the TCP client parameters
to avoid name collisions.";
uses tcps:tcp-server-grouping {
refine "local-port" {
default "6513";
description
"The NETCONF server will listen on the
IANA-assigned well-known port value
for 'netconf-tls' (6513) if no value
is specified.";
}
}
}
container tls-server-parameters {
description
"A wrapper around the TLS server parameters to
avoid name collisions.";
uses tlss:tls-server-grouping {
refine "client-authentication" {
//must 'ca-certs or client-certs';
description
"NETCONF/TLS servers MUST validate client
certificates.";
}
}
}
container netconf-server-parameters {
description
"A wrapper around the NETCONF server parameters
to avoid name collisions.";
uses ncs:netconf-server-grouping;
}
}
}
}
}
grouping netconf-server-callhome-stack-grouping {
description
"A reusable grouping for configuring a NETCONF server
'call-home' protocol stack, for a single connection.";
choice transport {
mandatory true;
description
"Selects between available transports.";
case ssh {
if-feature "ssh-call-home";
container ssh {
description
"Specifies SSH-specific call-home transport
configuration.";
container tcp-client-parameters {
description
"A wrapper around the TCP client parameters
to avoid name collisions.";
uses tcpc:tcp-client-grouping {
refine "remote-port" {
default "4334";
description
"The NETCONF server will attempt to connect
to the IANA-assigned well-known port for
'netconf-ch-tls' (4334) if no value is
specified.";
}
}
}
container ssh-server-parameters {
description
"A wrapper around the SSH server parameters
to avoid name collisions.";
uses sshs:ssh-server-grouping;
}
container netconf-server-parameters {
description
"A wrapper around the NETCONF server parameters
to avoid name collisions.";
uses ncs:netconf-server-grouping;
}
}
}
case tls {
if-feature "tls-call-home";
container tls {
description
"Specifies TLS-specific call-home transport
configuration.";
container tcp-client-parameters {
description
"A wrapper around the TCP client parameters
to avoid name collisions.";
uses tcpc:tcp-client-grouping {
refine "remote-port" {
default "4335";
description
"The NETCONF server will attempt to connect
to the IANA-assigned well-known port for
'netconf-ch-tls' (4335) if no value is
specified.";
}
}
}
container tls-server-parameters {
description
"A wrapper around the TLS server parameters
to avoid name collisions.";
uses tlss:tls-server-grouping {
refine "client-authentication" {
/* commented out since auth could be external
must 'ca-certs or client-certs';
*/
description
"NETCONF/TLS servers MUST validate client
certificates.";
}
augment "client-authentication" {
description
"Augments in the cert-to-name structure.";
container cert-maps {
uses x509c2n:cert-to-name;
description
"The cert-maps container is used by a
TLS-based NETCONF server to map the
NETCONF client's presented X.509
certificate to a NETCONF username. If
no matching and valid cert-to-name list
entry can be found, then the NETCONF
server MUST close the connection, and
MUST NOT accept NETCONF messages over
it.";
reference
"RFC WWWW: NETCONF over TLS, Section 7";
}
}
}
}
container netconf-server-parameters {
description
"A wrapper around the NETCONF server parameters
to avoid name collisions.";
uses ncs:netconf-server-grouping;
}
}
}
}
}
grouping netconf-server-app-grouping {
description
"A reusable grouping for configuring a NETCONF server
application that supports both 'listen' and 'call-home'
protocol stacks for a multiplicity of connections.";
container listen { container listen {
if-feature "ssh-listen or tls-listen"; if-feature "ssh-listen or tls-listen";
presence presence
"Enables server to listen for NETCONF client connections."; "Enables server to listen for NETCONF client connections.";
description description
"Configures listen behavior"; "Configures listen behavior";
leaf idle-timeout { leaf idle-timeout {
type uint16; type uint16;
units "seconds"; units "seconds";
default 3600; // one hour default 3600; // one hour
skipping to change at page 29, line 13 skipping to change at page 36, line 47
list endpoint { list endpoint {
key "name"; key "name";
min-elements 1; min-elements 1;
description description
"List of endpoints to listen for NETCONF connections."; "List of endpoints to listen for NETCONF connections.";
leaf name { leaf name {
type string; type string;
description description
"An arbitrary name for the NETCONF listen endpoint."; "An arbitrary name for the NETCONF listen endpoint.";
} }
choice transport { uses netconf-server-listen-stack-grouping;
mandatory true;
description
"Selects between available transports.";
case ssh {
if-feature "ssh-listen";
container ssh {
description
"SSH-specific listening configuration for inbound
connections.";
container tcp-server-parameters {
description
"A wrapper around the TCP client parameters
to avoid name collisions.";
uses tcps:tcp-server-grouping {
refine "local-port" {
default "830";
description
"The NETCONF server will listen on the
IANA-assigned well-known port value
for 'netconf-ssh' (830) if no value
is specified.";
}
}
}
container ssh-server-parameters {
description
"A wrapper around the SSH server parameters
to avoid name collisions.";
uses sshs:ssh-server-grouping;
}
}
}
case tls {
if-feature "tls-listen";
container tls {
description
"TLS-specific listening configuration for inbound
connections.";
container tcp-server-parameters {
description
"A wrapper around the TCP client parameters
to avoid name collisions.";
uses tcps:tcp-server-grouping {
refine "local-port" {
default "6513";
description
"The NETCONF server will listen on the
IANA-assigned well-known port value
for 'netconf-tls' (6513) if no value
is specified.";
}
}
}
container tls-server-parameters {
description
"A wrapper around the TLS server parameters to
avoid name collisions.";
uses tlss:tls-server-grouping {
refine "client-authentication" {
//must 'ca-certs or client-certs';
description
"NETCONF/TLS servers MUST validate client
certificates.";
}
augment "client-authentication" {
description
"Augments in the cert-to-name structure.";
container cert-maps {
uses x509c2n:cert-to-name;
description
"The cert-maps container is used by a TLS-
based NETCONF server to map the NETCONF
client's presented X.509 certificate to
a NETCONF username. If no matching and
valid cert-to-name list entry can be found,
then the NETCONF server MUST close the
connection, and MUST NOT accept NETCONF
messages over it.";
reference
"RFC WWWW: NETCONF over TLS, Section 7";
}
}
}
}
}
}
}
} }
} }
container call-home { container call-home {
if-feature "ssh-call-home or tls-call-home"; if-feature "ssh-call-home or tls-call-home";
presence presence
"Enables the NETCONF server to initiate the underlying "Enables the NETCONF server to initiate the underlying
transport connection to NETCONF clients."; transport connection to NETCONF clients.";
description "Configures call home behavior."; description "Configures call home behavior.";
list netconf-client { list netconf-client {
key "name"; key "name";
min-elements 1; min-elements 1;
description description
"List of NETCONF clients the NETCONF server is to "List of NETCONF clients the NETCONF server is to
initiate call-home connections to in parallel."; maintain simultaneous call-home connections with.";
leaf name { leaf name {
type string; type string;
description description
"An arbitrary name for the remote NETCONF client."; "An arbitrary name for the remote NETCONF client.";
} }
container endpoints { container endpoints {
description description
"Container for the list of endpoints."; "Container for the list of endpoints.";
list endpoint { list endpoint {
key "name"; key "name";
skipping to change at page 31, line 41 skipping to change at page 37, line 35
ordered-by user; ordered-by user;
description description
"A non-empty user-ordered list of endpoints for this "A non-empty user-ordered list of endpoints for this
NETCONF server to try to connect to in sequence. NETCONF server to try to connect to in sequence.
Defining more than one enables high-availability."; Defining more than one enables high-availability.";
leaf name { leaf name {
type string; type string;
description description
"An arbitrary name for this endpoint."; "An arbitrary name for this endpoint.";
} }
choice transport { uses netconf-server-callhome-stack-grouping;
mandatory true; }
description }
"Selects between available transports.";
case ssh {
if-feature "ssh-call-home";
container ssh {
description
"Specifies SSH-specific call-home transport
configuration.";
container tcp-client-parameters {
description
"A wrapper around the TCP client parameters
to avoid name collisions.";
uses tcpc:tcp-client-grouping {
refine "remote-port" {
default "4334";
description
"The NETCONF server will attempt to connect
to the IANA-assigned well-known port for
'netconf-ch-tls' (4334) if no value is
specified.";
}
}
}
container ssh-server-parameters {
description
"A wrapper around the SSH server parameters
to avoid name collisions.";
uses sshs:ssh-server-grouping;
}
}
}
case tls {
if-feature "tls-call-home";
container tls {
description
"Specifies TLS-specific call-home transport
configuration.";
container tcp-client-parameters {
description
"A wrapper around the TCP client parameters
to avoid name collisions.";
uses tcpc:tcp-client-grouping {
refine "remote-port" {
default "4335";
description
"The NETCONF server will attempt to connect
to the IANA-assigned well-known port for
'netconf-ch-tls' (4335) if no value is
specified.";
}
}
}
container tls-server-parameters {
description
"A wrapper around the TLS server parameters
to avoid name collisions.";
uses tlss:tls-server-grouping {
refine "client-authentication" {
/* commented out since auth could be external
must 'ca-certs or client-certs';
*/
description
"NETCONF/TLS servers MUST validate client
certificates.";
}
augment "client-authentication" {
description
"Augments in the cert-to-name structure.";
container cert-maps {
uses x509c2n:cert-to-name;
description
"The cert-maps container is used by a
TLS-based NETCONF server to map the
NETCONF client's presented X.509
certificate to a NETCONF username. If
no matching and valid cert-to-name list
entry can be found, then the NETCONF
server MUST close the connection, and
MUST NOT accept NETCONF messages over
it.";
reference
"RFC WWWW: NETCONF over TLS, Section 7";
}
}
}
}
}
} // tls
} // choice
} // endpoint
} // endpoints
container connection-type { container connection-type {
description description
"Indicates the NETCONF server's preference for how the "Indicates the NETCONF server's preference for how the
NETCONF connection is maintained."; NETCONF connection is maintained.";
choice connection-type { choice connection-type {
mandatory true; mandatory true;
description description
"Selects between available connection types."; "Selects between available connection types.";
case persistent-connection { case persistent-connection {
container persistent { container persistent {
skipping to change at page 34, line 10 skipping to change at page 38, line 11
to be maintained."; to be maintained.";
description description
"Maintain a persistent connection to the NETCONF "Maintain a persistent connection to the NETCONF
client. If the connection goes down, immediately client. If the connection goes down, immediately
start trying to reconnect to the NETCONF client, start trying to reconnect to the NETCONF client,
using the reconnection strategy. using the reconnection strategy.
This connection type minimizes any NETCONF client This connection type minimizes any NETCONF client
to NETCONF server data-transfer delay, albeit at to NETCONF server data-transfer delay, albeit at
the expense of holding resources longer."; the expense of holding resources longer.";
} // container persistent }
} // case persistent-connection }
case periodic-connection { case periodic-connection {
container periodic { container periodic {
presence "Indicates that a periodic connection is presence "Indicates that a periodic connection is
to be maintained."; to be maintained.";
description description
"Periodically connect to the NETCONF client. "Periodically connect to the NETCONF client.
This connection type increases resource This connection type increases resource
utilization, albeit with increased delay in utilization, albeit with increased delay in
NETCONF client to NETCONF client interactions. NETCONF client to NETCONF client interactions.
skipping to change at page 35, line 20 skipping to change at page 39, line 21
units "seconds"; units "seconds";
default 120; // two minutes default 120; // two minutes
description description
"Specifies the maximum number of seconds that "Specifies the maximum number of seconds that
a NETCONF session may remain idle. A NETCONF a NETCONF session may remain idle. A NETCONF
session will be dropped if it is idle for an session will be dropped if it is idle for an
interval longer than this number of seconds. interval longer than this number of seconds.
If set to zero, then the server will never If set to zero, then the server will never
drop a session because it is idle."; drop a session because it is idle.";
} }
} // container periodic }
} // case periodic-connection } // case periodic-connection
} // choice connection-type } // choice connection-type
} // container connection-type } // container connection-type
container reconnect-strategy { container reconnect-strategy {
description description
"The reconnection strategy directs how a NETCONF server "The reconnection strategy directs how a NETCONF server
reconnects to a NETCONF client, after discovering its reconnects to a NETCONF client, after discovering its
connection to the client has dropped, even if due to a connection to the client has dropped, even if due to a
reboot. The NETCONF server starts with the specified reboot. The NETCONF server starts with the specified
endpoint and tries to connect to it max-attempts times endpoint and tries to connect to it max-attempts times
skipping to change at page 36, line 26 skipping to change at page 40, line 27
} }
default "3"; default "3";
description description
"Specifies the number times the NETCONF server tries "Specifies the number times the NETCONF server tries
to connect to a specific endpoint before moving on to connect to a specific endpoint before moving on
to the next endpoint in the list (round robin)."; to the next endpoint in the list (round robin).";
} }
} // container reconnect-strategy } // container reconnect-strategy
} // list netconf-client } // list netconf-client
} // container call-home } // container call-home
} // grouping netconf-server-grouping } // grouping netconf-server-app-grouping
// Protocol accessible node, for servers that implement this // Protocol accessible node, for servers that implement this
// module. // module.
container netconf-server { container netconf-server {
uses netconf-server-grouping; uses netconf-server-app-grouping;
description description
"Top-level container for NETCONF server configuration."; "Top-level container for NETCONF server configuration.";
} }
} }
<CODE ENDS> <CODE ENDS>
5. Security Considerations 5. Security Considerations
The YANG module defined in this document uses groupings defined in The YANG module defined in this document uses groupings defined in
[I-D.kwatsen-netconf-tcp-client-server], [I-D.kwatsen-netconf-tcp-client-server],
[I-D.ietf-netconf-ssh-client-server], and [I-D.ietf-netconf-ssh-client-server], and
[I-D.ietf-netconf-tls-client-server]. Please see the Security [I-D.ietf-netconf-tls-client-server]. Please see the Security
Considerations section in those documents for concerns related those Considerations section in those documents for concerns related those
groupings. groupings.
skipping to change at page 38, line 35 skipping to change at page 42, line 35
namespace: urn:ietf:params:xml:ns:yang:ietf-netconf-server namespace: urn:ietf:params:xml:ns:yang:ietf-netconf-server
prefix: ncs prefix: ncs
reference: RFC XXXX reference: RFC XXXX
7. References 7. References
7.1. Normative References 7.1. Normative References
[I-D.ietf-netconf-keystore] [I-D.ietf-netconf-keystore]
Watsen, K., "A YANG Data Model for a Keystore", draft- Watsen, K., "A YANG Data Model for a Keystore", draft-
ietf-netconf-keystore-11 (work in progress), June 2019. ietf-netconf-keystore-12 (work in progress), July 2019.
[I-D.ietf-netconf-ssh-client-server] [I-D.ietf-netconf-ssh-client-server]
Watsen, K., Wu, G., and L. Xia, "YANG Groupings for SSH Watsen, K., Wu, G., and L. Xia, "YANG Groupings for SSH
Clients and SSH Servers", draft-ietf-netconf-ssh-client- Clients and SSH Servers", draft-ietf-netconf-ssh-client-
server-14 (work in progress), June 2019. server-14 (work in progress), June 2019.
[I-D.ietf-netconf-tls-client-server] [I-D.ietf-netconf-tls-client-server]
Watsen, K., Wu, G., and L. Xia, "YANG Groupings for TLS Watsen, K., Wu, G., and L. Xia, "YANG Groupings for TLS
Clients and TLS Servers", draft-ietf-netconf-tls-client- Clients and TLS Servers", draft-ietf-netconf-tls-client-
server-13 (work in progress), June 2019. server-14 (work in progress), July 2019.
[I-D.kwatsen-netconf-tcp-client-server] [I-D.kwatsen-netconf-tcp-client-server]
Watsen, K. and M. Scharf, "YANG Groupings for TCP Clients Watsen, K. and M. Scharf, "YANG Groupings for TCP Clients
and TCP Servers", draft-kwatsen-netconf-tcp-client- and TCP Servers", draft-kwatsen-netconf-tcp-client-
server-02 (work in progress), April 2019. server-02 (work in progress), April 2019.
[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", BCP 14, RFC 2119, Requirement Levels", BCP 14, RFC 2119,
DOI 10.17487/RFC2119, March 1997, DOI 10.17487/RFC2119, March 1997,
<https://www.rfc-editor.org/info/rfc2119>. <https://www.rfc-editor.org/info/rfc2119>.
skipping to change at page 41, line 18 skipping to change at page 45, line 18
The following tree diagram [RFC8340] provides an overview of the data The following tree diagram [RFC8340] provides an overview of the data
model for the "ietf-netconf-client" module. model for the "ietf-netconf-client" module.
This tree diagram shows all the nodes defined in this module, This tree diagram shows all the nodes defined in this module,
including those defined by "grouping" statements used by this module. including those defined by "grouping" statements used by this module.
Please see Section 3.1 for a tree diagram that illustrates what the Please see Section 3.1 for a tree diagram that illustrates what the
module looks like without all the "grouping" statements expanded. module looks like without all the "grouping" statements expanded.
========== NOTE: '\\' line wrapping per BCP XX (RFC XXXX) =========== ========== NOTE: '\\' line wrapping per BCP XXX (RFC XXXX) ==========
module: ietf-netconf-client module: ietf-netconf-client
+--rw netconf-client +--rw netconf-client
+--rw initiate! {ssh-initiate or tls-initiate}? +--rw initiate! {ssh-initiate or tls-initiate}?
| +--rw netconf-server* [name] | +--rw netconf-server* [name]
| +--rw name string | +--rw name string
| +--rw endpoints | +--rw endpoints
| | +--rw endpoint* [name] | | +--rw endpoint* [name]
| | +--rw name string | | +--rw name string
| | +--rw (transport) | | +--rw (transport)
skipping to change at page 41, line 44 skipping to change at page 45, line 44
| | | | +--rw local-address? inet:ip-address | | | | +--rw local-address? inet:ip-address
| | | | | {local-binding-supported}? | | | | | {local-binding-supported}?
| | | | +--rw local-port? inet:port-number | | | | +--rw local-port? inet:port-number
| | | | | {local-binding-supported}? | | | | | {local-binding-supported}?
| | | | +--rw keepalives! | | | | +--rw keepalives!
| | | | {keepalives-supported}? | | | | {keepalives-supported}?
| | | | +--rw idle-time uint16 | | | | +--rw idle-time uint16
| | | | +--rw max-probes uint16 | | | | +--rw max-probes uint16
| | | | +--rw probe-interval uint16 | | | | +--rw probe-interval uint16
| | | +--rw ssh-client-parameters | | | +--rw ssh-client-parameters
| | | +--rw client-identity | | | | +--rw client-identity
| | | | +--rw username? string | | | | | +--rw username? string
| | | | +--rw (auth-type) | | | | | +--rw (auth-type)
| | | | +--:(password) | | | | | +--:(password)
| | | | | +--rw password? string | | | | | | +--rw password? string
| | | | +--:(public-key) | | | | | +--:(public-key)
| | | | | +--rw public-key | | | | | | +--rw public-key
| | | | | +--rw (local-or-keystore) | | | | | | +--rw (local-or-keystore)
| | | | | +--:(local) | | | | | | +--:(local)
| | | | | | {local-definiti\ | | | | | | | {local-definiti\
\ons-supported}? \ons-supported}?
| | | | | | +--rw local-definition | | | | | | | +--rw local-definition
| | | | | | +--rw algorithm | | | | | | | +--rw algorithm
| | | | | | | asymmetric\ | | | | | | | | asymmetric\
\-key-algorithm-t \-key-algorithm-t
| | | | | | +--rw public-key | | | | | | | +--rw public-key-f\
| | | | | | | binary \ormat?
| | | | | | +--rw (private-key\ | | | | | | | | identityref
| | | | | | | +--rw public-key
| | | | | | | | binary
| | | | | | | +--rw private-key-\
\format?
| | | | | | | | identityref
| | | | | | | +--rw (private-key\
\-type) \-type)
| | | | | | +--:(private-ke\ | | | | | | | +--:(private-ke\
\y) \y)
| | | | | | | +--rw privat\ | | | | | | | | +--rw privat\
\e-key? \e-key?
| | | | | | | bina\ | | | | | | | | bina\
\ry \ry
| | | | | | +--:(hidden-pri\ | | | | | | | +--:(hidden-pri\
\vate-key) \vate-key)
| | | | | | | +--rw hidden\ | | | | | | | | +--rw hidden\
\-private-key? \-private-key?
| | | | | | | empty | | | | | | | | empty
| | | | | | +--:(encrypted-\ | | | | | | | +--:(encrypted-\
\private-key) \private-key)
| | | | | | +--rw encryp\ | | | | | | | +--rw encryp\
\ted-private-key \ted-private-key
| | | | | | +--rw (ke\ | | | | | | | +--rw (ke\
\y-type) \y-type)
| | | | | | | +--:(s\ | | | | | | | | +--:(s\
\ymmetric-key-ref) \ymmetric-key-ref)
| | | | | | | | +--\ | | | | | | | | | +--\
\rw symmetric-key-ref? leafref \rw symmetric-key-ref? leafref
| | | | | | | | \ | | | | | | | | | \
\ {keystore-supported}? \ {keystore-supported}?
| | | | | | | +--:(a\ | | | | | | | | +--:(a\
\symmetric-key-ref) \symmetric-key-ref)
| | | | | | | +--\ | | | | | | | | +--\
\rw asymmetric-key-ref? leafref \rw asymmetric-key-ref? leafref
| | | | | | | \ | | | | | | | | \
\ {keystore-supported}? \ {keystore-supported}?
| | | | | | +--rw val\ | | | | | | | +--rw val\
\ue? \ue?
| | | | | | b\ | | | | | | | b\
\inary \inary
| | | | | +--:(keystore) | | | | | | +--:(keystore)
| | | | | {keystore-suppo\ | | | | | | {keystore-suppo\
\rted}? \rted}?
| | | | | +--rw keystore-refere\ | | | | | | +--rw keystore-refere\
\nce? \nce?
| | | | | ks:asymmetric\ | | | | | | ks:asymmetric\
\-key-ref \-key-ref
| | | | +--:(certificate) | | | | | +--:(certificate)
| | | | +--rw certificate | | | | | +--rw certificate
| | | | {sshcmn:ssh-x509-certs\ | | | | | {sshcmn:ssh-x509-certs\
\}? \}?
| | | | +--rw (local-or-keystore) | | | | | +--rw (local-or-keystore)
| | | | +--:(local) | | | | | +--:(local)
| | | | | {local-definiti\ | | | | | | {local-definiti\
\ons-supported}? \ons-supported}?
| | | | | +--rw local-definition | | | | | | +--rw local-definition
| | | | | +--rw algorithm | | | | | | +--rw algorithm
| | | | | | asymmetric\ | | | | | | | asymmetric\
\-key-algorithm-t \-key-algorithm-t
| | | | | +--rw public-key | | | | | | +--rw public-key-f\
| | | | | | binary \ormat?
| | | | | +--rw (private-key\ | | | | | | | identityref
| | | | | | +--rw public-key
| | | | | | | binary
| | | | | | +--rw private-key-\
\format?
| | | | | | | identityref
| | | | | | +--rw (private-key\
\-type) \-type)
| | | | | | +--:(private-ke\ | | | | | | | +--:(private-ke\
\y) \y)
| | | | | | | +--rw privat\ | | | | | | | | +--rw privat\
\e-key? \e-key?
| | | | | | | bina\ | | | | | | | | bina\
\ry \ry
| | | | | | +--:(hidden-pri\ | | | | | | | +--:(hidden-pri\
\vate-key) \vate-key)
| | | | | | | +--rw hidden\ | | | | | | | | +--rw hidden\
\-private-key? \-private-key?
| | | | | | | empty | | | | | | | | empty
| | | | | | +--:(encrypted-\ | | | | | | | +--:(encrypted-\
\private-key) \private-key)
| | | | | | +--rw encryp\ | | | | | | | +--rw encryp\
\ted-private-key \ted-private-key
| | | | | | +--rw (ke\ | | | | | | | +--rw (ke\
\y-type) \y-type)
| | | | | | | +--:(s\ | | | | | | | | +--:(s\
\ymmetric-key-ref) \ymmetric-key-ref)
| | | | | | | | +--\ | | | | | | | | | +--\
\rw symmetric-key-ref? leafref \rw symmetric-key-ref? leafref
| | | | | | | | \ | | | | | | | | | \
\ {keystore-supported}? \ {keystore-supported}?
| | | | | | | +--:(a\ | | | | | | | | +--:(a\
\symmetric-key-ref) \symmetric-key-ref)
| | | | | | | +--\ | | | | | | | | +--\
\rw asymmetric-key-ref? leafref \rw asymmetric-key-ref? leafref
| | | | | | | \ | | | | | | | | \
\ {keystore-supported}? \ {keystore-supported}?
| | | | | | +--rw val\ | | | | | | | +--rw val\
\ue? \ue?
| | | | | | b\ | | | | | | | b\
\inary \inary
| | | | | +--rw cert? | | | | | | +--rw cert?
| | | | | | end-entity\ | | | | | | | end-entity\
\-cert-cms \-cert-cms
| | | | | +---n certificate-\ | | | | | | +---n certificate-\
\expiration \expiration
| | | | | | +-- expiration-\ | | | | | | | +-- expiration-\
\date \date
| | | | | | yang:da\ | | | | | | | yang:da\
\te-and-time \te-and-time
| | | | | +---x generate-cer\ | | | | | | +---x generate-cer\
\tificate-signing-request \tificate-signing-request
| | | | | +---w input | | | | | | +---w input
| | | | | | +---w subject | | | | | | | +---w subject
| | | | | | | bina\ | | | | | | | | bina\
\ry \ry
| | | | | | +---w attrib\ | | | | | | | +---w attrib\
\utes? \utes?
| | | | | | bina\ | | | | | | | bina\
\ry \ry
| | | | | +--ro output | | | | | | +--ro output
| | | | | +--ro certif\ | | | | | | +--ro certif\
\icate-signing-request \icate-signing-request
| | | | | bina\ | | | | | | bina\
\ry \ry
| | | | +--:(keystore) | | | | | +--:(keystore)
| | | | {keystore-suppo\ | | | | | {keystore-suppo\
\rted}? \rted}?
| | | | +--rw keystore-refere\ | | | | | +--rw keystore-refere\
\nce \nce
| | | | +--rw asymmetric-k\ | | | | | +--rw asymmetric-k\
\ey? \ey?
| | | | | ks:asymmet\ | | | | | | ks:asymmet\
\ric-key-ref \ric-key-ref
| | | | +--rw certificate?\ | | | | | +--rw certificate?\
\ leafref \ leafref
| | | +--rw server-authentication | | | | +--rw server-authentication
| | | | +--rw ssh-host-keys? | | | | | +--rw ssh-host-keys!
| | | | | ts:host-keys-ref | | | | | | {ts:ssh-host-keys}?
| | | | | {ts:ssh-host-keys}? | | | | | | +--rw (local-or-truststore)
| | | | +--rw ca-certs? | | | | | | +--:(local)
| | | | | ts:certificates-ref | | | | | | | {local-definitions-su\
| | | | | {sshcmn:ssh-x509-certs,ts:x5\ \pported}?
| | | | | | | +--rw local-definition
| | | | | | | +--rw host-key*
| | | | | | | ct:ssh-host-key
| | | | | | +--:(truststore)
| | | | | | {truststore-supported\
\,ssh-host-keys}?
| | | | | | +--rw truststore-reference?
| | | | | | ts:host-keys-ref
| | | | | +--rw ca-certs!
| | | | | | {sshcmn:ssh-x509-certs,ts:x5\
\09-certificates}? \09-certificates}?
| | | | +--rw server-certs? | | | | | | +--rw (local-or-truststore)
| | | | ts:certificates-ref | | | | | | +--:(local)
| | | | {sshcmn:ssh-x509-certs,ts:x5\ | | | | | | | {local-definitions-su\
\pported}?
| | | | | | | +--rw local-definition
| | | | | | | +--rw cert*
| | | | | | | | trust-anchor-cer\
\t-cms
| | | | | | | +---n certificate-expira\
\tion
| | | | | | | +-- expiration-date
| | | | | | | yang:date-and\
\-time
| | | | | | +--:(truststore)
| | | | | | {truststore-supported\
\,x509-certificates}?
| | | | | | +--rw truststore-reference?
| | | | | | ts:certificates-ref
| | | | | +--rw server-certs!
| | | | | {sshcmn:ssh-x509-certs,ts:x5\
\09-certificates}? \09-certificates}?
| | | +--rw transport-params | | | | | +--rw (local-or-truststore)
| | | | {ssh-client-transport-params-co\ | | | | | +--:(local)
| | | | | | {local-definitions-su\
\pported}?
| | | | | | +--rw local-definition
| | | | | | +--rw cert*
| | | | | | | trust-anchor-cer\
\t-cms
| | | | | | +---n certificate-expira\
\tion
| | | | | | +-- expiration-date
| | | | | | yang:date-and\
\-time
| | | | | +--:(truststore)
| | | | | {truststore-supported\
\,x509-certificates}?
| | | | | +--rw truststore-reference?
| | | | | ts:certificates-ref
| | | | +--rw transport-params
| | | | | {ssh-client-transport-params-co\
\nfig}? \nfig}?
| | | | +--rw host-key | | | | | +--rw host-key
| | | | | +--rw host-key-alg* identityref | | | | | | +--rw host-key-alg* identityref
| | | | +--rw key-exchange | | | | | +--rw key-exchange
| | | | | +--rw key-exchange-alg* | | | | | | +--rw key-exchange-alg*
| | | | | identityref | | | | | | identityref
| | | | +--rw encryption | | | | | +--rw encryption
| | | | | +--rw encryption-alg* | | | | | | +--rw encryption-alg*
| | | | | identityref | | | | | | identityref
| | | | +--rw mac | | | | | +--rw mac
| | | | +--rw mac-alg* identityref | | | | | +--rw mac-alg* identityref
| | | +--rw keepalives! | | | | +--rw keepalives!
| | | {ssh-client-keepalives}? | | | | {ssh-client-keepalives}?
| | | +--rw max-wait? uint16 | | | | +--rw max-wait? uint16
| | | +--rw max-attempts? uint8 | | | | +--rw max-attempts? uint8
| | | +--rw netconf-client-parameters
| | +--:(tls) {tls-initiate}? | | +--:(tls) {tls-initiate}?
| | +--rw tls | | +--rw tls
| | +--rw tcp-client-parameters | | +--rw tcp-client-parameters
| | | +--rw remote-address inet:host | | | +--rw remote-address inet:host
| | | +--rw remote-port? inet:port-number | | | +--rw remote-port? inet:port-number
| | | +--rw local-address? inet:ip-address | | | +--rw local-address? inet:ip-address
| | | | {local-binding-supported}? | | | | {local-binding-supported}?
| | | +--rw local-port? inet:port-number | | | +--rw local-port? inet:port-number
| | | | {local-binding-supported}? | | | | {local-binding-supported}?
| | | +--rw keepalives! | | | +--rw keepalives!
| | | {keepalives-supported}? | | | {keepalives-supported}?
| | | +--rw idle-time uint16 | | | +--rw idle-time uint16
| | | +--rw max-probes uint16 | | | +--rw max-probes uint16
| | | +--rw probe-interval uint16 | | | +--rw probe-interval uint16
| | +--rw tls-client-parameters | | +--rw tls-client-parameters
| | +--rw client-identity | | | +--rw client-identity
| | | +--rw (local-or-keystore) | | | | +--rw (local-or-keystore)
| | | +--:(local) | | | | +--:(local)
| | | | {local-definitions-suppo\ | | | | | {local-definitions-suppo\
\rted}? \rted}?
| | | | +--rw local-definition | | | | | +--rw local-definition
| | | | +--rw algorithm | | | | | +--rw algorithm
| | | | | asymmetric-key-algo\ | | | | | | asymmetric-key-algo\
\rithm-t \rithm-t
| | | | +--rw public-key | | | | | +--rw public-key-format?
| | | | | binary | | | | | | identityref
| | | | +--rw (private-key-type) | | | | | +--rw public-key
| | | | | +--:(private-key) | | | | | | binary
| | | | | | +--rw private-key? | | | | | +--rw private-key-format?
| | | | | | binary | | | | | | identityref
| | | | | +--:(hidden-private-key) | | | | | +--rw (private-key-type)
| | | | | | +--rw hidden-private-\ | | | | | | +--:(private-key)
| | | | | | | +--rw private-key?
| | | | | | | binary
| | | | | | +--:(hidden-private-key)
| | | | | | | +--rw hidden-private-\
\key? \key?
| | | | | | empty | | | | | | | empty
| | | | | +--:(encrypted-private-k\ | | | | | | +--:(encrypted-private-k\
\ey) \ey)
| | | | | +--rw encrypted-priva\ | | | | | | +--rw encrypted-priva\
\te-key \te-key
| | | | | +--rw (key-type) | | | | | | +--rw (key-type)
| | | | | | +--:(symmetric-\ | | | | | | | +--:(symmetric-\
\key-ref) \key-ref)
| | | | | | | +--rw symmet\ | | | | | | | | +--rw symmet\
\ric-key-ref? leafref \ric-key-ref? leafref
| | | | | | | {key\ | | | | | | | | {key\
\store-supported}? \store-supported}?
| | | | | | +--:(asymmetric\ | | | | | | | +--:(asymmetric\
\-key-ref) \-key-ref)
| | | | | | +--rw asymme\ | | | | | | | +--rw asymme\
\tric-key-ref? leafref \tric-key-ref? leafref
| | | | | | {key\ | | | | | | | {key\
\store-supported}? \store-supported}?
| | | | | +--rw value? | | | | | | +--rw value?
| | | | | binary | | | | | | binary
| | | | +--rw cert? | | | | | +--rw cert?
| | | | | end-entity-cert-cms | | | | | | end-entity-cert-cms
| | | | +---n certificate-expiration | | | | | +---n certificate-expiration
| | | | | +-- expiration-date | | | | | | +-- expiration-date
| | | | | yang:date-and-ti\ | | | | | | yang:date-and-ti\
\me \me
| | | | +---x generate-certificate-\ | | | | | +---x generate-certificate-\
\signing-request \signing-request
| | | | +---w input | | | | | +---w input
| | | | | +---w subject | | | | | | +---w subject
| | | | | | binary | | | | | | | binary
| | | | | +---w attributes? | | | | | | +---w attributes?
| | | | | binary | | | | | | binary
| | | | +--ro output | | | | | +--ro output
| | | | +--ro certificate-sig\ | | | | | +--ro certificate-sig\
\ning-request \ning-request
| | | | binary | | | | | binary
| | | +--:(keystore) | | | | +--:(keystore)
| | | {keystore-supported}? | | | | {keystore-supported}?
| | | +--rw keystore-reference | | | | +--rw keystore-reference
| | | +--rw asymmetric-key? | | | | +--rw asymmetric-key?
| | | | ks:asymmetric-key-r\ | | | | | ks:asymmetric-key-r\
\ef \ef
| | | +--rw certificate? lea\ | | | | +--rw certificate? lea\
\fref \fref
| | +--rw server-authentication | | | +--rw server-authentication
| | | +--rw ca-certs? | | | | +--rw ca-certs!
| | | | ts:certificates-ref | | | | | {ts:x509-certificates}?
| | | | {ts:x509-certificates}? | | | | | +--rw (local-or-truststore)
| | | +--rw server-certs? | | | | | +--:(local)
| | | ts:certificates-ref | | | | | | {local-definitions-su\
| | | {ts:x509-certificates}? \pported}?
| | +--rw hello-params | | | | | | +--rw local-definition
| | | {tls-client-hello-params-config\ | | | | | | +--rw cert*
| | | | | | | trust-anchor-cer\
\t-cms
| | | | | | +---n certificate-expira\
\tion
| | | | | | +-- expiration-date
| | | | | | yang:date-and\
\-time
| | | | | +--:(truststore)
| | | | | {truststore-supported\
\,x509-certificates}?
| | | | | +--rw truststore-reference?
| | | | | ts:certificates-ref
| | | | +--rw server-certs!
| | | | {ts:x509-certificates}?
| | | | +--rw (local-or-truststore)
| | | | +--:(local)
| | | | | {local-definitions-su\
\pported}?
| | | | | +--rw local-definition
| | | | | +--rw cert*
| | | | | | trust-anchor-cer\
\t-cms
| | | | | +---n certificate-expira\
\tion
| | | | | +-- expiration-date
| | | | | yang:date-and\
\-time
| | | | +--:(truststore)
| | | | {truststore-supported\
\,x509-certificates}?
| | | | +--rw truststore-reference?
| | | | ts:certificates-ref
| | | +--rw hello-params
| | | | {tls-client-hello-params-config\
\}? \}?
| | | +--rw tls-versions | | | | +--rw tls-versions
| | | | +--rw tls-version* identityref | | | | | +--rw tls-version* identityref
| | | +--rw cipher-suites | | | | +--rw cipher-suites
| | | +--rw cipher-suite* identityref | | | | +--rw cipher-suite* identityref
| | +--rw keepalives! | | | +--rw keepalives!
| | {tls-client-keepalives}? | | | {tls-client-keepalives}?
| | +--rw max-wait? uint16 | | | +--rw max-wait? uint16
| | +--rw max-attempts? uint8 | | | +--rw max-attempts? uint8
| | +--rw netconf-client-parameters
| +--rw connection-type | +--rw connection-type
| | +--rw (connection-type) | | +--rw (connection-type)
| | +--:(persistent-connection) | | +--:(persistent-connection)
| | | +--rw persistent! | | | +--rw persistent!
| | +--:(periodic-connection) | | +--:(periodic-connection)
| | +--rw periodic! | | +--rw periodic!
| | +--rw period? uint16 | | +--rw period? uint16
| | +--rw anchor-time? yang:date-and-time | | +--rw anchor-time? yang:date-and-time
| | +--rw idle-timeout? uint16 | | +--rw idle-timeout? uint16
| +--rw reconnect-strategy | +--rw reconnect-strategy
skipping to change at page 47, line 51 skipping to change at page 53, line 51
+--:(ssh) {ssh-listen}? +--:(ssh) {ssh-listen}?
| +--rw ssh | +--rw ssh
| +--rw tcp-server-parameters | +--rw tcp-server-parameters
| | +--rw local-address inet:ip-address | | +--rw local-address inet:ip-address
| | +--rw local-port? inet:port-number | | +--rw local-port? inet:port-number
| | +--rw keepalives! {keepalives-supported}? | | +--rw keepalives! {keepalives-supported}?
| | +--rw idle-time uint16 | | +--rw idle-time uint16
| | +--rw max-probes uint16 | | +--rw max-probes uint16
| | +--rw probe-interval uint16 | | +--rw probe-interval uint16
| +--rw ssh-client-parameters | +--rw ssh-client-parameters
| +--rw client-identity | | +--rw client-identity
| | +--rw username? string | | | +--rw username? string
| | +--rw (auth-type) | | | +--rw (auth-type)
| | +--:(password) | | | +--:(password)
| | | +--rw password? string | | | | +--rw password? string
| | +--:(public-key) | | | +--:(public-key)
| | | +--rw public-key | | | | +--rw public-key
| | | +--rw (local-or-keystore) | | | | +--rw (local-or-keystore)
| | | +--:(local) | | | | +--:(local)
| | | | {local-definitions-su\ | | | | | {local-definitions-su\
\pported}? \pported}?
| | | | +--rw local-definition | | | | | +--rw local-definition
| | | | +--rw algorithm | | | | | +--rw algorithm
| | | | | asymmetric-key-a\ | | | | | | asymmetric-key-a\
\lgorithm-t \lgorithm-t
| | | | +--rw public-key | | | | | +--rw public-key-format?
| | | | | binary | | | | | | identityref
| | | | +--rw (private-key-type) | | | | | +--rw public-key
| | | | +--:(private-key) | | | | | | binary
| | | | | +--rw private-key? | | | | | +--rw private-key-format?
| | | | | binary | | | | | | identityref
| | | | +--:(hidden-private-k\ | | | | | +--rw (private-key-type)
| | | | | +--:(private-key)
| | | | | | +--rw private-key?
| | | | | | binary
| | | | | +--:(hidden-private-k\
\ey) \ey)
| | | | | +--rw hidden-priva\ | | | | | | +--rw hidden-priva\
\te-key? \te-key?
| | | | | empty | | | | | | empty
| | | | +--:(encrypted-privat\ | | | | | +--:(encrypted-privat\
\e-key) \e-key)
| | | | +--rw encrypted-pr\ | | | | | +--rw encrypted-pr\
\ivate-key \ivate-key
| | | | +--rw (key-type) | | | | | +--rw (key-type)
| | | | | +--:(symmetr\ | | | | | | +--:(symmetr\
\ic-key-ref) \ic-key-ref)
| | | | | | +--rw sym\ | | | | | | | +--rw sym\
\metric-key-ref? leafref \metric-key-ref? leafref
| | | | | | {\ | | | | | | | {\
\keystore-supported}? \keystore-supported}?
| | | | | +--:(asymmet\ | | | | | | +--:(asymmet\
\ric-key-ref) \ric-key-ref)
| | | | | +--rw asy\ | | | | | | +--rw asy\
\mmetric-key-ref? leafref \mmetric-key-ref? leafref
| | | | | {\ | | | | | | {\
\keystore-supported}? \keystore-supported}?
| | | | +--rw value? | | | | | +--rw value?
| | | | binary | | | | | binary
| | | +--:(keystore) | | | | +--:(keystore)
| | | {keystore-supported}? | | | | {keystore-supported}?
| | | +--rw keystore-reference? | | | | +--rw keystore-reference?
| | | ks:asymmetric-key-r\ | | | | ks:asymmetric-key-r\
\ef \ef
| | +--:(certificate) | | | +--:(certificate)
| | +--rw certificate | | | +--rw certificate
| | {sshcmn:ssh-x509-certs}? | | | {sshcmn:ssh-x509-certs}?
| | +--rw (local-or-keystore) | | | +--rw (local-or-keystore)
| | +--:(local) | | | +--:(local)
| | | {local-definitions-su\ | | | | {local-definitions-su\
\pported}? \pported}?
| | | +--rw local-definition | | | | +--rw local-definition
| | | +--rw algorithm | | | | +--rw algorithm
| | | | asymmetric-key-a\ | | | | | asymmetric-key-a\
\lgorithm-t \lgorithm-t
| | | +--rw public-key | | | | +--rw public-key-format?
| | | | binary | | | | | identityref
| | | +--rw (private-key-type) | | | | +--rw public-key
| | | | +--:(private-key) | | | | | binary
| | | | | +--rw private-key? | | | | +--rw private-key-format?
| | | | | binary | | | | | identityref
| | | | +--:(hidden-private-k\ | | | | +--rw (private-key-type)
| | | | | +--:(private-key)
| | | | | | +--rw private-key?
| | | | | | binary
| | | | | +--:(hidden-private-k\
\ey) \ey)
| | | | | +--rw hidden-priva\ | | | | | | +--rw hidden-priva\
\te-key? \te-key?
| | | | | empty | | | | | | empty
| | | | +--:(encrypted-privat\ | | | | | +--:(encrypted-privat\
\e-key) \e-key)
| | | | +--rw encrypted-pr\ | | | | | +--rw encrypted-pr\
\ivate-key \ivate-key
| | | | +--rw (key-type) | | | | | +--rw (key-type)
| | | | | +--:(symmetr\ | | | | | | +--:(symmetr\
\ic-key-ref) \ic-key-ref)
| | | | | | +--rw sym\ | | | | | | | +--rw sym\
\metric-key-ref? leafref \metric-key-ref? leafref
| | | | | | {\ | | | | | | | {\
\keystore-supported}? \keystore-supported}?
| | | | | +--:(asymmet\ | | | | | | +--:(asymmet\
\ric-key-ref) \ric-key-ref)
| | | | | +--rw asy\ | | | | | | +--rw asy\
\mmetric-key-ref? leafref \mmetric-key-ref? leafref
| | | | | {\ | | | | | | {\
\keystore-supported}? \keystore-supported}?
| | | | +--rw value? | | | | | +--rw value?
| | | | binary | | | | | binary
| | | +--rw cert? | | | | +--rw cert?
| | | | end-entity-cert-\ | | | | | end-entity-cert-\
\cms \cms
| | | +---n certificate-expira\ | | | | +---n certificate-expira\
\tion \tion
| | | | +-- expiration-date | | | | | +-- expiration-date
| | | | yang:date-and\ | | | | | yang:date-and\
\-time \-time
| | | +---x generate-certifica\ | | | | +---x generate-certifica\
\te-signing-request \te-signing-request
| | | +---w input | | | | +---w input
| | | | +---w subject | | | | | +---w subject
| | | | | binary | | | | | | binary
| | | | +---w attributes? | | | | | +---w attributes?
| | | | binary | | | | | binary
| | | +--ro output | | | | +--ro output
| | | +--ro certificate-\ | | | | +--ro certificate-\
\signing-request \signing-request
| | | binary | | | | binary
| | +--:(keystore) | | | +--:(keystore)
| | {keystore-supported}? | | | {keystore-supported}?
| | +--rw keystore-reference | | | +--rw keystore-reference
| | +--rw asymmetric-key? | | | +--rw asymmetric-key?
| | | ks:asymmetric-ke\ | | | | ks:asymmetric-ke\
\y-ref \y-ref
| | +--rw certificate? \ | | | +--rw certificate? \
\leafref \leafref
| +--rw server-authentication | | +--rw server-authentication
| | +--rw ssh-host-keys? ts:host-keys-ref | | | +--rw ssh-host-keys! {ts:ssh-host-keys}?
| | | {ts:ssh-host-keys}? | | | | +--rw (local-or-truststore)
| | +--rw ca-certs? ts:certificates-ref | | | | +--:(local)
| | | {sshcmn:ssh-x509-certs,ts:x509-cer\ | | | | | {local-definitions-supporte\
\d}?
| | | | | +--rw local-definition
| | | | | +--rw host-key*
| | | | | ct:ssh-host-key
| | | | +--:(truststore)
| | | | {truststore-supported,ssh-h\
\ost-keys}?
| | | | +--rw truststore-reference?
| | | | ts:host-keys-ref
| | | +--rw ca-certs!
| | | | {sshcmn:ssh-x509-certs,ts:x509-cer\
\tificates}? \tificates}?
| | +--rw server-certs? ts:certificates-ref | | | | +--rw (local-or-truststore)
| | {sshcmn:ssh-x509-certs,ts:x509-cer\ | | | | +--:(local)
| | | | | {local-definitions-supporte\
\d}?
| | | | | +--rw local-definition
| | | | | +--rw cert*
| | | | | | trust-anchor-cert-cms
| | | | | +---n certificate-expiration
| | | | | +-- expiration-date
| | | | | yang:date-and-time
| | | | +--:(truststore)
| | | | {truststore-supported,x509-\
\certificates}?
| | | | +--rw truststore-reference?
| | | | ts:certificates-ref
| | | +--rw server-certs!
| | | {sshcmn:ssh-x509-certs,ts:x509-cer\
\tificates}? \tificates}?
| +--rw transport-params | | | +--rw (local-or-truststore)
| | {ssh-client-transport-params-config}? | | | +--:(local)
| | +--rw host-key | | | | {local-definitions-supporte\
| | | +--rw host-key-alg* identityref \d}?
| | +--rw key-exchange | | | | +--rw local-definition
| | | +--rw key-exchange-alg* identityref | | | | +--rw cert*
| | +--rw encryption | | | | | trust-anchor-cert-cms
| | | +--rw encryption-alg* identityref | | | | +---n certificate-expiration
| | +--rw mac | | | | +-- expiration-date
| | +--rw mac-alg* identityref | | | | yang:date-and-time
| +--rw keepalives! {ssh-client-keepalives}? | | | +--:(truststore)
| +--rw max-wait? uint16 | | | {truststore-supported,x509-\
| +--rw max-attempts? uint8 \certificates}?
| | | +--rw truststore-reference?
| | | ts:certificates-ref
| | +--rw transport-params
| | | {ssh-client-transport-params-config}?
| | | +--rw host-key
| | | | +--rw host-key-alg* identityref
| | | +--rw key-exchange
| | | | +--rw key-exchange-alg* identityref
| | | +--rw encryption
| | | | +--rw encryption-alg* identityref
| | | +--rw mac
| | | +--rw mac-alg* identityref
| | +--rw keepalives! {ssh-client-keepalives}?
| | +--rw max-wait? uint16
| | +--rw max-attempts? uint8
| +--rw netconf-client-parameters
+--:(tls) {tls-listen}? +--:(tls) {tls-listen}?
+--rw tls +--rw tls
+--rw tcp-server-parameters +--rw tcp-server-parameters
| +--rw local-address inet:ip-address | +--rw local-address inet:ip-address
| +--rw local-port? inet:port-number | +--rw local-port? inet:port-number
| +--rw keepalives! {keepalives-supported}? | +--rw keepalives! {keepalives-supported}?
| +--rw idle-time uint16 | +--rw idle-time uint16
| +--rw max-probes uint16 | +--rw max-probes uint16
| +--rw probe-interval uint16 | +--rw probe-interval uint16
+--rw tls-client-parameters +--rw tls-client-parameters
+--rw client-identity | +--rw client-identity
| +--rw (local-or-keystore) | | +--rw (local-or-keystore)
| +--:(local) | | +--:(local)
| | {local-definitions-supported}? | | | {local-definitions-supported}?
| | +--rw local-definition | | | +--rw local-definition
| | +--rw algorithm | | | +--rw algorithm
| | | asymmetric-key-algorithm-t | | | | asymmetric-key-algorithm-t
| | +--rw public-key | | | +--rw public-key-format?
| | | binary | | | | identityref
| | +--rw (private-key-type) | | | +--rw public-key
| | | +--:(private-key) | | | | binary
| | | | +--rw private-key? | | | +--rw private-key-format?
| | | | binary | | | | identityref
| | | +--:(hidden-private-key) | | | +--rw (private-key-type)
| | | | +--rw hidden-private-key? | | | | +--:(private-key)
| | | | empty | | | | | +--rw private-key?
| | | +--:(encrypted-private-key) | | | | | binary
| | | +--rw encrypted-private-key | | | | +--:(hidden-private-key)
| | | +--rw (key-type) | | | | | +--rw hidden-private-key?
| | | | +--:(symmetric-key-re\ | | | | | empty
| | | | +--:(encrypted-private-key)
| | | | +--rw encrypted-private-key
| | | | +--rw (key-type)
| | | | | +--:(symmetric-key-re\
\f) \f)
| | | | | +--rw symmetric-ke\ | | | | | | +--rw symmetric-ke\
\y-ref? leafref \y-ref? leafref
| | | | | {keystore-\ | | | | | | {keystore-\
\supported}? \supported}?
| | | | +--:(asymmetric-key-r\ | | | | | +--:(asymmetric-key-r\
\ef) \ef)
| | | | +--rw asymmetric-k\ | | | | | +--rw asymmetric-k\
\ey-ref? leafref \ey-ref? leafref
| | | | {keystore-\ | | | | | {keystore-\
\supported}? \supported}?
| | | +--rw value? | | | | +--rw value?
| | | binary | | | | binary
| | +--rw cert? | | | +--rw cert?
| | | end-entity-cert-cms | | | | end-entity-cert-cms
| | +---n certificate-expiration | | | +---n certificate-expiration
| | | +-- expiration-date | | | | +-- expiration-date
| | | yang:date-and-time | | | | yang:date-and-time
| | +---x generate-certificate-signin\ | | | +---x generate-certificate-signin\
\g-request \g-request
| | +---w input | | | +---w input
| | | +---w subject binary | | | | +---w subject binary
| | | +---w attributes? binary | | | | +---w attributes? binary
| | +--ro output | | | +--ro output
| | +--ro certificate-signing-r\ | | | +--ro certificate-signing-r\
\equest \equest
| | binary | | | binary
| +--:(keystore) {keystore-supported}? | | +--:(keystore) {keystore-supported}?
| +--rw keystore-reference | | +--rw keystore-reference
| +--rw asymmetric-key? | | +--rw asymmetric-key?
| | ks:asymmetric-key-ref | | | ks:asymmetric-key-ref
| +--rw certificate? leafref | | +--rw certificate? leafref
+--rw server-authentication | +--rw server-authentication
| +--rw ca-certs? ts:certificates-ref | | +--rw ca-certs! {ts:x509-certificates}?
| | {ts:x509-certificates}? | | | +--rw (local-or-truststore)
| +--rw server-certs? ts:certificates-ref | | | +--:(local)
| {ts:x509-certificates}? | | | | {local-definitions-supporte\
+--rw hello-params \d}?
| {tls-client-hello-params-config}? | | | | +--rw local-definition
| +--rw tls-versions | | | | +--rw cert*
| | +--rw tls-version* identityref | | | | | trust-anchor-cert-cms
| +--rw cipher-suites | | | | +---n certificate-expiration
| +--rw cipher-suite* identityref | | | | +-- expiration-date
+--rw keepalives! {tls-client-keepalives}? | | | | yang:date-and-time
+--rw max-wait? uint16 | | | +--:(truststore)
+--rw max-attempts? uint8 | | | {truststore-supported,x509-\
\certificates}?
| | | +--rw truststore-reference?
| | | ts:certificates-ref
| | +--rw server-certs! {ts:x509-certificates}?
| | +--rw (local-or-truststore)
| | +--:(local)
| | | {local-definitions-supporte\
\d}?
| | | +--rw local-definition
| | | +--rw cert*
| | | | trust-anchor-cert-cms
| | | +---n certificate-expiration
| | | +-- expiration-date
| | | yang:date-and-time
| | +--:(truststore)
| | {truststore-supported,x509-\
\certificates}?
| | +--rw truststore-reference?
| | ts:certificates-ref
| +--rw hello-params
| | {tls-client-hello-params-config}?
| | +--rw tls-versions
| | | +--rw tls-version* identityref
| | +--rw cipher-suites
| | +--rw cipher-suite* identityref
| +--rw keepalives! {tls-client-keepalives}?
| +--rw max-wait? uint16
| +--rw max-attempts? uint8
+--rw netconf-client-parameters
A.2. Expanded Tree Diagram for 'ietf-netconf-server' A.2. Expanded Tree Diagram for 'ietf-netconf-server'
The following tree diagram [RFC8340] provides an overview of the data The following tree diagram [RFC8340] provides an overview of the data
model for the "ietf-netconf-server" module. model for the "ietf-netconf-server" module.
This tree diagram shows all the nodes defined in this module, This tree diagram shows all the nodes defined in this module,
including those defined by "grouping" statements used by this module. including those defined by "grouping" statements used by this module.
Please see Section 4.1 for a tree diagram that illustrates what the Please see Section 4.1 for a tree diagram that illustrates what the
module looks like without all the "grouping" statements expanded. module looks like without all the "grouping" statements expanded.
========== NOTE: '\\' line wrapping per BCP XX (RFC XXXX) =========== ========== NOTE: '\\' line wrapping per BCP XXX (RFC XXXX) ==========
module: ietf-netconf-server module: ietf-netconf-server
+--rw netconf-server +--rw netconf-server
+--rw listen! {ssh-listen or tls-listen}? +--rw listen! {ssh-listen or tls-listen}?
| +--rw idle-timeout? uint16 | +--rw idle-timeout? uint16
| +--rw endpoint* [name] | +--rw endpoint* [name]
| +--rw name string | +--rw name string
| +--rw (transport) | +--rw (transport)
| +--:(ssh) {ssh-listen}? | +--:(ssh) {ssh-listen}?
| | +--rw ssh | | +--rw ssh
| | +--rw tcp-server-parameters | | +--rw tcp-server-parameters
| | | +--rw local-address inet:ip-address | | | +--rw local-address inet:ip-address
| | | +--rw local-port? inet:port-number | | | +--rw local-port? inet:port-number
| | | +--rw keepalives! {keepalives-supported}? | | | +--rw keepalives! {keepalives-supported}?
| | | +--rw idle-time uint16 | | | +--rw idle-time uint16
| | | +--rw max-probes uint16 | | | +--rw max-probes uint16
| | | +--rw probe-interval uint16 | | | +--rw probe-interval uint16
| | +--rw ssh-server-parameters | | +--rw ssh-server-parameters
| | +--rw server-identity | | | +--rw server-identity
| | | +--rw host-key* [name] | | | | +--rw host-key* [name]
| | | +--rw name string | | | | +--rw name string
| | | +--rw (host-key-type) | | | | +--rw (host-key-type)
| | | +--:(public-key) | | | | +--:(public-key)
| | | | +--rw public-key | | | | | +--rw public-key
| | | | +--rw (local-or-keystore) | | | | | +--rw (local-or-keystore)
| | | | +--:(local) | | | | | +--:(local)
| | | | | {local-definitions\ | | | | | | {local-definitions\
\-supported}? \-supported}?
| | | | | +--rw local-definition | | | | | | +--rw local-definition
| | | | | +--rw algorithm | | | | | | +--rw algorithm
| | | | | | asymmetric-ke\ | | | | | | | asymmetric-ke\
\y-algorithm-t \y-algorithm-t
| | | | | +--rw public-key | | | | | | +--rw public-key-form\
| | | | | | binary \at?
| | | | | +--rw (private-key-ty\ | | | | | | | identityref
| | | | | | +--rw public-key
| | | | | | | binary
| | | | | | +--rw private-key-for\
\mat?
| | | | | | | identityref
| | | | | | +--rw (private-key-ty\
\pe) \pe)
| | | | | +--:(private-key) | | | | | | +--:(private-key)
| | | | | | +--rw private-k\ | | | | | | | +--rw private-k\
\ey? \ey?
| | | | | | binary | | | | | | | binary
| | | | | +--:(hidden-privat\ | | | | | | +--:(hidden-privat\
\e-key) \e-key)
| | | | | | +--rw hidden-pr\ | | | | | | | +--rw hidden-pr\
\ivate-key? \ivate-key?
| | | | | | empty | | | | | | | empty
| | | | | +--:(encrypted-pri\ | | | | | | +--:(encrypted-pri\
\vate-key) \vate-key)
| | | | | +--rw encrypted\ | | | | | | +--rw encrypted\
\-private-key \-private-key
| | | | | +--rw (key-t\ | | | | | | +--rw (key-t\
\ype) \ype)
| | | | | | +--:(symm\ | | | | | | | +--:(symm\
\etric-key-ref) \etric-key-ref)
| | | | | | | +--rw \ | | | | | | | | +--rw \
\symmetric-key-ref? leafref \symmetric-key-ref? leafref
| | | | | | | \ | | | | | | | | \
\ {keystore-supported}? \ {keystore-supported}?
| | | | | | +--:(asym\ | | | | | | | +--:(asym\
\metric-key-ref) \metric-key-ref)
| | | | | | +--rw \ | | | | | | | +--rw \
\asymmetric-key-ref? leafref \asymmetric-key-ref? leafref
| | | | | | \ | | | | | | | \
\ {keystore-supported}? \ {keystore-supported}?
| | | | | +--rw value? | | | | | | +--rw value?
| | | | | bina\ | | | | | | bina\
\ry \ry
| | | | +--:(keystore) | | | | | +--:(keystore)
| | | | {keystore-supporte\ | | | | | {keystore-supporte\
\d}? \d}?
| | | | +--rw keystore-reference? | | | | | +--rw keystore-reference?
| | | | ks:asymmetric-ke\ | | | | | ks:asymmetric-ke\
\y-ref \y-ref
| | | +--:(certificate) | | | | +--:(certificate)
| | | +--rw certificate | | | | +--rw certificate
| | | {sshcmn:ssh-x509-certs}? | | | | {sshcmn:ssh-x509-certs}?
| | | +--rw (local-or-keystore) | | | | +--rw (local-or-keystore)
| | | +--:(local) | | | | +--:(local)
| | | | {local-definitions\ | | | | | {local-definitions\
\-supported}? \-supported}?
| | | | +--rw local-definition | | | | | +--rw local-definition
| | | | +--rw algorithm | | | | | +--rw algorithm
| | | | | asymmetric-ke\ | | | | | | asymmetric-ke\
\y-algorithm-t \y-algorithm-t
| | | | +--rw public-key | | | | | +--rw public-key-form\
| | | | | binary \at?
| | | | +--rw (private-key-ty\ | | | | | | identityref
| | | | | +--rw public-key
| | | | | | binary
| | | | | +--rw private-key-for\
\mat?
| | | | | | identityref
| | | | | +--rw (private-key-ty\
\pe) \pe)
| | | | | +--:(private-key) | | | | | | +--:(private-key)
| | | | | | +--rw private-k\ | | | | | | | +--rw private-k\
\ey? \ey?
| | | | | | binary | | | | | | | binary
| | | | | +--:(hidden-privat\ | | | | | | +--:(hidden-privat\
\e-key) \e-key)
| | | | | | +--rw hidden-pr\ | | | | | | | +--rw hidden-pr\
\ivate-key? \ivate-key?
| | | | | | empty | | | | | | | empty
| | | | | +--:(encrypted-pri\ | | | | | | +--:(encrypted-pri\
\vate-key) \vate-key)
| | | | | +--rw encrypted\ | | | | | | +--rw encrypted\
\-private-key \-private-key
| | | | | +--rw (key-t\ | | | | | | +--rw (key-t\
\ype) \ype)
| | | | | | +--:(symm\ | | | | | | | +--:(symm\
\etric-key-ref) \etric-key-ref)
| | | | | | | +--rw \ | | | | | | | | +--rw \
\symmetric-key-ref? leafref \symmetric-key-ref? leafref
| | | | | | | \ | | | | | | | | \
\ {keystore-supported}? \ {keystore-supported}?
| | | | | | +--:(asym\ | | | | | | | +--:(asym\
\metric-key-ref) \metric-key-ref)
| | | | | | +--rw \ | | | | | | | +--rw \
\asymmetric-key-ref? leafref \asymmetric-key-ref? leafref
| | | | | | \ | | | | | | | \
\ {keystore-supported}? \ {keystore-supported}?
| | | | | +--rw value? | | | | | | +--rw value?
| | | | | bina\ | | | | | | bina\
\ry \ry
| | | | +--rw cert? | | | | | +--rw cert?
| | | | | end-entity-ce\ | | | | | | end-entity-ce\
\rt-cms \rt-cms
| | | | +---n certificate-exp\ | | | | | +---n certificate-exp\
\iration \iration
| | | | | +-- expiration-date | | | | | | +-- expiration-date
| | | | | yang:date-\ | | | | | | yang:date-\
\and-time \and-time
| | | | +---x generate-certif\ | | | | | +---x generate-certif\
\icate-signing-request \icate-signing-request
| | | | +---w input | | | | | +---w input
| | | | | +---w subject | | | | | | +---w subject
| | | | | | binary | | | | | | | binary
| | | | | +---w attribute\ | | | | | | +---w attribute\
\s? \s?
| | | | | binary | | | | | | binary
| | | | +--ro output | | | | | +--ro output
| | | | +--ro certifica\ | | | | | +--ro certifica\
\te-signing-request \te-signing-request
| | | | binary | | | | | binary
| | | +--:(keystore) | | | | +--:(keystore)
| | | {keystore-supporte\ | | | | {keystore-supporte\
\d}? \d}?
| | | +--rw keystore-reference | | | | +--rw keystore-reference
| | | +--rw asymmetric-key? | | | | +--rw asymmetric-key?
| | | | ks:asymmetric\ | | | | | ks:asymmetric\
\-key-ref \-key-ref
| | | +--rw certificate? \ | | | | +--rw certificate? \
\ leafref \ leafref
| | +--rw client-authentication | | | +--rw client-authentication
| | | +--rw supported-authentication-methods | | | | +--rw supported-authentication-methods
| | | | +--rw publickey? empty | | | | | +--rw publickey? empty
| | | | +--rw passsword? empty | | | | | +--rw passsword? empty
| | | | +--rw hostbased? empty | | | | | +--rw hostbased? empty
| | | | +--rw none? empty | | | | | +--rw none? empty
| | | | +--rw other* string | | | | | +--rw other* string
| | | +--rw (local-or-external) | | | | +--rw (local-or-external)
| | | +--:(local) | | | | +--:(local)
| | | | {local-client-auth-supported}? | | | | | {local-client-auth-supported}?
| | | | +--rw users | | | | | +--rw users
| | | | +--rw user* [name] | | | | | +--rw user* [name]
| | | | +--rw name string | | | | | +--rw name string
| | | | +--rw password? | | | | | +--rw password?
| | | | | ianach:crypt-hash | | | | | | ianach:crypt-hash
| | | | +--rw authorized-key* [name] | | | | | +--rw host-keys!
| | | | +--rw name string | | | | | | {ts:ssh-host-keys}?
| | | | +--rw algorithm string | | | | | | +--rw (local-or-truststore)
| | | | +--rw key-data binary | | | | | | +--:(local)
| | | +--:(external) | | | | | | | {local-definiti\
| | | {external-client-auth-supporte\ \ons-supported}?
| | | | | | | +--rw local-definition
| | | | | | | +--rw host-key*
| | | | | | | ct:ssh-hos\
\t-key
| | | | | | +--:(truststore)
| | | | | | {truststore-sup\
\ported,ssh-host-keys}?
| | | | | | +--rw truststore-refe\
\rence?
| | | | | | ts:host-keys-\
\ref
| | | | | +--rw ca-certs!
| | | | | | {sshcmn:ssh-x509-certs\
\,ts:x509-certificates}?
| | | | | | +--rw (local-or-truststore)
| | | | | | +--:(local)
| | | | | | | {local-definiti\
\ons-supported}?
| | | | | | | +--rw local-definition
| | | | | | | +--rw cert*
| | | | | | | | trust-anch\
\or-cert-cms
| | | | | | | +---n certificate-\
\expiration
| | | | | | | +-- expiration-\
\date
| | | | | | | yang:da\
\te-and-time
| | | | | | +--:(truststore)
| | | | | | {truststore-sup\
\ported,x509-certificates}?
| | | | | | +--rw truststore-refe\
\rence?
| | | | | | ts:certificat\
\es-ref
| | | | | +--rw client-certs!
| | | | | {sshcmn:ssh-x509-certs\
\,ts:x509-certificates}?
| | | | | +--rw (local-or-truststore)
| | | | | +--:(local)
| | | | | | {local-definiti\
\ons-supported}?
| | | | | | +--rw local-definition
| | | | | | +--rw cert*
| | | | | | | trust-anch\
\or-cert-cms
| | | | | | +---n certificate-\
\expiration
| | | | | | +-- expiration-\
\date
| | | | | | yang:da\
\te-and-time
| | | | | +--:(truststore)
| | | | | {truststore-sup\
\ported,x509-certificates}?
| | | | | +--rw truststore-refe\
\rence?
| | | | | ts:certificat\
\es-ref
| | | | +--:(external)
| | | | {external-client-auth-supporte\
\d}? \d}?
| | | +--rw client-auth-defined-elsewhere? | | | | +--rw client-auth-defined-elsewhere?
| | | empty | | | | empty
| | +--rw transport-params | | | +--rw transport-params
| | | {ssh-server-transport-params-config}? | | | | {ssh-server-transport-params-config}?
| | | +--rw host-key | | | | +--rw host-key
| | | | +--rw host-key-alg* identityref | | | | | +--rw host-key-alg* identityref
| | | +--rw key-exchange | | | | +--rw key-exchange
| | | | +--rw key-exchange-alg* identityref | | | | | +--rw key-exchange-alg* identityref
| | | +--rw encryption | | | | +--rw encryption
| | | | +--rw encryption-alg* identityref | | | | | +--rw encryption-alg* identityref
| | | +--rw mac | | | | +--rw mac
| | | +--rw mac-alg* identityref | | | | +--rw mac-alg* identityref
| | +--rw keepalives! {ssh-server-keepalives}? | | | +--rw keepalives! {ssh-server-keepalives}?
| | +--rw max-wait? uint16 | | | +--rw max-wait? uint16
| | +--rw max-attempts? uint8 | | | +--rw max-attempts? uint8
| | +--rw netconf-server-parameters
| | +--rw client-identification
| | +--rw cert-maps
| | +--rw cert-to-name* [id]
| | +--rw id uint32
| | +--rw fingerprint
| | | x509c2n:tls-fingerprint
| | +--rw map-type identityref
| | +--rw name string
| +--:(tls) {tls-listen}? | +--:(tls) {tls-listen}?
| +--rw tls | +--rw tls
| +--rw tcp-server-parameters | +--rw tcp-server-parameters
| | +--rw local-address inet:ip-address | | +--rw local-address inet:ip-address
| | +--rw local-port? inet:port-number | | +--rw local-port? inet:port-number
| | +--rw keepalives! {keepalives-supported}? | | +--rw keepalives! {keepalives-supported}?
| | +--rw idle-time uint16 | | +--rw idle-time uint16
| | +--rw max-probes uint16 | | +--rw max-probes uint16
| | +--rw probe-interval uint16 | | +--rw probe-interval uint16
| +--rw tls-server-parameters | +--rw tls-server-parameters
| +--rw server-identity | | +--rw server-identity
| | +--rw (local-or-keystore) | | | +--rw (local-or-keystore)
| | +--:(local) | | | +--:(local)
| | | {local-definitions-supported}? | | | | {local-definitions-supported}?
| | | +--rw local-definition | | | | +--rw local-definition
| | | +--rw algorithm | | | | +--rw algorithm
| | | | asymmetric-key-algorithm-t | | | | | asymmetric-key-algorithm-t
| | | +--rw public-key | | | | +--rw public-key-format?
| | | | binary | | | | | identityref
| | | +--rw (private-key-type) | | | | +--rw public-key
| | | | +--:(private-key) | | | | | binary
| | | | | +--rw private-key? | | | | +--rw private-key-format?
| | | | | binary | | | | | identityref
| | | | +--:(hidden-private-key) | | | | +--rw (private-key-type)
| | | | | +--rw hidden-private-key? | | | | | +--:(private-key)
| | | | | empty | | | | | | +--rw private-key?
| | | | +--:(encrypted-private-key) | | | | | | binary
| | | | +--rw encrypted-private-key | | | | | +--:(hidden-private-key)
| | | | +--rw (key-type) | | | | | | +--rw hidden-private-key?
| | | | | +--:(symmetric-key-re\ | | | | | | empty
| | | | | +--:(encrypted-private-key)
| | | | | +--rw encrypted-private-key
| | | | | +--rw (key-type)
| | | | | | +--:(symmetric-key-re\
\f) \f)
| | | | | | +--rw symmetric-ke\ | | | | | | | +--rw symmetric-ke\
\y-ref? leafref \y-ref? leafref
| | | | | | {keystore-\ | | | | | | | {keystore-\
\supported}? \supported}?
| | | | | +--:(asymmetric-key-r\ | | | | | | +--:(asymmetric-key-r\
\ef) \ef)
| | | | | +--rw asymmetric-k\ | | | | | | +--rw asymmetric-k\
\ey-ref? leafref \ey-ref? leafref
| | | | | {keystore-\ | | | | | | {keystore-\
\supported}? \supported}?
| | | | +--rw value? | | | | | +--rw value?
| | | | binary | | | | | binary
| | | +--rw cert? | | | | +--rw cert?
| | | | end-entity-cert-cms | | | | | end-entity-cert-cms
| | | +---n certificate-expiration | | | | +---n certificate-expiration
| | | | +-- expiration-date | | | | | +-- expiration-date
| | | | yang:date-and-time | | | | | yang:date-and-time
| | | +---x generate-certificate-signin\ | | | | +---x generate-certificate-signin\
\g-request \g-request
| | | +---w input | | | | +---w input
| | | | +---w subject binary | | | | | +---w subject binary
| | | | +---w attributes? binary | | | | | +---w attributes? binary
| | | +--ro output | | | | +--ro output
| | | +--ro certificate-signing-r\ | | | | +--ro certificate-signing-r\
\equest \equest
| | | binary | | | | binary
| | +--:(keystore) {keystore-supported}? | | | +--:(keystore) {keystore-supported}?
| | +--rw keystore-reference | | | +--rw keystore-reference
| | +--rw asymmetric-key? | | | +--rw asymmetric-key?
| | | ks:asymmetric-key-ref | | | | ks:asymmetric-key-ref
| | +--rw certificate? leafref | | | +--rw certificate? leafref
| +--rw client-authentication! | | +--rw client-authentication!
| | +--rw (required-or-optional) | | | +--rw (required-or-optional)
| | | +--:(required) | | | | +--:(required)
| | | | +--rw required? | | | | | +--rw required?
| | | | empty | | | | | empty
| | | +--:(optional) | | | | +--:(optional)
| | | +--rw optional? | | | | +--rw optional?
| | | empty | | | | empty
| | +--rw (local-or-external) | | | +--rw (local-or-external)
| | | +--:(local) | | | +--:(local)
| | | | {local-client-auth-supported}? | | | | {local-client-auth-supported}?
| | | | +--rw ca-certs? | | | | +--rw ca-certs!
| | | | | ts:certificates-ref | | | | | {ts:x509-certificates}?
| | | | | {ts:x509-certificates}? | | | | | +--rw (local-or-truststore)
| | | | +--rw client-certs? | | | | | +--:(local)
| | | | ts:certificates-ref | | | | | | {local-definitions-su\
| | | | {ts:x509-certificates}? \pported}?
| | | +--:(external) | | | | | | +--rw local-definition
| | | {external-client-auth-supporte\ | | | | | | +--rw cert*
| | | | | | | trust-anchor-cer\
\t-cms
| | | | | | +---n certificate-expira\
\tion
| | | | | | +-- expiration-date
| | | | | | yang:date-and\
\-time
| | | | | +--:(truststore)
| | | | | {truststore-supported\
\,x509-certificates}?
| | | | | +--rw truststore-reference?
| | | | | ts:certificates-ref
| | | | +--rw client-certs!
| | | | {ts:x509-certificates}?
| | | | +--rw (local-or-truststore)
| | | | +--:(local)
| | | | | {local-definitions-su\
\pported}?
| | | | | +--rw local-definition
| | | | | +--rw cert*
| | | | | | trust-anchor-cer\
\t-cms
| | | | | +---n certificate-expira\
\tion
| | | | | +-- expiration-date
| | | | | yang:date-and\
\-time
| | | | +--:(truststore)
| | | | {truststore-supported\
\,x509-certificates}?
| | | | +--rw truststore-reference?
| | | | ts:certificates-ref
| | | +--:(external)
| | | {external-client-auth-supporte\
\d}? \d}?
| | | +--rw client-auth-defined-elsewhere? | | | +--rw client-auth-defined-elsewhere?
| | | empty | | | empty
| | +--rw cert-maps | | +--rw hello-params
| | +--rw cert-to-name* [id] | | | {tls-server-hello-params-config}?
| | +--rw id uint32 | | | +--rw tls-versions
| | +--rw fingerprint | | | | +--rw tls-version* identityref
| | | x509c2n:tls-fingerprint | | | +--rw cipher-suites
| | +--rw map-type identityref | | | +--rw cipher-suite* identityref
| | +--rw name string | | +--rw keepalives! {tls-server-keepalives}?
| +--rw hello-params | | +--rw max-wait? uint16
| | {tls-server-hello-params-config}? | | +--rw max-attempts? uint8
| | +--rw tls-versions | +--rw netconf-server-parameters
| | | +--rw tls-version* identityref | +--rw client-identification
| | +--rw cipher-suites | +--rw cert-maps
| | +--rw cipher-suite* identityref | +--rw cert-to-name* [id]
| +--rw keepalives! {tls-server-keepalives}? | +--rw id uint32
| +--rw max-wait? uint16 | +--rw fingerprint
| +--rw max-attempts? uint8 | | x509c2n:tls-fingerprint
| +--rw map-type identityref
| +--rw name string
+--rw call-home! {ssh-call-home or tls-call-home}? +--rw call-home! {ssh-call-home or tls-call-home}?
+--rw netconf-client* [name] +--rw netconf-client* [name]
+--rw name string +--rw name string
+--rw endpoints +--rw endpoints
| +--rw endpoint* [name] | +--rw endpoint* [name]
| +--rw name string | +--rw name string
| +--rw (transport) | +--rw (transport)
| +--:(ssh) {ssh-call-home}? | +--:(ssh) {ssh-call-home}?
| | +--rw ssh | | +--rw ssh
| | +--rw tcp-client-parameters | | +--rw tcp-client-parameters
skipping to change at page 59, line 8 skipping to change at page 69, line 22
| | | +--rw local-address? inet:ip-address | | | +--rw local-address? inet:ip-address
| | | | {local-binding-supported}? | | | | {local-binding-supported}?
| | | +--rw local-port? inet:port-number | | | +--rw local-port? inet:port-number
| | | | {local-binding-supported}? | | | | {local-binding-supported}?
| | | +--rw keepalives! | | | +--rw keepalives!
| | | {keepalives-supported}? | | | {keepalives-supported}?
| | | +--rw idle-time uint16 | | | +--rw idle-time uint16
| | | +--rw max-probes uint16 | | | +--rw max-probes uint16
| | | +--rw probe-interval uint16 | | | +--rw probe-interval uint16
| | +--rw ssh-server-parameters | | +--rw ssh-server-parameters
| | +--rw server-identity | | | +--rw server-identity
| | | +--rw host-key* [name] | | | | +--rw host-key* [name]
| | | +--rw name string | | | | +--rw name string
| | | +--rw (host-key-type) | | | | +--rw (host-key-type)
| | | +--:(public-key) | | | | +--:(public-key)
| | | | +--rw public-key | | | | | +--rw public-key
| | | | +--rw (local-or-keystore) | | | | | +--rw (local-or-keystore)
| | | | +--:(local) | | | | | +--:(local)
| | | | | {local-defin\ | | | | | | {local-defin\
\itions-supported}? \itions-supported}?
| | | | | +--rw local-defini\ | | | | | | +--rw local-defini\
\tion \tion
| | | | | +--rw algorithm | | | | | | +--rw algorithm
| | | | | | asymmet\ | | | | | | | asymmet\
\ric-key-algorithm-t \ric-key-algorithm-t
| | | | | +--rw public-key | | | | | | +--rw public-ke\
| | | | | | binary \y-format?
| | | | | +--rw (private-\ | | | | | | | identit\
\yref
| | | | | | +--rw public-key
| | | | | | | binary
| | | | | | +--rw private-k\
\ey-format?
| | | | | | | identit\
\yref
| | | | | | +--rw (private-\
\key-type) \key-type)
| | | | | +--:(private\ | | | | | | +--:(private\
\-key) \-key)
| | | | | | +--rw pri\ | | | | | | | +--rw pri\
\vate-key? \vate-key?
| | | | | | b\ | | | | | | | b\
\inary \inary
| | | | | +--:(hidden-\ | | | | | | +--:(hidden-\
\private-key) \private-key)
| | | | | | +--rw hid\ | | | | | | | +--rw hid\
\den-private-key? \den-private-key?
| | | | | | e\ | | | | | | | e\
\mpty \mpty
| | | | | +--:(encrypt\ | | | | | | +--:(encrypt\
\ed-private-key) \ed-private-key)
| | | | | +--rw enc\ | | | | | | +--rw enc\
\rypted-private-key \rypted-private-key
| | | | | +--rw \ | | | | | | +--rw \
\(key-type) \(key-type)
| | | | | | +--\ | | | | | | | +--\
\:(symmetric-key-ref) \:(symmetric-key-ref)
| | | | | | | \ | | | | | | | | \
\+--rw symmetric-key-ref? leafref \+--rw symmetric-key-ref? leafref
| | | | | | | \ | | | | | | | | \
\ {keystore-supported}? \ {keystore-supported}?
| | | | | | +--\ | | | | | | | +--\
\:(asymmetric-key-ref) \:(asymmetric-key-ref)
| | | | | | \ | | | | | | | \
\+--rw asymmetric-key-ref? leafref \+--rw asymmetric-key-ref? leafref
| | | | | | \ | | | | | | | \
\ {keystore-supported}? \ {keystore-supported}?
| | | | | +--rw \ | | | | | | +--rw \
\value? \value?
| | | | | \ | | | | | | \
\ binary \ binary
| | | | +--:(keystore) | | | | | +--:(keystore)
| | | | {keystore-su\ | | | | | {keystore-su\
\pported}? \pported}?
| | | | +--rw keystore-ref\ | | | | | +--rw keystore-ref\
\erence? \erence?
| | | | ks:asymmet\ | | | | | ks:asymmet\
\ric-key-ref \ric-key-ref
| | | +--:(certificate) | | | | +--:(certificate)
| | | +--rw certificate | | | | +--rw certificate
| | | {sshcmn:ssh-x509-ce\ | | | | {sshcmn:ssh-x509-ce\
\rts}? \rts}?
| | | +--rw (local-or-keystore) | | | | +--rw (local-or-keystore)
| | | +--:(local) | | | | +--:(local)
| | | | {local-defin\ | | | | | {local-defin\
\itions-supported}? \itions-supported}?
| | | | +--rw local-defini\ | | | | | +--rw local-defini\
\tion \tion
| | | | +--rw algorithm | | | | | +--rw algorithm
| | | | | asymmet\ | | | | | | asymmet\
\ric-key-algorithm-t \ric-key-algorithm-t
| | | | +--rw public-key | | | | | +--rw public-ke\
| | | | | binary \y-format?
| | | | +--rw (private-\ | | | | | | identit\
\yref
| | | | | +--rw public-key
| | | | | | binary
| | | | | +--rw private-k\
\ey-format?
| | | | | | identit\
\yref
| | | | | +--rw (private-\
\key-type) \key-type)
| | | | | +--:(private\ | | | | | | +--:(private\
\-key) \-key)
| | | | | | +--rw pri\ | | | | | | | +--rw pri\
\vate-key? \vate-key?
| | | | | | b\ | | | | | | | b\
\inary \inary
| | | | | +--:(hidden-\ | | | | | | +--:(hidden-\
\private-key) \private-key)
| | | | | | +--rw hid\ | | | | | | | +--rw hid\
\den-private-key? \den-private-key?
| | | | | | e\ | | | | | | | e\
\mpty \mpty
| | | | | +--:(encrypt\ | | | | | | +--:(encrypt\
\ed-private-key) \ed-private-key)
| | | | | +--rw enc\ | | | | | | +--rw enc\
\rypted-private-key \rypted-private-key
| | | | | +--rw \ | | | | | | +--rw \
\(key-type) \(key-type)
| | | | | | +--\ | | | | | | | +--\
\:(symmetric-key-ref) \:(symmetric-key-ref)
| | | | | | | \ | | | | | | | | \
\+--rw symmetric-key-ref? leafref \+--rw symmetric-key-ref? leafref
| | | | | | | \ | | | | | | | | \
\ {keystore-supported}? \ {keystore-supported}?
| | | | | | +--\ | | | | | | | +--\
\:(asymmetric-key-ref) \:(asymmetric-key-ref)
| | | | | | \ | | | | | | | \
\+--rw asymmetric-key-ref? leafref \+--rw asymmetric-key-ref? leafref
| | | | | | \ | | | | | | | \
\ {keystore-supported}? \ {keystore-supported}?
| | | | | +--rw \ | | | | | | +--rw \
\value? \value?
| | | | | \ | | | | | | \
\ binary \ binary
| | | | +--rw cert? | | | | | +--rw cert?
| | | | | end-ent\ | | | | | | end-ent\
\ity-cert-cms \ity-cert-cms
| | | | +---n certifica\ | | | | | +---n certifica\
\te-expiration \te-expiration
| | | | | +-- expirati\ | | | | | | +-- expirati\
\on-date \on-date
| | | | | yang\ | | | | | | yang\
\:date-and-time \:date-and-time
| | | | +---x generate-\ | | | | | +---x generate-\
\certificate-signing-request \certificate-signing-request
| | | | +---w input | | | | | +---w input
| | | | | +---w sub\ | | | | | | +---w sub\
\ject \ject
| | | | | | b\ | | | | | | | b\
\inary \inary
| | | | | +---w att\ | | | | | | +---w att\
\ributes? \ributes?
| | | | | b\ | | | | | | b\
\inary \inary
| | | | +--ro output | | | | | +--ro output
| | | | +--ro cer\ | | | | | +--ro cer\
\tificate-signing-request \tificate-signing-request
| | | | b\ | | | | | b\
\inary \inary
| | | +--:(keystore) | | | | +--:(keystore)
| | | {keystore-su\ | | | | {keystore-su\
\pported}? \pported}?
| | | +--rw keystore-ref\ | | | | +--rw keystore-ref\
\erence \erence
| | | +--rw asymmetri\ | | | | +--rw asymmetri\
\c-key? \c-key?
| | | | ks:asym\ | | | | | ks:asym\
\metric-key-ref \metric-key-ref
| | | +--rw certifica\ | | | | +--rw certifica\
\te? leafref \te? leafref
| | +--rw client-authentication | | | +--rw client-authentication
| | | +--rw supported-authentication-metho\ | | | | +--rw supported-authentication-metho\
\ds \ds
| | | | +--rw publickey? empty | | | | | +--rw publickey? empty
| | | | +--rw passsword? empty | | | | | +--rw passsword? empty
| | | | +--rw hostbased? empty | | | | | +--rw hostbased? empty
| | | | +--rw none? empty | | | | | +--rw none? empty
| | | | +--rw other* string | | | | | +--rw other* string
| | | +--rw (local-or-external) | | | | +--rw (local-or-external)
| | | +--:(local) | | | | +--:(local)
| | | | {local-client-auth-suppo\ | | | | | {local-client-auth-suppo\
\rted}? \rted}?
| | | | +--rw users | | | | | +--rw users
| | | | +--rw user* [name] | | | | | +--rw user* [name]
| | | | +--rw name | | | | | +--rw name
| | | | | string | | | | | | string
| | | | +--rw password? | | | | | +--rw password?
| | | | | ianach:crypt-hash | | | | | | ianach:crypt-hash
| | | | +--rw authorized-key* | | | | | +--rw host-keys!
| | | | [name] | | | | | | {ts:ssh-host-key\
| | | | +--rw name \s}?
| | | | | string | | | | | | +--rw (local-or-trust\
| | | | +--rw algorithm \store)
| | | | | string | | | | | | +--:(local)
| | | | +--rw key-data | | | | | | | {local-de\
| | | | binary \finitions-supported}?
| | | +--:(external) | | | | | | | +--rw local-def\
| | | {external-client-auth-su\ \inition
| | | | | | | +--rw host-k\
\ey*
| | | | | | | ct:s\
\sh-host-key
| | | | | | +--:(truststore)
| | | | | | {truststo\
\re-supported,ssh-host-keys}?
| | | | | | +--rw truststor\
\e-reference?
| | | | | | ts:host\
\-keys-ref
| | | | | +--rw ca-certs!
| | | | | | {sshcmn:ssh-x509\
\-certs,ts:x509-certificates}?
| | | | | | +--rw (local-or-trust\
\store)
| | | | | | +--:(local)
| | | | | | | {local-de\
\finitions-supported}?
| | | | | | | +--rw local-def\
\inition
| | | | | | | +--rw cert*
| | | | | | | | trus\
\t-anchor-cert-cms
| | | | | | | +---n certif\
\icate-expiration
| | | | | | | +-- expir\
\ation-date
| | | | | | | y\
\ang:date-and-time
| | | | | | +--:(truststore)
| | | | | | {truststo\
\re-supported,x509-certificates}?
| | | | | | +--rw truststor\
\e-reference?
| | | | | | ts:cert\
\ificates-ref
| | | | | +--rw client-certs!
| | | | | {sshcmn:ssh-x509\
\-certs,ts:x509-certificates}?
| | | | | +--rw (local-or-trust\
\store)
| | | | | +--:(local)
| | | | | | {local-de\
\finitions-supported}?
| | | | | | +--rw local-def\
\inition
| | | | | | +--rw cert*
| | | | | | | trus\
\t-anchor-cert-cms
| | | | | | +---n certif\
\icate-expiration
| | | | | | +-- expir\
\ation-date
| | | | | | y\
\ang:date-and-time
| | | | | +--:(truststore)
| | | | | {truststo\
\re-supported,x509-certificates}?
| | | | | +--rw truststor\
\e-reference?
| | | | | ts:cert\
\ificates-ref
| | | | +--:(external)
| | | | {external-client-auth-su\
\pported}? \pported}?
| | | +--rw client-auth-defined-else\ | | | | +--rw client-auth-defined-else\
\where? \where?
| | | empty | | | | empty
| | +--rw transport-params | | | +--rw transport-params
| | | {ssh-server-transport-params-co\ | | | | {ssh-server-transport-params-co\
\nfig}? \nfig}?
| | | +--rw host-key | | | | +--rw host-key
| | | | +--rw host-key-alg* identityref | | | | | +--rw host-key-alg* identityref
| | | +--rw key-exchange | | | | +--rw key-exchange
| | | | +--rw key-exchange-alg* | | | | | +--rw key-exchange-alg*
| | | | identityref | | | | | identityref
| | | +--rw encryption | | | | +--rw encryption
| | | | +--rw encryption-alg* | | | | | +--rw encryption-alg*
| | | | identityref | | | | | identityref
| | | +--rw mac | | | | +--rw mac
| | | +--rw mac-alg* identityref | | | | +--rw mac-alg* identityref
| | +--rw keepalives! | | | +--rw keepalives!
| | {ssh-server-keepalives}? | | | {ssh-server-keepalives}?
| | +--rw max-wait? uint16 | | | +--rw max-wait? uint16
| | +--rw max-attempts? uint8 | | | +--rw max-attempts? uint8
| | +--rw netconf-server-parameters
| | +--rw client-identification
| | +--rw cert-maps
| | +--rw cert-to-name* [id]
| | +--rw id uint32
| | +--rw fingerprint
| | | x509c2n:tls-fingerprint
| | +--rw map-type
| | | identityref
| | +--rw name string
| +--:(tls) {tls-call-home}? | +--:(tls) {tls-call-home}?
| +--rw tls | +--rw tls
| +--rw tcp-client-parameters | +--rw tcp-client-parameters
| | +--rw remote-address inet:host | | +--rw remote-address inet:host
| | +--rw remote-port? inet:port-number | | +--rw remote-port? inet:port-number
| | +--rw local-address? inet:ip-address | | +--rw local-address? inet:ip-address
| | | {local-binding-supported}? | | | {local-binding-supported}?
| | +--rw local-port? inet:port-number | | +--rw local-port? inet:port-number
| | | {local-binding-supported}? | | | {local-binding-supported}?
| | +--rw keepalives! | | +--rw keepalives!
| | {keepalives-supported}? | | {keepalives-supported}?
| | +--rw idle-time uint16 | | +--rw idle-time uint16
| | +--rw max-probes uint16 | | +--rw max-probes uint16
| | +--rw probe-interval uint16 | | +--rw probe-interval uint16
| +--rw tls-server-parameters | +--rw tls-server-parameters
| +--rw server-identity | | +--rw server-identity
| | +--rw (local-or-keystore) | | | +--rw (local-or-keystore)
| | +--:(local) | | | +--:(local)
| | | {local-definitions-suppo\ | | | | {local-definitions-suppo\
\rted}? \rted}?
| | | +--rw local-definition | | | | +--rw local-definition
| | | +--rw algorithm | | | | +--rw algorithm
| | | | asymmetric-key-algo\ | | | | | asymmetric-key-algo\
\rithm-t \rithm-t
| | | +--rw public-key | | | | +--rw public-key-format?
| | | | binary | | | | | identityref
| | | +--rw (private-key-type) | | | | +--rw public-key
| | | | +--:(private-key) | | | | | binary
| | | | | +--rw private-key? | | | | +--rw private-key-format?
| | | | | binary | | | | | identityref
| | | | +--:(hidden-private-key) | | | | +--rw (private-key-type)
| | | | | +--rw hidden-private-\ | | | | | +--:(private-key)
| | | | | | +--rw private-key?
| | | | | | binary
| | | | | +--:(hidden-private-key)
| | | | | | +--rw hidden-private-\
\key? \key?
| | | | | empty | | | | | | empty
| | | | +--:(encrypted-private-k\ | | | | | +--:(encrypted-private-k\
\ey) \ey)
| | | | +--rw encrypted-priva\ | | | | | +--rw encrypted-priva\
\te-key \te-key
| | | | +--rw (key-type) | | | | | +--rw (key-type)
| | | | | +--:(symmetric-\ | | | | | | +--:(symmetric-\
\key-ref) \key-ref)
| | | | | | +--rw symmet\ | | | | | | | +--rw symmet\
\ric-key-ref? leafref \ric-key-ref? leafref
| | | | | | {key\ | | | | | | | {key\
\store-supported}? \store-supported}?
| | | | | +--:(asymmetric\ | | | | | | +--:(asymmetric\
\-key-ref) \-key-ref)
| | | | | +--rw asymme\ | | | | | | +--rw asymme\
\tric-key-ref? leafref \tric-key-ref? leafref
| | | | | {key\ | | | | | | {key\
\store-supported}? \store-supported}?
| | | | +--rw value? | | | | | +--rw value?
| | | | binary | | | | | binary
| | | +--rw cert? | | | | +--rw cert?
| | | | end-entity-cert-cms | | | | | end-entity-cert-cms
| | | +---n certificate-expiration | | | | +---n certificate-expiration
| | | | +-- expiration-date | | | | | +-- expiration-date
| | | | yang:date-and-ti\ | | | | | yang:date-and-ti\
\me \me
| | | +---x generate-certificate-\ | | | | +---x generate-certificate-\
\signing-request \signing-request
| | | +---w input | | | | +---w input
| | | | +---w subject | | | | | +---w subject
| | | | | binary | | | | | | binary
| | | | +---w attributes? | | | | | +---w attributes?
| | | | binary | | | | | binary
| | | +--ro output | | | | +--ro output
| | | +--ro certificate-sig\ | | | | +--ro certificate-sig\
\ning-request \ning-request
| | | binary | | | | binary
| | +--:(keystore) | | | +--:(keystore)
| | {keystore-supported}? | | | {keystore-supported}?
| | +--rw keystore-reference | | | +--rw keystore-reference
| | +--rw asymmetric-key? | | | +--rw asymmetric-key?
| | | ks:asymmetric-key-r\ | | | | ks:asymmetric-key-r\
\ef \ef
| | +--rw certificate? lea\ | | | +--rw certificate? lea\
\fref \fref
| +--rw client-authentication! | | +--rw client-authentication!
| | +--rw (required-or-optional) | | | +--rw (required-or-optional)
| | | +--:(required) | | | | +--:(required)
| | | | +--rw required? | | | | | +--rw required?
| | | | empty | | | | | empty
| | | +--:(optional) | | | | +--:(optional)
| | | +--rw optional? | | | | +--rw optional?
| | | empty | | | | empty
| | +--rw (local-or-external) | | | +--rw (local-or-external)
| | | +--:(local) | | | | +--:(local)
| | | | {local-client-auth-suppo\ | | | | | {local-client-auth-suppo\
\rted}? \rted}?
| | | | +--rw ca-certs? | | | | | +--rw ca-certs!
| | | | | ts:certificates-ref | | | | | | {ts:x509-certificates}?
| | | | | {ts:x509-certificates}? | | | | | | +--rw (local-or-truststore)
| | | | +--rw client-certs? | | | | | | +--:(local)
| | | | ts:certificates-ref | | | | | | | {local-definiti\
| | | | {ts:x509-certificates}? \ons-supported}?
| | | +--:(external) | | | | | | | +--rw local-definition
| | | {external-client-auth-su\ | | | | | | | +--rw cert*
| | | | | | | | trust-anch\
\or-cert-cms
| | | | | | | +---n certificate-\
\expiration
| | | | | | | +-- expiration-\
\date
| | | | | | | yang:da\
\te-and-time
| | | | | | +--:(truststore)
| | | | | | {truststore-sup\
\ported,x509-certificates}?
| | | | | | +--rw truststore-refe\
\rence?
| | | | | | ts:certificat\
\es-ref
| | | | | +--rw client-certs!
| | | | | {ts:x509-certificates}?
| | | | | +--rw (local-or-truststore)
| | | | | +--:(local)
| | | | | | {local-definiti\
\ons-supported}?
| | | | | | +--rw local-definition
| | | | | | +--rw cert*
| | | | | | | trust-anch\
\or-cert-cms
| | | | | | +---n certificate-\
\expiration
| | | | | | +-- expiration-\
\date
| | | | | | yang:da\
\te-and-time
| | | | | +--:(truststore)
| | | | | {truststore-sup\
\ported,x509-certificates}?
| | | | | +--rw truststore-refe\
\rence?
| | | | | ts:certificat\
\es-ref
| | | | +--:(external)
| | | | {external-client-auth-su\
\pported}? \pported}?
| | | +--rw client-auth-defined-else\ | | | | +--rw client-auth-defined-else\
\where? \where?
| | | empty | | | | empty
| | +--rw cert-maps | | | +--rw cert-maps
| | +--rw cert-to-name* [id] | | | +--rw cert-to-name* [id]
| | +--rw id uint32 | | | +--rw id uint32
| | +--rw fingerprint | | | +--rw fingerprint
| | | x509c2n:tls-fingerprint | | | | x509c2n:tls-fingerprint
| | +--rw map-type | | | +--rw map-type
| | | identityref | | | | identityref
| | +--rw name string | | | +--rw name string
| +--rw hello-params | | +--rw hello-params
| | {tls-server-hello-params-config\ | | | {tls-server-hello-params-config\
\}? \}?
| | +--rw tls-versions | | | +--rw tls-versions
| | | +--rw tls-version* identityref | | | | +--rw tls-version* identityref
| | +--rw cipher-suites | | | +--rw cipher-suites
| | +--rw cipher-suite* identityref | | | +--rw cipher-suite* identityref
| +--rw keepalives! | | +--rw keepalives!
| {tls-server-keepalives}? | | {tls-server-keepalives}?
| +--rw max-wait? uint16 | | +--rw max-wait? uint16
| +--rw max-attempts? uint8 | | +--rw max-attempts? uint8
| +--rw netconf-server-parameters
| +--rw client-identification
| +--rw cert-maps
| +--rw cert-to-name* [id]
| +--rw id uint32
| +--rw fingerprint
| | x509c2n:tls-fingerprint
| +--rw map-type
| | identityref
| +--rw name string
+--rw connection-type +--rw connection-type
| +--rw (connection-type) | +--rw (connection-type)
| +--:(persistent-connection) | +--:(persistent-connection)
| | +--rw persistent! | | +--rw persistent!
| +--:(periodic-connection) | +--:(periodic-connection)
| +--rw periodic! | +--rw periodic!
| +--rw period? uint16 | +--rw period? uint16
| +--rw anchor-time? yang:date-and-time | +--rw anchor-time? yang:date-and-time
| +--rw idle-timeout? uint16 | +--rw idle-timeout? uint16
+--rw reconnect-strategy +--rw reconnect-strategy
skipping to change at page 69, line 8 skipping to change at page 82, line 20
B.14. 13 to 14 B.14. 13 to 14
o Adjusting from change in TLS client model (removing the top-level o Adjusting from change in TLS client model (removing the top-level
'certificate' container), by swapping refining-in a 'mandatory 'certificate' container), by swapping refining-in a 'mandatory
true' statement with a 'must' statement outside the 'uses' true' statement with a 'must' statement outside the 'uses'
statement. statement.
o Updated examples to reflect ietf-crypto-types change (e.g., o Updated examples to reflect ietf-crypto-types change (e.g.,
identities --> enumerations) identities --> enumerations)
B.15. 14 to 15
o Refactored both the client and server modules similar to how the
ietf-restconf-server module was refactored in -13 of that draft,
and the ietf-restconf-client grouping.
Acknowledgements Acknowledgements
The authors would like to thank for following for lively discussions The authors would like to thank for following for lively discussions
on list and in the halls (ordered by last name): Andy Bierman, Martin on list and in the halls (ordered by last name): Andy Bierman, Martin
Bjorklund, Benoit Claise, Ramkumar Dhanapal, Mehmet Ersue, Balazs Bjorklund, Benoit Claise, Ramkumar Dhanapal, Mehmet Ersue, Balazs
Kovacs, David Lamparter, Alan Luchuk, Ladislav Lhotka, Radek Krejci, Kovacs, David Lamparter, Alan Luchuk, Ladislav Lhotka, Radek Krejci,
Tom Petch, Juergen Schoenwaelder, Phil Shafer, Sean Turner, and Bert Tom Petch, Juergen Schoenwaelder, Phil Shafer, Sean Turner, and Bert
Wijnen. Wijnen.
Author's Address Author's Address
 End of changes. 335 change blocks. 
1256 lines changed or deleted 1907 lines changed or added

This html diff was produced by rfcdiff 1.47. The latest version is available from http://tools.ietf.org/tools/rfcdiff/