[dhcwg] Fwd: >> YANG Data Model for DHCPv6 Configuration-16

ianfarrer@gmx.com Tue, 19 January 2021 07:37 UTC

Return-Path: <ianfarrer@gmx.com>
X-Original-To: dhcwg@ietfa.amsl.com
Delivered-To: dhcwg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A5BCB3A12CE for <dhcwg@ietfa.amsl.com>; Mon, 18 Jan 2021 23:37:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.916
X-Spam-Level:
X-Spam-Status: No, score=-1.916 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=gmx.net
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aNFTjLLdpRHl for <dhcwg@ietfa.amsl.com>; Mon, 18 Jan 2021 23:37:49 -0800 (PST)
Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 915F93A12C0 for <dhcwg@ietf.org>; Mon, 18 Jan 2021 23:37:48 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1611041863; bh=3l+kgpm0UXwA3scIDp1vLlriK2JPEFeIgHW8TY94reI=; h=X-UI-Sender-Class:From:Subject:References:To:Date; b=SaT4Vk0NFMxM54I616y896B6fB9bhrcjLz/hgSMYZd5MtyQivFYR8dcIQ4zcrAVBX p+Vcrr36LNYRGo8hGcU4NJplkwyJFRUDIHdehQe//9mk4mZ2b4VlKVLXSo3XTN7viB 86G4GDbXalFihlE4R5wbfWC27BR97t3KLwYQdDYI=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from macbook-pro-big-sur.fritz.box ([78.35.205.160]) by mail.gmx.com (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1McpNy-1laHO03p3K-00ZwQt; Tue, 19 Jan 2021 08:37:43 +0100
From: ianfarrer@gmx.com
Content-Type: multipart/alternative; boundary="Apple-Mail=_D4B0E23B-FF12-4C98-BFD6-F3FE9E39CA0E"
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\))
Message-Id: <5449AD17-B1CE-4612-A5A9-D3A0115104EE@gmx.com>
References: <A4876940-038E-43B7-8FDF-7C6B8DCA546E@gmx.com>
To: tom petch <daedulus@btconnect.com>, dhcwg <dhcwg@ietf.org>
Date: Tue, 19 Jan 2021 08:37:39 +0100
X-Mailer: Apple Mail (2.3654.40.0.2.32)
X-Provags-ID: V03:K1:NXm4P3GUyguDdOMCOtuVdlYlFWcU8XevDYf1Q8to/utA47gSAt2 FChbBrKqmE91NAEetMN06+1OwChw2rKrEyy82XxkjjqKuREIClIAvL4IwgeCp1j1XYTGecW TjT2rgjfyKrsgf+wfziCoDmTHMb/RdDOsEoaoPBX6SWQYvMTNQ5kuPlGsNnbZVJy2P9Ma5g IWu9yhL6etPK5KhCBURUw==
X-UI-Out-Filterresults: notjunk:1;V03:K0:3XeK5NO1mK0=:iPISBlyCV32K4wfXW9KvLP Un3Ciz9Ibio9epX63dhflHogNjSG615Gp9PI/bFBaDB1+w2bir+ZAa8/7OgaluJCCDn/xchZG ALCxc6NSbp/dGu0uXqH4GqI/5q9ye3MOb2nZznLcC8SSa6oRdnWbxQZWI4zVf1S3i4ujVTQX5 i7r1OJYEcYhjztKvermm0QQ2Xn/SnmzM58ThjoFriqouGoccnSQn9gpBbS+0yg7xOSecSXcBG P0SSAyeyoAotw8PBQfW0FZNEWAkZZRZf/2fBYMtQWULQ38TW2GRiryF0FV1MDXagJJV4ncAdq NEgIJsT+srNhymx6WiArDzOdX7AIZom1Ef5EuxaF8RAo5j7C5CtGU34Sv78hftM0qekpzGQby xQEHtLSmlqhUa4J70n+SrdWskFHuf+Uwr+DNxIt84vMFYbjybsBgGbPxQI3Mm7HRLBfV5tck8 kug6nhxAqKGOcQ7pkGW4WndyHwS8J0N4s8qEoX4hQitlJUUgarcj/bokL2r+dBvWkdmpxTYwG YAj0BqsqujPHK0ukabSVBXkNAQjp3qgE6Ht87FhSaXKoynX08cVUwP9bQgdcJwUHWiLcpJCki 5vfRtSYKAy1kdlcEO6VHi+6R9r6u7SMg7aoD0l6chV4yq5/2D7yWsQp86L8u2Mj/5GrJ2mtXF 5+uHiq7Ith/D2JKvHH/VThQ8bh1juHBkcK3v/u15vOW6fmskPrK4NoZoFyacrcqZSfzYxjelW iFW4VgWpbyOXYqrkHJyO7LtUZjLB60HCaV8SlVqJfENEz6kv5N4pfCpX264cwMuCG89QHvfBR ql4U8sC/WWGaxLDVmLOO8ftuqVIqUUSsxR5hShM4NJnGzGjmmNeFPVvalyhb/8kVEl7/cndmE 8GTMhFzRDo5K+n9KsL+g==
Archived-At: <https://mailarchive.ietf.org/arch/msg/dhcwg/ANn0N38XRlt48qmDzAy4YcBkuIw>
Subject: [dhcwg] Fwd: >> YANG Data Model for DHCPv6 Configuration-16
X-BeenThere: dhcwg@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <dhcwg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dhcwg/>
List-Post: <mailto:dhcwg@ietf.org>
List-Help: <mailto:dhcwg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 19 Jan 2021 07:37:54 -0000

Resending as the original message didn’t appear on the m/l.


Hi Tom,

Thanks for your comments. Please see inline below.

Ian

> On 14. Jan 2021, at 13:40, t petch <ietfa@btconnect.com <mailto:ietfa@btconnect.com>> wrote:
> 
> 
> Ian
> 
> I do not understand this I-D; I have tracked it for a number of years and my understanding of it is diminishing.
> 
> Currently, it is seven YANG modules: why?

[if - The separation into client/server/relay, and DHCP options has been in the draft since -05 and the changes were presented and discussed at IETF101 - I’ve described the reasoning for this split in the next answer. Beyond that, the common module was added to avoid (well reduce as you point out below) duplication.

The separation of the option modules came at a later stage based on import dependencies of a single options module. When the options module imports the client/server/relay modules so it can augment the relevant module based on identity, an implementation also needs to import these modules and will declare them in it’s capabilities as available even though it doesn’t implement them. Dividing the options modules avoids the need for deviations.

Even though there are 7 modules defined here, the likely hood is that an element implementation would require 3 modules to be implemented (e.g. client, common and client options).]

> 
> Other WG have models with multiple roles and many options and have a single YANG module, using the features of YANG to tailor the module to different configurations.

[if - It’s not really tailoring the module to different configurations, they are for the most part separate functional elements in the network with any device only implementing one of the client, relay or server functions.

However, even in the case that a device is both a server and a client (e.g. a home gateway with a client on the WAN and a server on the LAN), the likelihood is that these will be done using different software implementations, so having separate modules for server and client offers implementation flexibility.

In the case of a monolithic module with the relevant client/relay/server functionality enabled by features, the module would do nothing unless one or more of the features was enabled, and Is unlikely that you’d ever enable more than one. Is this approach used by other WGs? Could you point me to some some examples as I've only seen features been used as relatively small optional extensions used when the bulk of the nodes are common?]

> 
> Here you have modelled the options as YANG grouping. The intent of a grouping is to provide a block of statements that can be reused so avoiding duplication with the attendant problems.  Here you have the same grouping in triplicate in three different YANG modules which seems to me to be the antithesis of a grouping.

[If - We could move the option definitions for "status-code-option-group” (client, server, relay) and “rapid-commit-option-group, vendor-specific-information-option-group; reconfigure-accept-option-group” (client, server) into the common module to resolve the duplication. I didn’t do this previously as the intention was to keep options definitions in the options modules for consistency, but it  would be simple to change. ]

> 
> Likewise I find the specification of server v client v relay unusual.

[If - A similar approach for separated client/server modules is also used in RFC8676, where the client and server have discrete function, as with DHCP.]

> 
> I wonder if it is worth consulting a YANG doctor, NOT to show them the YANG and invite comments, rather outline in an abstract way what it is you want to model and see what they suggest; that might well be a single YANG module.

[if - Yes, I’d be happy to. Is there someone that you have in mind (I’ve not had much luck with getting YANG doctor input outside of the formal review process in the past)?. I’m not opposed to changing the way that the modules are structured on principal, I do however, think that the separation by functional element is logical and simpler for implementers, and I would like to know what the benefits of a single module (or other structure) might be.]

> 
> I do have quite a number of detailed comments but do not think them worth making until the I-D seems to me more stable.

[if - It’d be great if you could supply them as well so I can start going though them and fixing what’s currently fixable in parallel to the discussion above.]
> 
>> 
>> Tom Petch
>> 
>> On 07/01/2021 16:10, ianfarrer@gmx.com <mailto:ianfarrer@gmx.com> wrote:
>>> Hi Tom,
>>> 
>>> Many thanks for the comments. I’ve just uploaded -16 which addresses them.
>>> 
>>> One other change is that the wrong file was being included for the relay module. This is also resolved in this version.
>>> 
>>> Cheers,
>>> Ian
>>> 
>>>> On 6. Jan 2021, at 13:50, tom petch <daedulus@btconnect.com <mailto:daedulus@btconnect.com>> wrote:
>>>> 
>>>> Ian
>>>> 
>>>> Looking at -15, it looks a bit screwy.
>>>> 
>>>> There appear to be six YANG modules which means there must be six prefix registered but IANA Considerations registers the same prefix six times:-(
>>>> 
>>>> The lines have been chopped at 76? characters so that one character appears on a line by itself in several places towards the end in the Appendices
>>>> 
>>>> There is a convention which I find like to use
>>>> RFC XXXX <name of document>
>>>> where a reference is needed to the I-D when it becomes an RFC.  A note to the RFC Editor to replace XXXX with the number assigned is nice to have but I think that the RFC Editor is by now well acquainted with YANG modules. RFC YYYY etc can then be used for other I-D, which there often are although not I think in this I-D.
>>>> 
>>>> Tom Petch
>>>> 
>>>> 
>>>> On 01/01/1970 00:00,  wrote:
>>>>> Hi,
>>>>> 
>>>>> I’ve just updated the draft using the correct file headers so the IETF’s automated YANG checking tools recognise the modules. This got lost a few versions back when we moved to v3 formats.
>>>>> 
>>>>> This also flagged up quite a few gremlins in the modules (mainly leaf orders and line length problems), so these have been fixed as well.
>>>>> 
>>>>> Thanks,
>>>>> Ian
>>>>> 
>>>>>> On 10. Dec 2020, at 14:38, internet-drafts@ietf.org <mailto:internet-drafts@ietf.org> wrote:
>>>>>> 
>>>>>> 
>>>>>> A New Internet-Draft is available from the on-line Internet-Drafts directories.
>>>>>> This draft is a work item of the Dynamic Host Configuration WG of the IETF.
>>>>>> 
>>>>>>        Title           : YANG Data Model for DHCPv6 Configuration
>>>>>>        Authors         : Yong Cui
>>>>>>                          Linhui Sun
>>>>>>                          Ian Farrer
>>>>>>                          Sladjana Zechlin
>>>>>>                          Zihao He
>>>>>>                          Michal Nowikowski
>>>>>> 	Filename        : draft-ietf-dhc-dhcpv6-yang-13.txt
>>>>>> 	Pages           : 97
>>>>>> 	Date            : 2020-12-10
>>>>>> 
>>>>>> Abstract:
>>>>>>   This document describes YANG data modules for the configuration and
>>>>>>   management of DHCPv6 servers, relays, and clients.
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> The IETF datatracker status page for this draft is:
>>>>>> https://datatracker.ietf.org/doc/draft-ietf-dhc-dhcpv6-yang/ <https://datatracker.ietf.org/doc/draft-ietf-dhc-dhcpv6-yang/>
>>>>>> 
>>>>>> There are also htmlized versions available at:
>>>>>> https://tools.ietf.org/html/draft-ietf-dhc-dhcpv6-yang-13
>>>>>> https://datatracker.ietf.org/doc/html/draft-ietf-dhc-dhcpv6-yang-13
>>>>>> 
>>>>>> A diff from the previous version is available at:
>>>>>> https://www.ietf.org/rfcdiff?url2=draft-ietf-dhc-dhcpv6-yang-13
>>>>>> 
>>> 
>>> .
>>> 
>