[netconf] Yangdoctors early review of draft-ietf-netconf-yp-transport-capabilities-01
Jan Lindblad via Datatracker <noreply@ietf.org> Mon, 21 April 2025 07:23 UTC
Return-Path: <noreply@ietf.org>
X-Original-To: netconf@ietf.org
Delivered-To: netconf@mail2.ietf.org
Received: from [10.244.8.129] (unknown [104.131.183.230]) by mail2.ietf.org (Postfix) with ESMTP id CA2831EBE2AB; Mon, 21 Apr 2025 00:23:43 -0700 (PDT)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: Jan Lindblad via Datatracker <noreply@ietf.org>
To: yang-doctors@ietf.org
X-Test-IDTracker: no
X-IETF-IDTracker: 12.38.0
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <174522022370.2057949.7418808434376444772@dt-datatracker-64c5c9b5f9-hz6qg>
Date: Mon, 21 Apr 2025 00:23:43 -0700
Message-ID-Hash: JNUY427PL3GYF3GENTGRHXY52VS64K4U
X-Message-ID-Hash: JNUY427PL3GYF3GENTGRHXY52VS64K4U
X-MailFrom: noreply@ietf.org
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-netconf.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: draft-ietf-netconf-yp-transport-capabilities.all@ietf.org, netconf@ietf.org
X-Mailman-Version: 3.3.9rc6
Reply-To: Jan Lindblad <jan.lindblad+ietf@for.eco>
Subject: [netconf] Yangdoctors early review of draft-ietf-netconf-yp-transport-capabilities-01
List-Id: NETCONF WG list <netconf.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/LsgaKKhUau3nOPa1Um5ovurAgeg>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Owner: <mailto:netconf-owner@ietf.org>
List-Post: <mailto:netconf@ietf.org>
List-Subscribe: <mailto:netconf-join@ietf.org>
List-Unsubscribe: <mailto:netconf-leave@ietf.org>
Document: draft-ietf-netconf-yp-transport-capabilities
Title: YANG Notification Transport Capabilities
Reviewer: Jan Lindblad
Review result: Ready with Issues
This is my early YANG Doctor review of
draft-ietf-netconf-yp-transport-capabilities-01.
I think this small document and tiny YANG Module is a good idea and well
written. Overall, I'd say it's ready with issues. I read that there are already
multiple vendor implementations of this, but I would still like to bring up a
couple YANG design decisions in the proposed module for discussion.
#1) Choice of key in list transport-capability
The top-level list transport-capability is using the transport protocol as key.
+--ro transport-capability* [transport-protocol]
+--ro transport-protocol identityref
+--ro security-protocol? identityref
+--ro encoding-format* identityref
Using the transport protocol as key implicitly assumes that one set of
properties can describe all uses of this protocol. A server that supports yp
over https with either tls13 OR tls20 (future), for example, could not express
this.
It might also be good for a server to be able to specify a preference value for
each protocol and encoding format. Certain combinations may be faster, or
better tested, for example. In light of this, a separate synthetic key,
possibly indicating preference, might be preferable for this list.
#2) Defining identities for
The module defines identities for TLS versions, DTLS version, and an SSH
version. This might not be ideal, since if e.g. a new TLS version comes around,
a new identity would have to be created in some standard module, besides the
one(s) already defined in other YANG modules. RFC9645, for example, defines
identities for tls12 and tls13 already. They could and probably should be
reused here. Here's an proposed example of how they could be reused.
module ietf-notification-transport-capabilities {
import ietf-tls-common { prefix tlscmn; } // added
...
// identities tls12, tls13 removed
// maybe dtlsXX are or will be defined in some other std module too?
list transport-capability {
key "transport-protocol";
leaf transport-protocol {
type identityref {
base sn:transport;
base tlscmn:tls-version-base; // added
}
- [netconf] Yangdoctors early review of draft-ietf-… Jan Lindblad via Datatracker
- [netconf] Re: Yangdoctors early review of draft-i… Thomas.Graf
- [netconf] Re: Yangdoctors early review of draft-i… Jan Lindblad
- [netconf] Re: Yangdoctors early review of draft-i… Per Andersson