--- 1/draft-ietf-netconf-netconf-client-server-14.txt 2019-10-18 15:13:14.334356703 -0700 +++ 2/draft-ietf-netconf-netconf-client-server-15.txt 2019-10-18 15:13:14.510361181 -0700 @@ -1,18 +1,18 @@ NETCONF Working Group K. Watsen Internet-Draft Watsen Networks -Intended status: Standards Track July 2, 2019 -Expires: January 3, 2020 +Intended status: Standards Track October 18, 2019 +Expires: April 20, 2020 NETCONF Client and Server Models - draft-ietf-netconf-netconf-client-server-14 + draft-ietf-netconf-netconf-client-server-15 Abstract This document defines two YANG modules, one module to configure a NETCONF client and the other module to configure a NETCONF server. Both modules support both the SSH and TLS transport protocols, and support both standard NETCONF and NETCONF Call Home connections. Editorial Note (To be removed by RFC Editor) @@ -44,42 +44,42 @@ o "YYYY" --> the assigned RFC value for I-D.ietf-netconf-ssh-client- server o "ZZZZ" --> the assigned RFC value for I-D.ietf-netconf-tls-client- server Artwork in this document contains placeholder values for the date of 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: o Appendix B. Change Log Status of This Memo This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at https://datatracker.ietf.org/drafts/current/. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference 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 (c) 2019 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents @@ -88,53 +88,54 @@ include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License. Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 3 2. Terminology . . . . . . . . . . . . . . . . . . . . . . . . . 4 3. The NETCONF Client Model . . . . . . . . . . . . . . . . . . 4 3.1. Tree Diagram . . . . . . . . . . . . . . . . . . . . . . 4 - 3.2. Example Usage . . . . . . . . . . . . . . . . . . . . . . 5 - 3.3. YANG Module . . . . . . . . . . . . . . . . . . . . . . . 8 - 4. The NETCONF Server Model . . . . . . . . . . . . . . . . . . 18 - 4.1. Tree Diagram . . . . . . . . . . . . . . . . . . . . . . 18 - 4.2. Example Usage . . . . . . . . . . . . . . . . . . . . . . 20 - 4.3. YANG Module . . . . . . . . . . . . . . . . . . . . . . . 25 - 5. Security Considerations . . . . . . . . . . . . . . . . . . . 36 - 6. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 37 - 6.1. The IETF XML Registry . . . . . . . . . . . . . . . . . . 37 - 6.2. The YANG Module Names Registry . . . . . . . . . . . . . 38 - 7. References . . . . . . . . . . . . . . . . . . . . . . . . . 38 - 7.1. Normative References . . . . . . . . . . . . . . . . . . 38 - 7.2. Informative References . . . . . . . . . . . . . . . . . 39 - Appendix A. Expanded Tree Diagrams . . . . . . . . . . . . . . . 41 - A.1. Expanded Tree Diagram for 'ietf-netconf-client' . . . . . 41 - A.2. Expanded Tree Diagram for 'ietf-netconf-server' . . . . . 52 - Appendix B. Change Log . . . . . . . . . . . . . . . . . . . . . 66 - B.1. 00 to 01 . . . . . . . . . . . . . . . . . . . . . . . . 66 - B.2. 01 to 02 . . . . . . . . . . . . . . . . . . . . . . . . 66 - B.3. 02 to 03 . . . . . . . . . . . . . . . . . . . . . . . . 66 - B.4. 03 to 04 . . . . . . . . . . . . . . . . . . . . . . . . 66 - B.5. 04 to 05 . . . . . . . . . . . . . . . . . . . . . . . . 66 - B.6. 05 to 06 . . . . . . . . . . . . . . . . . . . . . . . . 67 - B.7. 06 to 07 . . . . . . . . . . . . . . . . . . . . . . . . 67 - B.8. 07 to 08 . . . . . . . . . . . . . . . . . . . . . . . . 67 - B.9. 08 to 09 . . . . . . . . . . . . . . . . . . . . . . . . 67 - B.10. 09 to 10 . . . . . . . . . . . . . . . . . . . . . . . . 67 - B.11. 10 to 11 . . . . . . . . . . . . . . . . . . . . . . . . 68 - B.12. 11 to 12 . . . . . . . . . . . . . . . . . . . . . . . . 68 - B.13. 12 to 13 . . . . . . . . . . . . . . . . . . . . . . . . 68 - B.14. 13 to 14 . . . . . . . . . . . . . . . . . . . . . . . . 68 - Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . . 69 - Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 69 + 3.2. Example Usage . . . . . . . . . . . . . . . . . . . . . . 6 + 3.3. YANG Module . . . . . . . . . . . . . . . . . . . . . . . 9 + 4. The NETCONF Server Model . . . . . . . . . . . . . . . . . . 20 + 4.1. Tree Diagram . . . . . . . . . . . . . . . . . . . . . . 20 + 4.2. Example Usage . . . . . . . . . . . . . . . . . . . . . . 22 + 4.3. YANG Module . . . . . . . . . . . . . . . . . . . . . . . 28 + 5. Security Considerations . . . . . . . . . . . . . . . . . . . 40 + 6. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 41 + 6.1. The IETF XML Registry . . . . . . . . . . . . . . . . . . 41 + 6.2. The YANG Module Names Registry . . . . . . . . . . . . . 42 + 7. References . . . . . . . . . . . . . . . . . . . . . . . . . 42 + 7.1. Normative References . . . . . . . . . . . . . . . . . . 42 + 7.2. Informative References . . . . . . . . . . . . . . . . . 43 + Appendix A. Expanded Tree Diagrams . . . . . . . . . . . . . . . 45 + A.1. Expanded Tree Diagram for 'ietf-netconf-client' . . . . . 45 + A.2. Expanded Tree Diagram for 'ietf-netconf-server' . . . . . 60 + Appendix B. Change Log . . . . . . . . . . . . . . . . . . . . . 79 + B.1. 00 to 01 . . . . . . . . . . . . . . . . . . . . . . . . 79 + B.2. 01 to 02 . . . . . . . . . . . . . . . . . . . . . . . . 79 + B.3. 02 to 03 . . . . . . . . . . . . . . . . . . . . . . . . 79 + B.4. 03 to 04 . . . . . . . . . . . . . . . . . . . . . . . . 79 + B.5. 04 to 05 . . . . . . . . . . . . . . . . . . . . . . . . 80 + B.6. 05 to 06 . . . . . . . . . . . . . . . . . . . . . . . . 80 + B.7. 06 to 07 . . . . . . . . . . . . . . . . . . . . . . . . 80 + B.8. 07 to 08 . . . . . . . . . . . . . . . . . . . . . . . . 80 + B.9. 08 to 09 . . . . . . . . . . . . . . . . . . . . . . . . 80 + B.10. 09 to 10 . . . . . . . . . . . . . . . . . . . . . . . . 81 + B.11. 10 to 11 . . . . . . . . . . . . . . . . . . . . . . . . 81 + B.12. 11 to 12 . . . . . . . . . . . . . . . . . . . . . . . . 81 + B.13. 12 to 13 . . . . . . . . . . . . . . . . . . . . . . . . 82 + B.14. 13 to 14 . . . . . . . . . . . . . . . . . . . . . . . . 82 + B.15. 14 to 15 . . . . . . . . . . . . . . . . . . . . . . . . 82 + Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . . 82 + Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 82 1. Introduction This document defines two YANG [RFC7950] modules, one module to configure a NETCONF [RFC6241] client and the other module to configure a NETCONF server. Both modules support both NETCONF over SSH [RFC6242] and NETCONF over TLS [RFC7589] and NETCONF Call Home connections [RFC8071]. 2. Terminology @@ -163,84 +164,93 @@ This tree diagram only shows the nodes defined in this module; it does show the nodes defined by "grouping" statements used by this module. Please see Appendix A.1 for a tree diagram that illustrates what the module looks like with all the "grouping" statements expanded. module: ietf-netconf-client +--rw netconf-client - +---u netconf-client-grouping + +---u netconf-client-app-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}? | +-- netconf-server* [name] | +-- name? string | +-- endpoints | | +-- endpoint* [name] | | +-- name? string - | | +-- (transport) - | | +--:(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 + | | +---u netconf-client-initiate-stack-grouping | +-- connection-type | | +-- (connection-type) | | +--:(persistent-connection) | | | +-- persistent! | | +--:(periodic-connection) | | +-- periodic! | | +-- period? uint16 | | +-- anchor-time? yang:date-and-time | | +-- idle-timeout? uint16 | +-- reconnect-strategy | +-- start-with? enumeration | +-- max-attempts? uint8 +-- listen! {ssh-listen or tls-listen}? +-- idle-timeout? uint16 +-- endpoint* [name] +-- name? string - +-- (transport) - +--:(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 + +---u netconf-client-listen-stack-grouping 3.2. Example Usage The following example illustrates configuring a NETCONF client to initiate connections, using both the SSH and TLS transport protocols, as well as listening for call-home connections, again using both the SSH and TLS transport protocols. This example is consistent with the examples presented in Section 2 of [I-D.ietf-netconf-trust-anchors] and Section 3.2 of [I-D.ietf-netconf-keystore]. - =========== NOTE: '\' line wrapping per BCP XX (RFC XXXX) =========== + ========== NOTE: '\' line wrapping per BCP XXX (RFC XXXX) =========== corp-fw1 @@ -259,66 +269,79 @@ foobar rsa2048 base64encodedvalue== base64encodedvalue== - explicitly-trusted-server-ca-certs - explicitly-trusted-server-certs + + explicitly-trusted-server-ca\ + -certs + + + explicitly-trusted-server-ce\ + rts + 30 3 + + + corp-fw2.example.com - + corp-fw2.example.com 15 3 30 - + - foobar - rsa2048 base64encodedvalue== base64encodedvalue== + base64encodedvalue== - - explicitly-trusted-server-ca-certs - explicitly-trusted-server-certs + + explicitly-trusted-server-ca\ + -certs + + + explicitly-trusted-server-ce\ + rts + 30 3 + - - + + + + + last-connected @@ -336,40 +359,51 @@ foobar rsa2048 base64encodedvalue== base64encodedvalue== - explicitly-trusted-server-ca-certs - explicitly-trusted-server-certs - explicitly-trusted-ssh-host-keys + + explicitly-trusted-server-ca-cer\ + ts + + + explicitly-trusted-server-certs<\ + /truststore-reference> + + + explicitly-trusted-ssh-host-keys\ + + + + + 3.3. YANG Module This YANG module has normative references to [RFC6242], [RFC6991], [RFC7589], [RFC8071], [I-D.kwatsen-netconf-tcp-client-server], [I-D.ietf-netconf-ssh-client-server], and [I-D.ietf-netconf-tls-client-server]. - file "ietf-netconf-client@2019-07-02.yang" + file "ietf-netconf-client@2019-10-18.yang" + module ietf-netconf-client { yang-version 1.1; namespace "urn:ietf:params:xml:ns:yang:ietf-netconf-client"; prefix ncc; import ietf-yang-types { prefix yang; reference "RFC 6991: Common YANG Data Types"; } @@ -380,28 +414,27 @@ "RFC AAAA: YANG Groupings for TCP Clients and TCP Servers"; } import ietf-tcp-server { prefix tcps; reference "RFC AAAA: YANG Groupings for TCP Clients and TCP Servers"; } import ietf-ssh-client { prefix sshc; - revision-date 2019-07-02; // stable grouping definitions + revision-date 2019-10-18; // stable grouping definitions reference "RFC BBBB: YANG Groupings for SSH Clients and SSH Servers"; } - import ietf-tls-client { prefix tlsc; - revision-date 2019-07-02; // stable grouping definitions + revision-date 2019-10-18; // stable grouping definitions reference "RFC CCCC: YANG Groupings for TLS Clients and TLS Servers"; } organization "IETF NETCONF (Network Configuration) Working Group"; contact "WG Web: WG List: @@ -418,34 +451,34 @@ Redistribution and use in source and binary forms, with or without modification, is permitted pursuant to, and subject to the license terms contained in, the Simplified BSD License set forth in Section 4.c of the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info). This version of this YANG module is part of RFC XXXX (https://www.rfc-editor.org/info/rfcXXXX); see the RFC itself for full legal notices.; + The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL', 'SHALL NOT', 'SHOULD', 'SHOULD NOT', 'RECOMMENDED', 'NOT RECOMMENDED', 'MAY', and 'OPTIONAL' in this document are to be interpreted as described in BCP 14 (RFC 2119) (RFC 8174) when, and only when, they appear in all capitals, as shown here."; - revision 2019-07-02 { + revision 2019-10-18 { description "Initial version"; reference "RFC XXXX: NETCONF Client and Server Models"; } - // Features feature ssh-initiate { description "The 'ssh-initiate' feature indicates that the NETCONF client supports initiating SSH connections to NETCONF servers."; reference "RFC 6242: Using the NETCONF Protocol over Secure Shell (SSH)"; } @@ -466,63 +499,38 @@ server call-home SSH connections."; reference "RFC 8071: NETCONF Call Home and RESTCONF Call Home"; } feature tls-listen { description "The 'tls-listen' feature indicates that the NETCONF client supports opening a port to listen for incoming NETCONF server call-home TLS connections."; - reference "RFC 8071: NETCONF Call Home and RESTCONF Call Home"; } // Groupings grouping netconf-client-grouping { description - "Top-level grouping for NETCONF client configuration."; - container initiate { - if-feature "ssh-initiate or tls-initiate"; - presence "Enables client to initiate TCP connections"; - description - "Configures client initiating underlying TCP connections."; - list netconf-server { - key "name"; - min-elements 1; - description - "List of NETCONF servers the NETCONF client is to - initiate connections to in parallel."; - leaf name { - type string; - description - "An arbitrary name for the NETCONF server."; + "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."; } - container endpoints { - description - "Container for the list of endpoints."; - list endpoint { - key "name"; - min-elements 1; - ordered-by user; - description - "A user-ordered list of endpoints that the NETCONF - client will attempt to connect to in the specified - sequence. Defining more than one enables - high-availability."; - leaf name { - type string; + grouping netconf-client-initiate-stack-grouping { description - "An arbitrary name for the endpoint."; - } + "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."; @@ -540,20 +548,26 @@ 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 @@ -574,23 +588,154 @@ 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; } } - } // choice transport + } + } + } // 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 { + if-feature "ssh-initiate or tls-initiate"; + presence "Enables client to initiate TCP connections"; + description + "Configures client initiating underlying TCP connections."; + list netconf-server { + key "name"; + min-elements 1; + description + "List of NETCONF servers the NETCONF client is to + maintain simultaneous connections with."; + leaf name { + type string; + description + "An arbitrary name for the NETCONF server."; + } + container endpoints { + description + "Container for the list of endpoints."; + list endpoint { + key "name"; + min-elements 1; + ordered-by user; + description + "A user-ordered list of endpoints that the NETCONF + client will attempt to connect to in the specified + sequence. Defining more than one enables + high-availability."; + leaf name { + type string; + description + "An arbitrary name for the endpoint."; + } + uses netconf-client-initiate-stack-grouping; } // list endpoint } // container endpoints container connection-type { description "Indicates the NETCONF client's preference for how the NETCONF connection is maintained."; choice connection-type { mandatory true; description @@ -739,96 +884,30 @@ list endpoint { key "name"; min-elements 1; description "List of endpoints to listen for NETCONF connections."; leaf name { type string; description "An arbitrary name for the NETCONF listen endpoint."; } - 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; - } - } - } - 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 + uses netconf-client-listen-stack-grouping; } // endpoint } // listen - } // netconf-client + } // netconf-client-app-grouping // Protocol accessible node, for servers that implement this // module. container netconf-client { - uses netconf-client-grouping; + uses netconf-client-app-grouping; description "Top-level container for NETCONF client configuration."; } } 4. The NETCONF Server Model The NETCONF server model presented in this section supports both listening for connections as well as initiating call-home @@ -845,59 +924,75 @@ This tree diagram only shows the nodes defined in this module; it does show the nodes defined by "grouping" statements used by this module. Please see Appendix A.2 for a tree diagram that illustrates what the module looks like with all the "grouping" statements expanded. module: ietf-netconf-server +--rw netconf-server - +---u netconf-server-grouping + +---u netconf-server-app-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}? | +-- idle-timeout? uint16 | +-- endpoint* [name] | +-- name? string - | +-- (transport) - | +--:(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 + | +---u netconf-server-listen-stack-grouping +-- call-home! {ssh-call-home or tls-call-home}? +-- netconf-client* [name] +-- name? string +-- endpoints | +-- endpoint* [name] | +-- name? string - | +-- (transport) - | +--:(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 + | +---u netconf-server-callhome-stack-grouping +-- connection-type | +-- (connection-type) | +--:(persistent-connection) | | +-- persistent! | +--:(periodic-connection) | +-- periodic! | +-- period? uint16 | +-- anchor-time? yang:date-and-time | +-- idle-timeout? uint16 +-- reconnect-strategy @@ -908,21 +1003,21 @@ The following example illustrates configuring a NETCONF server to listen for NETCONF client connections using both the SSH and TLS transport protocols, as well as configuring call-home to two NETCONF clients, one using SSH and the other using TLS. This example is consistent with the examples presented in Section 2 of [I-D.ietf-netconf-trust-anchors] and Section 3.2 of [I-D.ietf-netconf-keystore]. - =========== NOTE: '\' line wrapping per BCP XX (RFC XXXX) =========== + ========== NOTE: '\' line wrapping per BCP XXX (RFC XXXX) =========== netconf/ssh @@ -942,59 +1037,73 @@ + + + + netconf/tls 192.0.2.7 rsa2048 base64encodedvalue== base64encodedvalue== base64encodedvalue== - explicitly-trusted-client-ca-certs - explicitly-trusted-client-certs + + explicitly-trusted-client-ca-cer\ + ts + + + explicitly-trusted-client-certs<\ + /truststore-reference> + + + + + 1 11:0A:05:11:00 x509c2n:san-any 2 B3:4F:A1:8C:54 x509c2n:specified scooby-doo - - + + + config-mgr east-data-center @@ -1016,20 +1124,23 @@ + + + west-data-center west.config-mgr.example.com @@ -1045,20 +1156,23 @@ + + + 300 60 @@ -1085,43 +1200,51 @@ rsa2048 base64encodedvalue== base64encodedvalue== base64encodedvalue== - explicitly-trusted-client-ca-certs - explicitly-trusted-client-certs + + explicitly-trusted-client-ca\ + -certs + + + explicitly-trusted-client-ce\ + rts + + + + 30 + 3 + + + + 1 11:0A:05:11:00 x509c2n:san-any 2 B3:4F:A1:8C:54 x509c2n:specified scooby-doo - - - 30 - 3 - - + + west-data-center west.analytics.example.com 15 @@ -1133,24 +1256,36 @@ rsa2048 base64encodedvalue== base64encodedvalue== base64encodedvalue== - explicitly-trusted-client-ca-certs - explicitly-trusted-client-certs + + explicitly-trusted-client-ca\ + -certs + + + explicitly-trusted-client-ce\ + rts + + + + 30 + 3 + + + + 1 11:0A:05:11:00 x509c2n:san-any 2 B3:4F:A1:8C:54 x509c2n:specified @@ -1148,28 +1283,25 @@ 1 11:0A:05:11:00 x509c2n:san-any 2 B3:4F:A1:8C:54 x509c2n:specified scooby-doo + - - - 30 - 3 - - + + first-listed 3 @@ -1178,21 +1310,22 @@ 4.3. YANG Module This YANG module has normative references to [RFC6242], [RFC6991], [RFC7407], [RFC7589], [RFC8071], [I-D.kwatsen-netconf-tcp-client-server], [I-D.ietf-netconf-ssh-client-server], and [I-D.ietf-netconf-tls-client-server]. - file "ietf-netconf-server@2019-07-02.yang" + file "ietf-netconf-server@2019-10-18.yang" + module ietf-netconf-server { yang-version 1.1; namespace "urn:ietf:params:xml:ns:yang:ietf-netconf-server"; prefix ncs; import ietf-yang-types { prefix yang; reference "RFC 6991: Common YANG Data Types"; } @@ -1210,28 +1343,28 @@ } import ietf-tcp-server { prefix tcps; reference "RFC AAAA: YANG Groupings for TCP Clients and TCP Servers"; } import ietf-ssh-server { prefix sshs; - revision-date 2019-07-02; // stable grouping definitions + revision-date 2019-10-18; // stable grouping definitions reference "RFC BBBB: YANG Groupings for SSH Clients and SSH Servers"; } import ietf-tls-server { prefix tlss; - revision-date 2019-07-02; // stable grouping definitions + revision-date 2019-10-18; // stable grouping definitions reference "RFC CCCC: YANG Groupings for TLS Clients and TLS Servers"; } organization "IETF NETCONF (Network Configuration) Working Group"; contact "WG Web: WG List: @@ -1257,21 +1390,21 @@ (https://www.rfc-editor.org/info/rfcXXXX); see the RFC itself for full legal notices.; The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL', 'SHALL NOT', 'SHOULD', 'SHOULD NOT', 'RECOMMENDED', 'NOT RECOMMENDED', 'MAY', and 'OPTIONAL' in this document are to be interpreted as described in BCP 14 (RFC 2119) (RFC 8174) when, and only when, they appear in all capitals, as shown here."; - revision 2019-07-02 { + revision 2019-10-18 { description "Initial version"; reference "RFC XXXX: NETCONF Client and Server Models"; } // Features feature ssh-listen { description @@ -1309,50 +1441,64 @@ server supports initiating a NETCONF over TLS call home connection to NETCONF clients."; reference "RFC 8071: NETCONF Call Home and RESTCONF Call Home"; } // Groupings grouping netconf-server-grouping { description - "Top-level grouping for NETCONF server configuration."; - container listen { - if-feature "ssh-listen or tls-listen"; - presence - "Enables server to listen for NETCONF client connections."; + "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 - "Configures listen behavior"; - leaf idle-timeout { - type uint16; - units "seconds"; - default 3600; // one hour + "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 - "Specifies the maximum number of seconds that a NETCONF - session may remain idle. A NETCONF session will be - dropped if it is idle for an interval longer than this - number of seconds. If set to zero, then the server - will never drop a session because it is idle. Sessions - that have a notification subscription active are never - dropped."; + "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."; + } - list endpoint { - key "name"; - min-elements 1; - description - "List of endpoints to listen for NETCONF connections."; - leaf name { - type string; - description - "An arbitrary name for the NETCONF listen endpoint."; } + } + + 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."; @@ -1370,29 +1516,34 @@ 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 @@ -1405,79 +1556,38 @@ 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 netconf-server-parameters { + description + "A wrapper around the NETCONF server parameters + to avoid name collisions."; + uses ncs:netconf-server-grouping; } } - } } } - container call-home { - if-feature "ssh-call-home or tls-call-home"; - presence - "Enables the NETCONF server to initiate the underlying - transport connection to NETCONF clients."; - description "Configures call home behavior."; - list netconf-client { - key "name"; - min-elements 1; - description - "List of NETCONF clients the NETCONF server is to - initiate call-home connections to in parallel."; - leaf name { - type string; - description - "An arbitrary name for the remote NETCONF client."; - } - container endpoints { - description - "Container for the list of endpoints."; - list endpoint { - key "name"; - min-elements 1; - ordered-by user; - description - "A non-empty user-ordered list of endpoints for this - NETCONF server to try to connect to in sequence. - Defining more than one enables high-availability."; - leaf name { - type string; + + grouping netconf-server-callhome-stack-grouping { description - "An arbitrary name for this endpoint."; - } + "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."; @@ -1495,20 +1605,26 @@ 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 @@ -1552,25 +1668,104 @@ 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 { + if-feature "ssh-listen or tls-listen"; + presence + "Enables server to listen for NETCONF client connections."; + description + "Configures listen behavior"; + leaf idle-timeout { + type uint16; + units "seconds"; + default 3600; // one hour + description + "Specifies the maximum number of seconds that a NETCONF + session may remain idle. A NETCONF session will be + dropped if it is idle for an interval longer than this + number of seconds. If set to zero, then the server + will never drop a session because it is idle. Sessions + that have a notification subscription active are never + dropped."; + } + list endpoint { + key "name"; + min-elements 1; + description + "List of endpoints to listen for NETCONF connections."; + leaf name { + type string; + description + "An arbitrary name for the NETCONF listen endpoint."; + } + uses netconf-server-listen-stack-grouping; + } + } + container call-home { + if-feature "ssh-call-home or tls-call-home"; + presence + "Enables the NETCONF server to initiate the underlying + transport connection to NETCONF clients."; + description "Configures call home behavior."; + list netconf-client { + key "name"; + min-elements 1; + description + "List of NETCONF clients the NETCONF server is to + maintain simultaneous call-home connections with."; + leaf name { + type string; + description + "An arbitrary name for the remote NETCONF client."; + } + container endpoints { + description + "Container for the list of endpoints."; + list endpoint { + key "name"; + min-elements 1; + ordered-by user; + description + "A non-empty user-ordered list of endpoints for this + NETCONF server to try to connect to in sequence. + Defining more than one enables high-availability."; + leaf name { + type string; + description + "An arbitrary name for this endpoint."; + } + uses netconf-server-callhome-stack-grouping; + } } - } // tls - } // choice - } // endpoint - } // endpoints container connection-type { description "Indicates the NETCONF server's preference for how the NETCONF connection is maintained."; choice connection-type { mandatory true; description "Selects between available connection types."; case persistent-connection { container persistent { @@ -1578,22 +1773,22 @@ to be maintained."; description "Maintain a persistent connection to the NETCONF client. If the connection goes down, immediately start trying to reconnect to the NETCONF client, using the reconnection strategy. This connection type minimizes any NETCONF client to NETCONF server data-transfer delay, albeit at the expense of holding resources longer."; - } // container persistent - } // case persistent-connection + } + } case periodic-connection { container periodic { presence "Indicates that a periodic connection is to be maintained."; description "Periodically connect to the NETCONF client. This connection type increases resource utilization, albeit with increased delay in NETCONF client to NETCONF client interactions. @@ -1636,21 +1831,21 @@ units "seconds"; default 120; // two minutes description "Specifies the maximum number of seconds that a NETCONF session may remain idle. A NETCONF session will be dropped if it is idle for an interval longer than this number of seconds. If set to zero, then the server will never drop a session because it is idle."; } - } // container periodic + } } // case periodic-connection } // choice connection-type } // container connection-type container reconnect-strategy { description "The reconnection strategy directs how a NETCONF server reconnects to a NETCONF client, after discovering its connection to the client has dropped, even if due to a reboot. The NETCONF server starts with the specified endpoint and tries to connect to it max-attempts times @@ -1690,31 +1885,32 @@ } default "3"; description "Specifies the number times the NETCONF server tries to connect to a specific endpoint before moving on to the next endpoint in the list (round robin)."; } } // container reconnect-strategy } // list netconf-client } // container call-home - } // grouping netconf-server-grouping + } // grouping netconf-server-app-grouping // Protocol accessible node, for servers that implement this // module. container netconf-server { - uses netconf-server-grouping; + uses netconf-server-app-grouping; description "Top-level container for NETCONF server configuration."; } } + 5. Security Considerations The YANG module defined in this document uses groupings defined in [I-D.kwatsen-netconf-tcp-client-server], [I-D.ietf-netconf-ssh-client-server], and [I-D.ietf-netconf-tls-client-server]. Please see the Security Considerations section in those documents for concerns related those groupings. @@ -1788,31 +1984,31 @@ namespace: urn:ietf:params:xml:ns:yang:ietf-netconf-server prefix: ncs reference: RFC XXXX 7. References 7.1. Normative References [I-D.ietf-netconf-keystore] 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] Watsen, K., Wu, G., and L. Xia, "YANG Groupings for SSH Clients and SSH Servers", draft-ietf-netconf-ssh-client- server-14 (work in progress), June 2019. [I-D.ietf-netconf-tls-client-server] Watsen, K., Wu, G., and L. Xia, "YANG Groupings for TLS 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] Watsen, K. and M. Scharf, "YANG Groupings for TCP Clients and TCP Servers", draft-kwatsen-netconf-tcp-client- server-02 (work in progress), April 2019. [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, . @@ -1887,21 +2083,21 @@ The following tree diagram [RFC8340] provides an overview of the data model for the "ietf-netconf-client" module. This tree diagram shows all the nodes defined in 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 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 +--rw netconf-client +--rw initiate! {ssh-initiate or tls-initiate}? | +--rw netconf-server* [name] | +--rw name string | +--rw endpoints | | +--rw endpoint* [name] | | +--rw name string | | +--rw (transport) @@ -1913,290 +2109,389 @@ | | | | +--rw local-address? inet:ip-address | | | | | {local-binding-supported}? | | | | +--rw local-port? inet:port-number | | | | | {local-binding-supported}? | | | | +--rw keepalives! | | | | {keepalives-supported}? | | | | +--rw idle-time uint16 | | | | +--rw max-probes uint16 | | | | +--rw probe-interval uint16 | | | +--rw ssh-client-parameters - | | | +--rw client-identity - | | | | +--rw username? string - | | | | +--rw (auth-type) - | | | | +--:(password) - | | | | | +--rw password? string - | | | | +--:(public-key) - | | | | | +--rw public-key - | | | | | +--rw (local-or-keystore) - | | | | | +--:(local) - | | | | | | {local-definiti\ + | | | | +--rw client-identity + | | | | | +--rw username? string + | | | | | +--rw (auth-type) + | | | | | +--:(password) + | | | | | | +--rw password? string + | | | | | +--:(public-key) + | | | | | | +--rw public-key + | | | | | | +--rw (local-or-keystore) + | | | | | | +--:(local) + | | | | | | | {local-definiti\ \ons-supported}? - | | | | | | +--rw local-definition - | | | | | | +--rw algorithm - | | | | | | | asymmetric\ + | | | | | | | +--rw local-definition + | | | | | | | +--rw algorithm + | | | | | | | | asymmetric\ \-key-algorithm-t - | | | | | | +--rw public-key - | | | | | | | binary - | | | | | | +--rw (private-key\ + | | | | | | | +--rw public-key-f\ + \ormat? + | | | | | | | | identityref + | | | | | | | +--rw public-key + | | | | | | | | binary + | | | | | | | +--rw private-key-\ + \format? + | | | | | | | | identityref + | | | | | | | +--rw (private-key\ \-type) - | | | | | | +--:(private-ke\ + | | | | | | | +--:(private-ke\ \y) - | | | | | | | +--rw privat\ + | | | | | | | | +--rw privat\ \e-key? - | | | | | | | bina\ + | | | | | | | | bina\ \ry - | | | | | | +--:(hidden-pri\ + | | | | | | | +--:(hidden-pri\ \vate-key) - | | | | | | | +--rw hidden\ + | | | | | | | | +--rw hidden\ \-private-key? - | | | | | | | empty - | | | | | | +--:(encrypted-\ + | | | | | | | | empty + | | | | | | | +--:(encrypted-\ \private-key) - | | | | | | +--rw encryp\ + | | | | | | | +--rw encryp\ \ted-private-key - | | | | | | +--rw (ke\ + | | | | | | | +--rw (ke\ \y-type) - | | | | | | | +--:(s\ + | | | | | | | | +--:(s\ \ymmetric-key-ref) - | | | | | | | | +--\ + | | | | | | | | | +--\ \rw symmetric-key-ref? leafref - | | | | | | | | \ + | | | | | | | | | \ \ {keystore-supported}? - | | | | | | | +--:(a\ + | | | | | | | | +--:(a\ \symmetric-key-ref) - | | | | | | | +--\ + | | | | | | | | +--\ \rw asymmetric-key-ref? leafref - | | | | | | | \ + | | | | | | | | \ \ {keystore-supported}? - | | | | | | +--rw val\ + | | | | | | | +--rw val\ \ue? - | | | | | | b\ + | | | | | | | b\ + \inary - | | | | | +--:(keystore) - | | | | | {keystore-suppo\ + | | | | | | +--:(keystore) + | | | | | | {keystore-suppo\ \rted}? - | | | | | +--rw keystore-refere\ + | | | | | | +--rw keystore-refere\ \nce? - | | | | | ks:asymmetric\ + | | | | | | ks:asymmetric\ \-key-ref - | | | | +--:(certificate) - | | | | +--rw certificate - | | | | {sshcmn:ssh-x509-certs\ + | | | | | +--:(certificate) + | | | | | +--rw certificate + | | | | | {sshcmn:ssh-x509-certs\ \}? - | | | | +--rw (local-or-keystore) - | | | | +--:(local) - | | | | | {local-definiti\ + | | | | | +--rw (local-or-keystore) + | | | | | +--:(local) + | | | | | | {local-definiti\ \ons-supported}? - | | | | | +--rw local-definition - | | | | | +--rw algorithm - | | | | | | asymmetric\ + | | | | | | +--rw local-definition + | | | | | | +--rw algorithm + | | | | | | | asymmetric\ \-key-algorithm-t - | | | | | +--rw public-key - | | | | | | binary - | | | | | +--rw (private-key\ + | | | | | | +--rw public-key-f\ + \ormat? + | | | | | | | identityref + | | | | | | +--rw public-key + | | | | | | | binary + | | | | | | +--rw private-key-\ + \format? + | | | | | | | identityref + | | | | | | +--rw (private-key\ \-type) - | | | | | | +--:(private-ke\ + | | | | | | | +--:(private-ke\ \y) - | | | | | | | +--rw privat\ + | | | | | | | | +--rw privat\ \e-key? - | | | | | | | bina\ + | | | | | | | | bina\ \ry - | | | | | | +--:(hidden-pri\ + | | | | | | | +--:(hidden-pri\ \vate-key) - | | | | | | | +--rw hidden\ + | | | | | | | | +--rw hidden\ \-private-key? - | | | | | | | empty - | | | | | | +--:(encrypted-\ + | | | | | | | | empty + | | | | | | | +--:(encrypted-\ \private-key) - | | | | | | +--rw encryp\ + | | | | | | | +--rw encryp\ \ted-private-key - | | | | | | +--rw (ke\ + | | | | | | | +--rw (ke\ \y-type) - | | | | | | | +--:(s\ + | | | | | | | | +--:(s\ + \ymmetric-key-ref) - | | | | | | | | +--\ + | | | | | | | | | +--\ \rw symmetric-key-ref? leafref - | | | | | | | | \ + | | | | | | | | | \ \ {keystore-supported}? - | | | | | | | +--:(a\ + | | | | | | | | +--:(a\ \symmetric-key-ref) - | | | | | | | +--\ + | | | | | | | | +--\ \rw asymmetric-key-ref? leafref - | | | | | | | \ + | | | | | | | | \ \ {keystore-supported}? - | | | | | | +--rw val\ - + | | | | | | | +--rw val\ \ue? - | | | | | | b\ + | | | | | | | b\ \inary - | | | | | +--rw cert? - | | | | | | end-entity\ + | | | | | | +--rw cert? + | | | | | | | end-entity\ \-cert-cms - | | | | | +---n certificate-\ + | | | | | | +---n certificate-\ \expiration - | | | | | | +-- expiration-\ + | | | | | | | +-- expiration-\ \date - | | | | | | yang:da\ + | | | | | | | yang:da\ \te-and-time - | | | | | +---x generate-cer\ + | | | | | | +---x generate-cer\ \tificate-signing-request - | | | | | +---w input - | | | | | | +---w subject - | | | | | | | bina\ + | | | | | | +---w input + | | | | | | | +---w subject + | | | | | | | | bina\ \ry - | | | | | | +---w attrib\ + | | | | | | | +---w attrib\ \utes? - | | | | | | bina\ + | | | | | | | bina\ \ry - | | | | | +--ro output - | | | | | +--ro certif\ + | | | | | | +--ro output + | | | | | | +--ro certif\ \icate-signing-request - | | | | | bina\ + | | | | | | bina\ \ry - | | | | +--:(keystore) - | | | | {keystore-suppo\ + | | | | | +--:(keystore) + | | | | | {keystore-suppo\ \rted}? - | | | | +--rw keystore-refere\ + | | | | | +--rw keystore-refere\ \nce - | | | | +--rw asymmetric-k\ + | | | | | +--rw asymmetric-k\ \ey? - | | | | | ks:asymmet\ + | | | | | | ks:asymmet\ \ric-key-ref - | | | | +--rw certificate?\ + | | | | | +--rw certificate?\ \ leafref - | | | +--rw server-authentication - | | | | +--rw ssh-host-keys? - | | | | | ts:host-keys-ref - | | | | | {ts:ssh-host-keys}? - | | | | +--rw ca-certs? - | | | | | ts:certificates-ref - | | | | | {sshcmn:ssh-x509-certs,ts:x5\ + | | | | +--rw server-authentication + | | | | | +--rw ssh-host-keys! + | | | | | | {ts:ssh-host-keys}? + | | | | | | +--rw (local-or-truststore) + | | | | | | +--:(local) + | | | | | | | {local-definitions-su\ + \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}? - | | | | +--rw server-certs? - | | | | ts:certificates-ref - | | | | {sshcmn:ssh-x509-certs,ts:x5\ + | | | | | | +--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 server-certs! + | | | | | {sshcmn:ssh-x509-certs,ts:x5\ \09-certificates}? - | | | +--rw transport-params - | | | | {ssh-client-transport-params-co\ + | | | | | +--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 transport-params + | | | | | {ssh-client-transport-params-co\ \nfig}? - | | | | +--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 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-initiate}? | | +--rw tls | | +--rw tcp-client-parameters | | | +--rw remote-address inet:host | | | +--rw remote-port? inet:port-number | | | +--rw local-address? inet:ip-address | | | | {local-binding-supported}? | | | +--rw local-port? inet:port-number | | | | {local-binding-supported}? | | | +--rw keepalives! | | | {keepalives-supported}? | | | +--rw idle-time uint16 | | | +--rw max-probes uint16 | | | +--rw probe-interval uint16 | | +--rw tls-client-parameters - | | +--rw client-identity - | | | +--rw (local-or-keystore) - | | | +--:(local) - | | | | {local-definitions-suppo\ + | | | +--rw client-identity + | | | | +--rw (local-or-keystore) + | | | | +--:(local) + | | | | | {local-definitions-suppo\ + \rted}? - | | | | +--rw local-definition - | | | | +--rw algorithm - | | | | | asymmetric-key-algo\ + | | | | | +--rw local-definition + | | | | | +--rw algorithm + | | | | | | asymmetric-key-algo\ \rithm-t - | | | | +--rw public-key - | | | | | binary - | | | | +--rw (private-key-type) - | | | | | +--:(private-key) - | | | | | | +--rw private-key? + | | | | | +--rw public-key-format? + | | | | | | identityref + | | | | | +--rw public-key | | | | | | binary - | | | | | +--:(hidden-private-key) - | | | | | | +--rw hidden-private-\ + | | | | | +--rw private-key-format? + | | | | | | identityref + | | | | | +--rw (private-key-type) + | | | | | | +--:(private-key) + | | | | | | | +--rw private-key? + | | | | | | | binary + | | | | | | +--:(hidden-private-key) + | | | | | | | +--rw hidden-private-\ \key? - | | | | | | empty - | | | | | +--:(encrypted-private-k\ + | | | | | | | empty + | | | | | | +--:(encrypted-private-k\ \ey) - | | | | | +--rw encrypted-priva\ + | | | | | | +--rw encrypted-priva\ \te-key - | | | | | +--rw (key-type) - | | | | | | +--:(symmetric-\ + | | | | | | +--rw (key-type) + | | | | | | | +--:(symmetric-\ \key-ref) - | | | | | | | +--rw symmet\ + | | | | | | | | +--rw symmet\ \ric-key-ref? leafref - | | | | | | | {key\ + | | | | | | | | {key\ \store-supported}? - | | | | | | +--:(asymmetric\ + | | | | | | | +--:(asymmetric\ \-key-ref) - | | | | | | +--rw asymme\ + | | | | | | | +--rw asymme\ \tric-key-ref? leafref - | | | | | | {key\ + | | | | | | | {key\ \store-supported}? - | | | | | +--rw value? - | | | | | binary - | | | | +--rw cert? - | | | | | end-entity-cert-cms - | | | | +---n certificate-expiration - | | | | | +-- expiration-date - | | | | | yang:date-and-ti\ + | | | | | | +--rw value? + | | | | | | binary + | | | | | +--rw cert? + | | | | | | end-entity-cert-cms + | | | | | +---n certificate-expiration + | | | | | | +-- expiration-date + | | | | | | yang:date-and-ti\ \me - | | | | +---x generate-certificate-\ + | | | | | +---x generate-certificate-\ \signing-request - | | | | +---w input - | | | | | +---w subject + | | | | | +---w input + | | | | | | +---w subject + | | | | | | | binary + | | | | | | +---w attributes? | | | | | | binary - | | | | | +---w attributes? - | | | | | binary - | | | | +--ro output - | | | | +--ro certificate-sig\ + | | | | | +--ro output + | | | | | +--ro certificate-sig\ \ning-request - | | | | binary - | | | +--:(keystore) - | | | {keystore-supported}? - | | | +--rw keystore-reference - | | | +--rw asymmetric-key? - | | | | ks:asymmetric-key-r\ + | | | | | binary + | | | | +--:(keystore) + | | | | {keystore-supported}? + | | | | +--rw keystore-reference + | | | | +--rw asymmetric-key? + | | | | | ks:asymmetric-key-r\ \ef - | | | +--rw certificate? lea\ - + | | | | +--rw certificate? lea\ \fref - | | +--rw server-authentication - | | | +--rw ca-certs? - | | | | ts:certificates-ref + | | | +--rw server-authentication + | | | | +--rw ca-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 server-certs! | | | | {ts:x509-certificates}? - | | | +--rw server-certs? - | | | ts:certificates-ref - | | | {ts:x509-certificates}? - | | +--rw hello-params - | | | {tls-client-hello-params-config\ + | | | | +--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-version* identityref - | | | +--rw cipher-suites - | | | +--rw cipher-suite* identityref - | | +--rw keepalives! - | | {tls-client-keepalives}? - | | +--rw max-wait? uint16 - | | +--rw max-attempts? uint8 + | | | | +--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 | +--rw connection-type | | +--rw (connection-type) | | +--:(persistent-connection) | | | +--rw persistent! | | +--:(periodic-connection) | | +--rw periodic! | | +--rw period? uint16 | | +--rw anchor-time? yang:date-and-time | | +--rw idle-timeout? uint16 | +--rw reconnect-strategy @@ -2210,534 +2505,738 @@ +--:(ssh) {ssh-listen}? | +--rw ssh | +--rw tcp-server-parameters | | +--rw local-address inet:ip-address | | +--rw local-port? inet:port-number | | +--rw keepalives! {keepalives-supported}? | | +--rw idle-time uint16 | | +--rw max-probes uint16 | | +--rw probe-interval uint16 | +--rw ssh-client-parameters - | +--rw client-identity - | | +--rw username? string - | | +--rw (auth-type) - | | +--:(password) - | | | +--rw password? string - | | +--:(public-key) - | | | +--rw public-key - | | | +--rw (local-or-keystore) - | | | +--:(local) - | | | | {local-definitions-su\ + | | +--rw client-identity + | | | +--rw username? string + | | | +--rw (auth-type) + | | | +--:(password) + | | | | +--rw password? string + | | | +--:(public-key) + | | | | +--rw public-key + | | | | +--rw (local-or-keystore) + | | | | +--:(local) + | | | | | {local-definitions-su\ \pported}? - | | | | +--rw local-definition - | | | | +--rw algorithm - | | | | | asymmetric-key-a\ + | | | | | +--rw local-definition + | | | | | +--rw algorithm + | | | | | | asymmetric-key-a\ \lgorithm-t - | | | | +--rw public-key - | | | | | binary - | | | | +--rw (private-key-type) - | | | | +--:(private-key) - | | | | | +--rw private-key? - | | | | | binary - | | | | +--:(hidden-private-k\ + | | | | | +--rw public-key-format? + | | | | | | identityref + | | | | | +--rw public-key + | | | | | | binary + | | | | | +--rw private-key-format? + | | | | | | identityref + | | | | | +--rw (private-key-type) + | | | | | +--:(private-key) + | | | | | | +--rw private-key? + | | | | | | binary + | | | | | +--:(hidden-private-k\ \ey) - | | | | | +--rw hidden-priva\ + | | | | | | +--rw hidden-priva\ \te-key? - | | | | | empty - | | | | +--:(encrypted-privat\ + | | | | | | empty + | | | | | +--:(encrypted-privat\ \e-key) - | | | | +--rw encrypted-pr\ + | | | | | +--rw encrypted-pr\ \ivate-key - | | | | +--rw (key-type) - | | | | | +--:(symmetr\ + | | | | | +--rw (key-type) + | | | | | | +--:(symmetr\ \ic-key-ref) - | | | | | | +--rw sym\ + | | | | | | | +--rw sym\ \metric-key-ref? leafref - | | | | | | {\ + | | | | | | | {\ \keystore-supported}? - | | | | | +--:(asymmet\ + | | | | | | +--:(asymmet\ \ric-key-ref) - | | | | | +--rw asy\ + | | | | | | +--rw asy\ \mmetric-key-ref? leafref - | | | | | {\ + | | | | | | {\ \keystore-supported}? - | | | | +--rw value? - | | | | binary - | | | +--:(keystore) - | | | {keystore-supported}? - | | | +--rw keystore-reference? - | | | ks:asymmetric-key-r\ + | | | | | +--rw value? + | | | | | binary + | | | | +--:(keystore) + | | | | {keystore-supported}? + | | | | +--rw keystore-reference? + | | | | ks:asymmetric-key-r\ \ef - | | +--:(certificate) - | | +--rw certificate - | | {sshcmn:ssh-x509-certs}? - | | +--rw (local-or-keystore) - | | +--:(local) - | | | {local-definitions-su\ + | | | +--:(certificate) + | | | +--rw certificate + | | | {sshcmn:ssh-x509-certs}? + | | | +--rw (local-or-keystore) + | | | +--:(local) + | | | | {local-definitions-su\ \pported}? - | | | +--rw local-definition - | | | +--rw algorithm - | | | | asymmetric-key-a\ + | | | | +--rw local-definition + | | | | +--rw algorithm + | | | | | asymmetric-key-a\ \lgorithm-t - | | | +--rw public-key - | | | | binary - | | | +--rw (private-key-type) - | | | | +--:(private-key) - | | | | | +--rw private-key? + | | | | +--rw public-key-format? + | | | | | identityref + | | | | +--rw public-key | | | | | binary - | | | | +--:(hidden-private-k\ + | | | | +--rw private-key-format? + | | | | | identityref + | | | | +--rw (private-key-type) + | | | | | +--:(private-key) + | | | | | | +--rw private-key? + | | | | | | binary + | | | | | +--:(hidden-private-k\ \ey) - | | | | | +--rw hidden-priva\ + | | | | | | +--rw hidden-priva\ \te-key? - | | | | | empty - | | | | +--:(encrypted-privat\ + | | | | | | empty + | | | | | +--:(encrypted-privat\ \e-key) - | | | | +--rw encrypted-pr\ + | | | | | +--rw encrypted-pr\ \ivate-key - | | | | +--rw (key-type) - | | | | | +--:(symmetr\ + | | | | | +--rw (key-type) + | | | | | | +--:(symmetr\ \ic-key-ref) - | | | | | | +--rw sym\ + | | | | | | | +--rw sym\ \metric-key-ref? leafref - | | | | | | {\ + | | | | | | | {\ \keystore-supported}? - | | | | | +--:(asymmet\ + | | | | | | +--:(asymmet\ \ric-key-ref) - | | | | | +--rw asy\ + | | | | | | +--rw asy\ \mmetric-key-ref? leafref - | | | | | {\ + | | | | | | {\ \keystore-supported}? - | | | | +--rw value? - | | | | binary - | | | +--rw cert? - | | | | end-entity-cert-\ + | | | | | +--rw value? + | | | | | binary + | | | | +--rw cert? + | | | | | end-entity-cert-\ \cms - | | | +---n certificate-expira\ + | | | | +---n certificate-expira\ \tion - | | | | +-- expiration-date - | | | | yang:date-and\ - + | | | | | +-- expiration-date + | | | | | yang:date-and\ \-time - | | | +---x generate-certifica\ + | | | | +---x generate-certifica\ \te-signing-request - | | | +---w input - | | | | +---w subject + | | | | +---w input + | | | | | +---w subject + | | | | | | binary + | | | | | +---w attributes? | | | | | binary - | | | | +---w attributes? - | | | | binary - | | | +--ro output - | | | +--ro certificate-\ + | | | | +--ro output + | | | | +--ro certificate-\ \signing-request - | | | binary - | | +--:(keystore) - | | {keystore-supported}? - | | +--rw keystore-reference - | | +--rw asymmetric-key? - | | | ks:asymmetric-ke\ + | | | | binary + | | | +--:(keystore) + | | | {keystore-supported}? + | | | +--rw keystore-reference + | | | +--rw asymmetric-key? + | | | | ks:asymmetric-ke\ \y-ref - | | +--rw certificate? \ + | | | +--rw certificate? \ \leafref - | +--rw server-authentication - | | +--rw ssh-host-keys? ts:host-keys-ref - | | | {ts:ssh-host-keys}? - | | +--rw ca-certs? ts:certificates-ref - | | | {sshcmn:ssh-x509-certs,ts:x509-cer\ + | | +--rw server-authentication + | | | +--rw ssh-host-keys! {ts:ssh-host-keys}? + | | | | +--rw (local-or-truststore) + | | | | +--:(local) + | | | | | {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}? - | | +--rw server-certs? ts:certificates-ref - | | {sshcmn:ssh-x509-certs,ts:x509-cer\ + | | | | +--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 server-certs! + | | | {sshcmn:ssh-x509-certs,ts:x509-cer\ \tificates}? - | +--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 (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 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}? +--rw tls +--rw tcp-server-parameters | +--rw local-address inet:ip-address | +--rw local-port? inet:port-number | +--rw keepalives! {keepalives-supported}? | +--rw idle-time uint16 | +--rw max-probes uint16 | +--rw probe-interval uint16 +--rw tls-client-parameters - +--rw client-identity - | +--rw (local-or-keystore) - | +--:(local) - | | {local-definitions-supported}? - | | +--rw local-definition - | | +--rw algorithm - | | | asymmetric-key-algorithm-t - | | +--rw public-key - | | | binary - | | +--rw (private-key-type) - | | | +--:(private-key) - | | | | +--rw private-key? + | +--rw client-identity + | | +--rw (local-or-keystore) + | | +--:(local) + | | | {local-definitions-supported}? + | | | +--rw local-definition + | | | +--rw algorithm + | | | | asymmetric-key-algorithm-t + | | | +--rw public-key-format? + | | | | identityref + | | | +--rw public-key | | | | binary - | | | +--:(hidden-private-key) - | | | | +--rw hidden-private-key? - | | | | empty - | | | +--:(encrypted-private-key) - | | | +--rw encrypted-private-key - | | | +--rw (key-type) - | | | | +--:(symmetric-key-re\ + | | | +--rw private-key-format? + | | | | identityref + | | | +--rw (private-key-type) + | | | | +--:(private-key) + | | | | | +--rw private-key? + | | | | | binary + | | | | +--:(hidden-private-key) + | | | | | +--rw hidden-private-key? + | | | | | empty + | | | | +--:(encrypted-private-key) + | | | | +--rw encrypted-private-key + | | | | +--rw (key-type) + | | | | | +--:(symmetric-key-re\ \f) - | | | | | +--rw symmetric-ke\ + | | | | | | +--rw symmetric-ke\ \y-ref? leafref - | | | | | {keystore-\ + | | | | | | {keystore-\ \supported}? - | | | | +--:(asymmetric-key-r\ + | | | | | +--:(asymmetric-key-r\ \ef) - | | | | +--rw asymmetric-k\ + | | | | | +--rw asymmetric-k\ \ey-ref? leafref - | | | | {keystore-\ + | | | | | {keystore-\ \supported}? - | | | +--rw value? + | | | | +--rw value? + | | | | binary + | | | +--rw cert? + | | | | end-entity-cert-cms + | | | +---n certificate-expiration + | | | | +-- expiration-date + | | | | yang:date-and-time + | | | +---x generate-certificate-signin\ + \g-request + | | | +---w input + | | | | +---w subject binary + | | | | +---w attributes? binary + | | | +--ro output + | | | +--ro certificate-signing-r\ + \equest | | | binary - | | +--rw cert? - | | | end-entity-cert-cms - | | +---n certificate-expiration + | | +--:(keystore) {keystore-supported}? + | | +--rw keystore-reference + | | +--rw asymmetric-key? + | | | ks:asymmetric-key-ref + | | +--rw certificate? leafref + | +--rw server-authentication + | | +--rw ca-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 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 - | | +---x generate-certificate-signin\ - \g-request - | | +---w input - | | | +---w subject binary - | | | +---w attributes? binary - | | +--ro output - | | +--ro certificate-signing-r\ - \equest - | | binary - | +--:(keystore) {keystore-supported}? - | +--rw keystore-reference - | +--rw asymmetric-key? - | | ks:asymmetric-key-ref - | +--rw certificate? leafref - +--rw server-authentication - | +--rw ca-certs? ts:certificates-ref - | | {ts:x509-certificates}? - | +--rw server-certs? ts:certificates-ref - | {ts:x509-certificates}? - +--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 + | | +--:(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' The following tree diagram [RFC8340] provides an overview of the data model for the "ietf-netconf-server" module. This tree diagram shows all the nodes defined in 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 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 +--rw netconf-server +--rw listen! {ssh-listen or tls-listen}? | +--rw idle-timeout? uint16 | +--rw endpoint* [name] | +--rw name string | +--rw (transport) | +--:(ssh) {ssh-listen}? | | +--rw ssh | | +--rw tcp-server-parameters | | | +--rw local-address inet:ip-address | | | +--rw local-port? inet:port-number | | | +--rw keepalives! {keepalives-supported}? | | | +--rw idle-time uint16 | | | +--rw max-probes uint16 | | | +--rw probe-interval uint16 | | +--rw ssh-server-parameters - | | +--rw server-identity - | | | +--rw host-key* [name] - | | | +--rw name string - | | | +--rw (host-key-type) - | | | +--:(public-key) - | | | | +--rw public-key - | | | | +--rw (local-or-keystore) - | | | | +--:(local) - | | | | | {local-definitions\ + | | | +--rw server-identity + | | | | +--rw host-key* [name] + | | | | +--rw name string + | | | | +--rw (host-key-type) + | | | | +--:(public-key) + | | | | | +--rw public-key + | | | | | +--rw (local-or-keystore) + | | | | | +--:(local) + | | | | | | {local-definitions\ \-supported}? - | | | | | +--rw local-definition - | | | | | +--rw algorithm - | | | | | | asymmetric-ke\ + | | | | | | +--rw local-definition + | | | | | | +--rw algorithm + | | | | | | | asymmetric-ke\ \y-algorithm-t - | | | | | +--rw public-key - | | | | | | binary - | | | | | +--rw (private-key-ty\ + | | | | | | +--rw public-key-form\ + \at? + | | | | | | | identityref + | | | | | | +--rw public-key + | | | | | | | binary + | | | | | | +--rw private-key-for\ + \mat? + | | | | | | | identityref + | | | | | | +--rw (private-key-ty\ \pe) - | | | | | +--:(private-key) - | | | | | | +--rw private-k\ + | | | | | | +--:(private-key) + | | | | | | | +--rw private-k\ \ey? - | | | | | | binary - | | | | | +--:(hidden-privat\ + | | | | | | | binary + | | | | | | +--:(hidden-privat\ \e-key) - | | | | | | +--rw hidden-pr\ + | | | | | | | +--rw hidden-pr\ \ivate-key? - | | | | | | empty - | | | | | +--:(encrypted-pri\ + | | | | | | | empty + | | | | | | +--:(encrypted-pri\ \vate-key) - | | | | | +--rw encrypted\ + | | | | | | +--rw encrypted\ \-private-key - | | | | | +--rw (key-t\ + | | | | | | +--rw (key-t\ \ype) - | | | | | | +--:(symm\ + | | | | | | | +--:(symm\ \etric-key-ref) - | | | | | | | +--rw \ + | | | | | | | | +--rw \ \symmetric-key-ref? leafref - | | | | | | | \ + | | | | | | | | \ \ {keystore-supported}? - | | | | | | +--:(asym\ + | | | | | | | +--:(asym\ \metric-key-ref) - | | | | | | +--rw \ + | | | | | | | +--rw \ \asymmetric-key-ref? leafref - | | | | | | \ + | | | | | | | \ \ {keystore-supported}? - | | | | | +--rw value? - | | | | | bina\ + | | | | | | +--rw value? + | | | | | | bina\ \ry - | | | | +--:(keystore) - | | | | {keystore-supporte\ + | | | | | +--:(keystore) + | | | | | {keystore-supporte\ \d}? - | | | | +--rw keystore-reference? - | | | | ks:asymmetric-ke\ + | | | | | +--rw keystore-reference? + | | | | | ks:asymmetric-ke\ \y-ref - | | | +--:(certificate) - | | | +--rw certificate - | | | {sshcmn:ssh-x509-certs}? - | | | +--rw (local-or-keystore) - | | | +--:(local) - | | | | {local-definitions\ + | | | | +--:(certificate) + | | | | +--rw certificate + | | | | {sshcmn:ssh-x509-certs}? + | | | | +--rw (local-or-keystore) + | | | | +--:(local) + | | | | | {local-definitions\ \-supported}? - | | | | +--rw local-definition - | | | | +--rw algorithm - | | | | | asymmetric-ke\ + | | | | | +--rw local-definition + | | | | | +--rw algorithm + | | | | | | asymmetric-ke\ \y-algorithm-t - | | | | +--rw public-key - | | | | | binary - | | | | +--rw (private-key-ty\ + | | | | | +--rw public-key-form\ + \at? + | | | | | | identityref + | | | | | +--rw public-key + | | | | | | binary + | | | | | +--rw private-key-for\ + \mat? + | | | | | | identityref + | | | | | +--rw (private-key-ty\ \pe) - | | | | | +--:(private-key) - | | | | | | +--rw private-k\ + | | | | | | +--:(private-key) + | | | | | | | +--rw private-k\ \ey? - | | | | | | binary - | | | | | +--:(hidden-privat\ + | | | | | | | binary + | | | | | | +--:(hidden-privat\ \e-key) - | | | | | | +--rw hidden-pr\ + | | | | | | | +--rw hidden-pr\ \ivate-key? - | | | | | | empty - | | | | | +--:(encrypted-pri\ + | | | | | | | empty + | | | | | | +--:(encrypted-pri\ \vate-key) - | | | | | +--rw encrypted\ + | | | | | | +--rw encrypted\ \-private-key - | | | | | +--rw (key-t\ + | | | | | | +--rw (key-t\ \ype) - | | | | | | +--:(symm\ + | | | | | | | +--:(symm\ \etric-key-ref) - | | | | | | | +--rw \ + | | | | | | | | +--rw \ \symmetric-key-ref? leafref - | | | | | | | \ + | | | | | | | | \ \ {keystore-supported}? - | | | | | | +--:(asym\ + | | | | | | | +--:(asym\ \metric-key-ref) - | | | | | | +--rw \ + | | | | | | | +--rw \ \asymmetric-key-ref? leafref - | | | | | | \ + | | | | | | | \ \ {keystore-supported}? - | | | | | +--rw value? - | | | | | bina\ + | | | | | | +--rw value? + | | | | | | bina\ \ry - | | | | +--rw cert? - | | | | | end-entity-ce\ + | | | | | +--rw cert? + | | | | | | end-entity-ce\ \rt-cms - | | | | +---n certificate-exp\ + | | | | | +---n certificate-exp\ \iration - | | | | | +-- expiration-date - | | | | | yang:date-\ + | | | | | | +-- expiration-date + | | | | | | yang:date-\ \and-time - | | | | +---x generate-certif\ + | | | | | +---x generate-certif\ \icate-signing-request - | | | | +---w input - | | | | | +---w subject - | | | | | | binary - | | | | | +---w attribute\ + | | | | | +---w input + | | | | | | +---w subject + | | | | | | | binary + | | | | | | +---w attribute\ \s? - | | | | | binary - | | | | +--ro output - | | | | +--ro certifica\ + | | | | | | binary + | | | | | +--ro output + | | | | | +--ro certifica\ \te-signing-request - | | | | binary - | | | +--:(keystore) - | | | {keystore-supporte\ + | | | | | binary + | | | | +--:(keystore) + | | | | {keystore-supporte\ \d}? - | | | +--rw keystore-reference - | | | +--rw asymmetric-key? - | | | | ks:asymmetric\ + | | | | +--rw keystore-reference + | | | | +--rw asymmetric-key? + | | | | | ks:asymmetric\ \-key-ref - | | | +--rw certificate? \ + | | | | +--rw certificate? \ \ leafref - | | +--rw client-authentication - | | | +--rw supported-authentication-methods - | | | | +--rw publickey? empty - | | | | +--rw passsword? empty - | | | | +--rw hostbased? empty - | | | | +--rw none? empty - | | | | +--rw other* string - | | | +--rw (local-or-external) - | | | +--:(local) - | | | | {local-client-auth-supported}? - | | | | +--rw users - | | | | +--rw user* [name] - | | | | +--rw name string - | | | | +--rw password? - | | | | | ianach:crypt-hash - | | | | +--rw authorized-key* [name] - | | | | +--rw name string - | | | | +--rw algorithm string - | | | | +--rw key-data binary - | | | +--:(external) - | | | {external-client-auth-supporte\ + | | | +--rw client-authentication + | | | | +--rw supported-authentication-methods + | | | | | +--rw publickey? empty + | | | | | +--rw passsword? empty + | | | | | +--rw hostbased? empty + | | | | | +--rw none? empty + | | | | | +--rw other* string + | | | | +--rw (local-or-external) + | | | | +--:(local) + | | | | | {local-client-auth-supported}? + | | | | | +--rw users + | | | | | +--rw user* [name] + | | | | | +--rw name string + | | | | | +--rw password? + | | | | | | ianach:crypt-hash + | | | | | +--rw host-keys! + | | | | | | {ts:ssh-host-keys}? + | | | | | | +--rw (local-or-truststore) + | | | | | | +--:(local) + | | | | | | | {local-definiti\ + \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}? - | | | +--rw client-auth-defined-elsewhere? - | | | empty - | | +--rw transport-params - | | | {ssh-server-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-server-keepalives}? - | | +--rw max-wait? uint16 - | | +--rw max-attempts? uint8 + | | | | +--rw client-auth-defined-elsewhere? + | | | | empty + | | | +--rw transport-params + | | | | {ssh-server-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-server-keepalives}? + | | | +--rw max-wait? uint16 + | | | +--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}? | +--rw tls | +--rw tcp-server-parameters | | +--rw local-address inet:ip-address | | +--rw local-port? inet:port-number | | +--rw keepalives! {keepalives-supported}? | | +--rw idle-time uint16 | | +--rw max-probes uint16 | | +--rw probe-interval uint16 | +--rw tls-server-parameters - | +--rw server-identity - | | +--rw (local-or-keystore) - | | +--:(local) - | | | {local-definitions-supported}? - | | | +--rw local-definition - | | | +--rw algorithm - | | | | asymmetric-key-algorithm-t - | | | +--rw public-key - | | | | binary - | | | +--rw (private-key-type) - | | | | +--:(private-key) - | | | | | +--rw private-key? + | | +--rw server-identity + | | | +--rw (local-or-keystore) + | | | +--:(local) + | | | | {local-definitions-supported}? + | | | | +--rw local-definition + | | | | +--rw algorithm + | | | | | asymmetric-key-algorithm-t + | | | | +--rw public-key-format? + | | | | | identityref + | | | | +--rw public-key | | | | | binary - | | | | +--:(hidden-private-key) - | | | | | +--rw hidden-private-key? - | | | | | empty - | | | | +--:(encrypted-private-key) - | | | | +--rw encrypted-private-key - | | | | +--rw (key-type) - | | | | | +--:(symmetric-key-re\ + | | | | +--rw private-key-format? + | | | | | identityref + | | | | +--rw (private-key-type) + | | | | | +--:(private-key) + | | | | | | +--rw private-key? + | | | | | | binary + | | | | | +--:(hidden-private-key) + | | | | | | +--rw hidden-private-key? + | | | | | | empty + | | | | | +--:(encrypted-private-key) + | | | | | +--rw encrypted-private-key + | | | | | +--rw (key-type) + | | | | | | +--:(symmetric-key-re\ \f) - | | | | | | +--rw symmetric-ke\ + | | | | | | | +--rw symmetric-ke\ \y-ref? leafref - | | | | | | {keystore-\ + | | | | | | | {keystore-\ \supported}? - | | | | | +--:(asymmetric-key-r\ + | | | | | | +--:(asymmetric-key-r\ \ef) - | | | | | +--rw asymmetric-k\ + | | | | | | +--rw asymmetric-k\ \ey-ref? leafref - | | | | | {keystore-\ + | | | | | | {keystore-\ \supported}? - | | | | +--rw value? - | | | | binary - | | | +--rw cert? - | | | | end-entity-cert-cms - | | | +---n certificate-expiration - | | | | +-- expiration-date - | | | | yang:date-and-time - | | | +---x generate-certificate-signin\ + | | | | | +--rw value? + | | | | | binary + | | | | +--rw cert? + | | | | | end-entity-cert-cms + | | | | +---n certificate-expiration + | | | | | +-- expiration-date + | | | | | yang:date-and-time + | | | | +---x generate-certificate-signin\ \g-request - | | | +---w input - | | | | +---w subject binary - | | | | +---w attributes? binary - | | | +--ro output - | | | +--ro certificate-signing-r\ + | | | | +---w input + | | | | | +---w subject binary + | | | | | +---w attributes? binary + | | | | +--ro output + | | | | +--ro certificate-signing-r\ \equest - | | | binary - | | +--:(keystore) {keystore-supported}? - | | +--rw keystore-reference - | | +--rw asymmetric-key? - | | | ks:asymmetric-key-ref - | | +--rw certificate? leafref - | +--rw client-authentication! - | | +--rw (required-or-optional) - | | | +--:(required) - | | | | +--rw required? + | | | | binary + | | | +--:(keystore) {keystore-supported}? + | | | +--rw keystore-reference + | | | +--rw asymmetric-key? + | | | | ks:asymmetric-key-ref + | | | +--rw certificate? leafref + | | +--rw client-authentication! + | | | +--rw (required-or-optional) + | | | | +--:(required) + | | | | | +--rw required? + | | | | | empty + | | | | +--:(optional) + | | | | +--rw optional? | | | | empty - | | | +--:(optional) - | | | +--rw optional? - | | | empty - | | +--rw (local-or-external) + | | | +--rw (local-or-external) | | | +--:(local) | | | | {local-client-auth-supported}? - | | | | +--rw ca-certs? - | | | | | ts:certificates-ref + | | | | +--rw ca-certs! | | | | | {ts:x509-certificates}? - | | | | +--rw client-certs? - | | | | ts:certificates-ref + | | | | | +--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 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}? | | | +--rw client-auth-defined-elsewhere? | | | empty - | | +--rw cert-maps - | | +--rw cert-to-name* [id] - | | +--rw id uint32 - | | +--rw fingerprint - | | | x509c2n:tls-fingerprint - | | +--rw map-type identityref - | | +--rw name string - | +--rw hello-params - | | {tls-server-hello-params-config}? - | | +--rw tls-versions - | | | +--rw tls-version* identityref - | | +--rw cipher-suites - | | +--rw cipher-suite* identityref - | +--rw keepalives! {tls-server-keepalives}? - | +--rw max-wait? uint16 - | +--rw max-attempts? uint8 + | | +--rw hello-params + | | | {tls-server-hello-params-config}? + | | | +--rw tls-versions + | | | | +--rw tls-version* identityref + | | | +--rw cipher-suites + | | | +--rw cipher-suite* identityref + | | +--rw keepalives! {tls-server-keepalives}? + | | +--rw max-wait? uint16 + | | +--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 call-home! {ssh-call-home or tls-call-home}? +--rw netconf-client* [name] +--rw name string +--rw endpoints | +--rw endpoint* [name] | +--rw name string | +--rw (transport) | +--:(ssh) {ssh-call-home}? | | +--rw ssh | | +--rw tcp-client-parameters @@ -2746,341 +3245,486 @@ | | | +--rw local-address? inet:ip-address | | | | {local-binding-supported}? | | | +--rw local-port? inet:port-number | | | | {local-binding-supported}? | | | +--rw keepalives! | | | {keepalives-supported}? | | | +--rw idle-time uint16 | | | +--rw max-probes uint16 | | | +--rw probe-interval uint16 | | +--rw ssh-server-parameters - | | +--rw server-identity - | | | +--rw host-key* [name] - | | | +--rw name string - | | | +--rw (host-key-type) - | | | +--:(public-key) - | | | | +--rw public-key - | | | | +--rw (local-or-keystore) - | | | | +--:(local) - | | | | | {local-defin\ + | | | +--rw server-identity + | | | | +--rw host-key* [name] + | | | | +--rw name string + | | | | +--rw (host-key-type) + | | | | +--:(public-key) + | | | | | +--rw public-key + | | | | | +--rw (local-or-keystore) + | | | | | +--:(local) + | | | | | | {local-defin\ \itions-supported}? - | | | | | +--rw local-defini\ + | | | | | | +--rw local-defini\ \tion - | | | | | +--rw algorithm - | | | | | | asymmet\ + | | | | | | +--rw algorithm + | | | | | | | asymmet\ \ric-key-algorithm-t - | | | | | +--rw public-key - | | | | | | binary - | | | | | +--rw (private-\ + | | | | | | +--rw public-ke\ + \y-format? + | | | | | | | identit\ + \yref + | | | | | | +--rw public-key + | | | | | | | binary + | | | | | | +--rw private-k\ + \ey-format? + | | | | | | | identit\ + \yref + | | | | | | +--rw (private-\ \key-type) - | | | | | +--:(private\ + | | | | | | +--:(private\ \-key) - | | | | | | +--rw pri\ + | | | | | | | +--rw pri\ + \vate-key? - | | | | | | b\ + | | | | | | | b\ \inary - | | | | | +--:(hidden-\ + | | | | | | +--:(hidden-\ \private-key) - | | | | | | +--rw hid\ + | | | | | | | +--rw hid\ \den-private-key? - | | | | | | e\ + | | | | | | | e\ \mpty - | | | | | +--:(encrypt\ + | | | | | | +--:(encrypt\ \ed-private-key) - | | | | | +--rw enc\ + | | | | | | +--rw enc\ \rypted-private-key - | | | | | +--rw \ + | | | | | | +--rw \ \(key-type) - | | | | | | +--\ + | | | | | | | +--\ \:(symmetric-key-ref) - | | | | | | | \ + | | | | | | | | \ \+--rw symmetric-key-ref? leafref - | | | | | | | \ + | | | | | | | | \ \ {keystore-supported}? - | | | | | | +--\ - + | | | | | | | +--\ \:(asymmetric-key-ref) - | | | | | | \ + | | | | | | | \ \+--rw asymmetric-key-ref? leafref - | | | | | | \ + | | | | | | | \ \ {keystore-supported}? - | | | | | +--rw \ + | | | | | | +--rw \ \value? - | | | | | \ + | | | | | | \ \ binary - | | | | +--:(keystore) - | | | | {keystore-su\ + | | | | | +--:(keystore) + | | | | | {keystore-su\ \pported}? - | | | | +--rw keystore-ref\ + | | | | | +--rw keystore-ref\ \erence? - | | | | ks:asymmet\ + | | | | | ks:asymmet\ \ric-key-ref - | | | +--:(certificate) - | | | +--rw certificate - | | | {sshcmn:ssh-x509-ce\ + | | | | +--:(certificate) + | | | | +--rw certificate + | | | | {sshcmn:ssh-x509-ce\ \rts}? - | | | +--rw (local-or-keystore) - | | | +--:(local) - | | | | {local-defin\ + | | | | +--rw (local-or-keystore) + | | | | +--:(local) + | | | | | {local-defin\ \itions-supported}? - | | | | +--rw local-defini\ + | | | | | +--rw local-defini\ \tion - | | | | +--rw algorithm - | | | | | asymmet\ + | | | | | +--rw algorithm + | | | | | | asymmet\ \ric-key-algorithm-t - | | | | +--rw public-key - | | | | | binary - | | | | +--rw (private-\ + | | | | | +--rw public-ke\ + \y-format? + | | | | | | identit\ + \yref + | | | | | +--rw public-key + | | | | | | binary + | | | | | +--rw private-k\ + \ey-format? + | | | | | | identit\ + \yref + | | | | | +--rw (private-\ \key-type) - | | | | | +--:(private\ + | | | | | | +--:(private\ \-key) - | | | | | | +--rw pri\ + | | | | | | | +--rw pri\ \vate-key? - | | | | | | b\ + | | | | | | | b\ \inary - | | | | | +--:(hidden-\ + | | | | | | +--:(hidden-\ \private-key) - | | | | | | +--rw hid\ + | | | | | | | +--rw hid\ \den-private-key? - | | | | | | e\ + | | | | | | | e\ \mpty - | | | | | +--:(encrypt\ + | | | | | | +--:(encrypt\ \ed-private-key) - | | | | | +--rw enc\ - + | | | | | | +--rw enc\ \rypted-private-key - | | | | | +--rw \ + | | | | | | +--rw \ \(key-type) - | | | | | | +--\ + | | | | | | | +--\ \:(symmetric-key-ref) - | | | | | | | \ + | | | | | | | | \ \+--rw symmetric-key-ref? leafref - | | | | | | | \ + | | | | | | | | \ \ {keystore-supported}? - | | | | | | +--\ + | | | | | | | +--\ \:(asymmetric-key-ref) - | | | | | | \ + | | | | | | | \ \+--rw asymmetric-key-ref? leafref - | | | | | | \ + | | | | | | | \ \ {keystore-supported}? - | | | | | +--rw \ + | | | | | | +--rw \ \value? - | | | | | \ + | | | | | | \ + \ binary - | | | | +--rw cert? - | | | | | end-ent\ + | | | | | +--rw cert? + | | | | | | end-ent\ \ity-cert-cms - | | | | +---n certifica\ + | | | | | +---n certifica\ \te-expiration - | | | | | +-- expirati\ + | | | | | | +-- expirati\ \on-date - | | | | | yang\ + | | | | | | yang\ \:date-and-time - | | | | +---x generate-\ + | | | | | +---x generate-\ \certificate-signing-request - | | | | +---w input - | | | | | +---w sub\ + | | | | | +---w input + | | | | | | +---w sub\ \ject - | | | | | | b\ + | | | | | | | b\ \inary - | | | | | +---w att\ + | | | | | | +---w att\ \ributes? - | | | | | b\ + | | | | | | b\ \inary - | | | | +--ro output - | | | | +--ro cer\ + | | | | | +--ro output + | | | | | +--ro cer\ \tificate-signing-request - | | | | b\ + | | | | | b\ \inary - | | | +--:(keystore) - | | | {keystore-su\ + | | | | +--:(keystore) + | | | | {keystore-su\ \pported}? - | | | +--rw keystore-ref\ - + | | | | +--rw keystore-ref\ \erence - | | | +--rw asymmetri\ + | | | | +--rw asymmetri\ \c-key? - | | | | ks:asym\ + | | | | | ks:asym\ \metric-key-ref - | | | +--rw certifica\ + | | | | +--rw certifica\ \te? leafref - | | +--rw client-authentication - | | | +--rw supported-authentication-metho\ + | | | +--rw client-authentication + | | | | +--rw supported-authentication-metho\ \ds - | | | | +--rw publickey? empty - | | | | +--rw passsword? empty - | | | | +--rw hostbased? empty - | | | | +--rw none? empty - | | | | +--rw other* string - | | | +--rw (local-or-external) - | | | +--:(local) - | | | | {local-client-auth-suppo\ + | | | | | +--rw publickey? empty + | | | | | +--rw passsword? empty + | | | | | +--rw hostbased? empty + | | | | | +--rw none? empty + | | | | | +--rw other* string + | | | | +--rw (local-or-external) + | | | | +--:(local) + | | | | | {local-client-auth-suppo\ + \rted}? - | | | | +--rw users - | | | | +--rw user* [name] - | | | | +--rw name - | | | | | string - | | | | +--rw password? - | | | | | ianach:crypt-hash - | | | | +--rw authorized-key* - | | | | [name] - | | | | +--rw name - | | | | | string - | | | | +--rw algorithm - | | | | | string - | | | | +--rw key-data - | | | | binary - | | | +--:(external) - | | | {external-client-auth-su\ + | | | | | +--rw users + | | | | | +--rw user* [name] + | | | | | +--rw name + | | | | | | string + | | | | | +--rw password? + | | | | | | ianach:crypt-hash + | | | | | +--rw host-keys! + | | | | | | {ts:ssh-host-key\ + \s}? + | | | | | | +--rw (local-or-trust\ + \store) + | | | | | | +--:(local) + | | | | | | | {local-de\ + \finitions-supported}? + | | | | | | | +--rw local-def\ + \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}? - | | | +--rw client-auth-defined-else\ + | | | | +--rw client-auth-defined-else\ \where? - | | | empty - | | +--rw transport-params - | | | {ssh-server-transport-params-co\ + | | | | empty + | | | +--rw transport-params + | | | | {ssh-server-transport-params-co\ \nfig}? - | | | +--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-server-keepalives}? - | | +--rw max-wait? uint16 - | | +--rw max-attempts? uint8 + | | | | +--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-server-keepalives}? + | | | +--rw max-wait? uint16 + | | | +--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}? | +--rw tls | +--rw tcp-client-parameters | | +--rw remote-address inet:host | | +--rw remote-port? inet:port-number | | +--rw local-address? inet:ip-address | | | {local-binding-supported}? | | +--rw local-port? inet:port-number | | | {local-binding-supported}? | | +--rw keepalives! | | {keepalives-supported}? | | +--rw idle-time uint16 | | +--rw max-probes uint16 | | +--rw probe-interval uint16 | +--rw tls-server-parameters - | +--rw server-identity - | | +--rw (local-or-keystore) - | | +--:(local) - | | | {local-definitions-suppo\ + | | +--rw server-identity + | | | +--rw (local-or-keystore) + | | | +--:(local) + | | | | {local-definitions-suppo\ \rted}? - | | | +--rw local-definition - | | | +--rw algorithm - | | | | asymmetric-key-algo\ + | | | | +--rw local-definition + | | | | +--rw algorithm + | | | | | asymmetric-key-algo\ \rithm-t - | | | +--rw public-key - | | | | binary - | | | +--rw (private-key-type) - | | | | +--:(private-key) - | | | | | +--rw private-key? + | | | | +--rw public-key-format? + | | | | | identityref + | | | | +--rw public-key | | | | | binary - | | | | +--:(hidden-private-key) - | | | | | +--rw hidden-private-\ + | | | | +--rw private-key-format? + | | | | | identityref + | | | | +--rw (private-key-type) + | | | | | +--:(private-key) + | | | | | | +--rw private-key? + | | | | | | binary + | | | | | +--:(hidden-private-key) + | | | | | | +--rw hidden-private-\ \key? - | | | | | empty - | | | | +--:(encrypted-private-k\ + | | | | | | empty + | | | | | +--:(encrypted-private-k\ \ey) - | | | | +--rw encrypted-priva\ + | | | | | +--rw encrypted-priva\ \te-key - | | | | +--rw (key-type) - | | | | | +--:(symmetric-\ - + | | | | | +--rw (key-type) + | | | | | | +--:(symmetric-\ \key-ref) - | | | | | | +--rw symmet\ + | | | | | | | +--rw symmet\ \ric-key-ref? leafref - | | | | | | {key\ + | | | | | | | {key\ \store-supported}? - | | | | | +--:(asymmetric\ + | | | | | | +--:(asymmetric\ \-key-ref) - | | | | | +--rw asymme\ + | | | | | | +--rw asymme\ \tric-key-ref? leafref - | | | | | {key\ + | | | | | | {key\ \store-supported}? - | | | | +--rw value? - | | | | binary - | | | +--rw cert? - | | | | end-entity-cert-cms - | | | +---n certificate-expiration - | | | | +-- expiration-date - | | | | yang:date-and-ti\ + | | | | | +--rw value? + | | | | | binary + | | | | +--rw cert? + | | | | | end-entity-cert-cms + | | | | +---n certificate-expiration + | | | | | +-- expiration-date + | | | | | yang:date-and-ti\ \me - | | | +---x generate-certificate-\ + | | | | +---x generate-certificate-\ \signing-request - | | | +---w input - | | | | +---w subject + | | | | +---w input + | | | | | +---w subject + | | | | | | binary + | | | | | +---w attributes? | | | | | binary - | | | | +---w attributes? - | | | | binary - | | | +--ro output - | | | +--ro certificate-sig\ + | | | | +--ro output + | | | | +--ro certificate-sig\ \ning-request - | | | binary - | | +--:(keystore) - | | {keystore-supported}? - | | +--rw keystore-reference - | | +--rw asymmetric-key? - | | | ks:asymmetric-key-r\ + | | | | binary + | | | +--:(keystore) + | | | {keystore-supported}? + | | | +--rw keystore-reference + | | | +--rw asymmetric-key? + | | | | ks:asymmetric-key-r\ + \ef - | | +--rw certificate? lea\ + | | | +--rw certificate? lea\ \fref - | +--rw client-authentication! - | | +--rw (required-or-optional) - | | | +--:(required) - | | | | +--rw required? + | | +--rw client-authentication! + | | | +--rw (required-or-optional) + | | | | +--:(required) + | | | | | +--rw required? + | | | | | empty + | | | | +--:(optional) + | | | | +--rw optional? | | | | empty - | | | +--:(optional) - | | | +--rw optional? - | | | empty - | | +--rw (local-or-external) - | | | +--:(local) - | | | | {local-client-auth-suppo\ + | | | +--rw (local-or-external) + | | | | +--:(local) + | | | | | {local-client-auth-suppo\ \rted}? - | | | | +--rw ca-certs? - | | | | | ts:certificates-ref + | | | | | +--rw ca-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! | | | | | {ts:x509-certificates}? - | | | | +--rw client-certs? - | | | | ts:certificates-ref - | | | | {ts:x509-certificates}? - | | | +--:(external) - | | | {external-client-auth-su\ + | | | | | +--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}? - | | | +--rw client-auth-defined-else\ + | | | | +--rw client-auth-defined-else\ \where? - | | | empty - | | +--rw cert-maps - | | +--rw cert-to-name* [id] - | | +--rw id uint32 - | | +--rw fingerprint - | | | x509c2n:tls-fingerprint - | | +--rw map-type - | | | identityref - | | +--rw name string - | +--rw hello-params - | | {tls-server-hello-params-config\ + | | | | empty + | | | +--rw cert-maps + | | | +--rw cert-to-name* [id] + | | | +--rw id uint32 + | | | +--rw fingerprint + | | | | x509c2n:tls-fingerprint + | | | +--rw map-type + | | | | identityref + | | | +--rw name string + | | +--rw hello-params + | | | {tls-server-hello-params-config\ \}? - | | +--rw tls-versions - | | | +--rw tls-version* identityref - | | +--rw cipher-suites - | | +--rw cipher-suite* identityref - | +--rw keepalives! - | {tls-server-keepalives}? - | +--rw max-wait? uint16 - | +--rw max-attempts? uint8 + | | | +--rw tls-versions + | | | | +--rw tls-version* identityref + | | | +--rw cipher-suites + | | | +--rw cipher-suite* identityref + | | +--rw keepalives! + | | {tls-server-keepalives}? + | | +--rw max-wait? uint16 + | | +--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) | +--:(persistent-connection) | | +--rw persistent! | +--:(periodic-connection) | +--rw periodic! | +--rw period? uint16 | +--rw anchor-time? yang:date-and-time | +--rw idle-timeout? uint16 +--rw reconnect-strategy @@ -3220,20 +3864,26 @@ B.14. 13 to 14 o Adjusting from change in TLS client model (removing the top-level 'certificate' container), by swapping refining-in a 'mandatory true' statement with a 'must' statement outside the 'uses' statement. o Updated examples to reflect ietf-crypto-types change (e.g., 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 The authors would like to thank for following for lively discussions on list and in the halls (ordered by last name): Andy Bierman, Martin Bjorklund, Benoit Claise, Ramkumar Dhanapal, Mehmet Ersue, Balazs Kovacs, David Lamparter, Alan Luchuk, Ladislav Lhotka, Radek Krejci, Tom Petch, Juergen Schoenwaelder, Phil Shafer, Sean Turner, and Bert Wijnen. Author's Address