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

t petch <ietfa@btconnect.com> Wed, 20 January 2021 12:24 UTC

Return-Path: <ietfa@btconnect.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 3296E3A11A3 for <dhcwg@ietfa.amsl.com>; Wed, 20 Jan 2021 04:24:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.962
X-Spam-Level:
X-Spam-Status: No, score=-1.962 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, MSGID_FROM_MTA_HEADER=0.001, NICE_REPLY_A=-0.262, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=fail (1024-bit key) reason="fail (body has been altered)" header.d=btconnect.onmicrosoft.com
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 lQ5VdWgMrV0h for <dhcwg@ietfa.amsl.com>; Wed, 20 Jan 2021 04:24:38 -0800 (PST)
Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2129.outbound.protection.outlook.com [40.107.20.129]) (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 A1F423A11A2 for <dhcwg@ietf.org>; Wed, 20 Jan 2021 04:24:38 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NNOr/MfKZsgovaIHXMPEluNl5xUN8L/DxFBRaRCqksb0wcbmTyo9X0f7FWycf7VPeiX1WvaSTBgpW2pGC2bTvEKxvklbdQs5ICU441HlQq2VFA1+xY2+t7DnV3WFNQ0hhTO39vDnJM95lAHxoqQXevlPhWL3gQb1pBBRkMk90v5WrtuOK6en7JeuxBYec1J2DQAjWvZOS/kYrPxu9HjJ8Id988v/DPnRRVrUX2UBdU8QpP2gcUb3eOp5aEFbpwNKkCIWmPyYduRBM2ffyU4Dw+FP4KRcXyJF45UKoOLFRQaAEgm7olfLZFNbd3/Cmm7dCyrxjcmG9i003sLC38tPiw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QqpGyK/eU3cyTMtX10Qona8aKvFTwRPu99v/QXld/60=; b=fFU7KUDj572Y7BMKeRZEWc/sC5OBQVP8QSJIey0j9NpeWp9cSasxhm8WlNUPjffOq3a/ek1BX7sz6lg8JsjSQUgb8PhzAFmagoNZ/nrpovGWLcWYDe753f3JePIjUQ90ITztq1DdfdF8qwBIN57zgpK4YwfTpivmoYv6qegLDFwFFPKfbuxrBnhBSDdGmG2V7VYfe5KX/6PKqKNWeD+p1ro4gs2bdVRiRLe6EWCbog2AcejHHjcsHi5InQiN3M0KQgJI8i7bZRRXbXFDzdSZTUquFBL/FuP9hcS826ngGSjfH6zeVHgB2I3/ndsnufSbhi9Y7ftfi5izRU/OIYmJcw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=btconnect.com; dmarc=pass action=none header.from=btconnect.com; dkim=pass header.d=btconnect.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btconnect.onmicrosoft.com; s=selector2-btconnect-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QqpGyK/eU3cyTMtX10Qona8aKvFTwRPu99v/QXld/60=; b=erRhewU0bblDI3bN5IZwv/zxSnA/n/rDFgKiH7z1IhQlNy/auIgunES4twI1EQQgKT69mlnlk1Fo66pafFdmhAfzESWcqARLGL24yoPWDCfDYATKbyTS/vFxzGgsa+MlhVoTLDthtuyU8jyTZRlA+hqFhVJKnrN+hkHN8HIfogk=
Authentication-Results: gmx.com; dkim=none (message not signed) header.d=none;gmx.com; dmarc=none action=none header.from=btconnect.com;
Received: from (2603:10a6:10:73::23) by DBBPR07MB7675.eurprd07.prod.outlook.com (2603:10a6:10:1e8::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.5; Wed, 20 Jan 2021 12:24:36 +0000
Received: from DB7PR07MB5546.eurprd07.prod.outlook.com ([fe80::e079:baec:373c:824f]) by DB7PR07MB5546.eurprd07.prod.outlook.com ([fe80::e079:baec:373c:824f%7]) with mapi id 15.20.3784.010; Wed, 20 Jan 2021 12:24:36 +0000
From: t petch <ietfa@btconnect.com>
To: dhcwg@ietf.org, ianfarrer@gmx.com
References: <A4876940-038E-43B7-8FDF-7C6B8DCA546E@gmx.com> <5449AD17-B1CE-4612-A5A9-D3A0115104EE@gmx.com> <DB7PR07MB55462FF61FE03534A710D851A2A30@DB7PR07MB5546.eurprd07.prod.outlook.com>
Message-ID: <60082100.9070802@btconnect.com>
Date: Wed, 20 Jan 2021 12:24:32 +0000
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:38.0) Gecko/20100101 Thunderbird/38.5.0
In-Reply-To: <DB7PR07MB55462FF61FE03534A710D851A2A30@DB7PR07MB5546.eurprd07.prod.outlook.com>
Content-Type: text/plain; charset="windows-1252"; format="flowed"
Content-Transfer-Encoding: 8bit
X-Originating-IP: [86.146.121.140]
X-ClientProxiedBy: LO2P265CA0457.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a2::13) To DB7PR07MB5546.eurprd07.prod.outlook.com (2603:10a6:10:73::23)
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
Received: from [192.168.1.65] (86.146.121.140) by LO2P265CA0457.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a2::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3784.11 via Frontend Transport; Wed, 20 Jan 2021 12:24:35 +0000
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 45e67864-a79b-4cab-29c4-08d8bd3e5982
X-MS-TrafficTypeDiagnostic: DBBPR07MB7675:
X-Microsoft-Antispam-PRVS: <DBBPR07MB76757D4C0A3B962F8EDD05C7A2A20@DBBPR07MB7675.eurprd07.prod.outlook.com>
X-MS-Oob-TLC-OOBClassifiers: OLM:10000;
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: 0b9wn8sTeEsrWvHKfywksorq/ZGB3OID6FFGPMqUkk6ebzMYoQH7kxLuIFTFaV5R5bk7K7GlgRmkb6bhokL+aIJgtj937Lh7p4WsQlRNrscUSJsnwvB1FgcMFdJHgDDnz7l0tHEGk1dWkUQny6kmA7FigsddUOcl5NjF47kERgKygI4JLUCB3eXRmh1TKo1FKZC1kLuqPBuBPi0fyuG+pyWu6LVjaA2YMnvoXy1OaCKXl+Y8DLTwy/Q86WzBwDX/APbqNZOYRC1C1Sh0/4Aplhha+8/uHdOAQv3tmWve44PCbMOE8FNpWD737PfvRiSD3PLwfyoNnRI6jNNrUXO2NwGsxt7QlozVGzqC2uNJyn7v2YupEggJRkKyyremOqwSiOHebHBhZiKYnNOeX8CtjHUrrnrvcHhGDzE0b8gGWXW5aQjsvdGJ+K+FJ0HfdTj5qBKfdtFnPivFXFUg4lRznwgzTvjcKVGQTVdxbFAXrzhI9gs8xVi/bK6Y/Aybihsxu8rcZf6od9MlFK1xHX2xjuZAs1fxLDAPAX8rstlMxqni655XqH2+c3W/v45dJ90/ZKRo6Srfs3vx7Jsh8g5BxAkj8FppUggYECTAE/zeAghtrFoSJHOibJWp7sVm9XtkklQRwk9/iz0nJBwRgNUV4elFXPMn9UwIbH4EbwU/Rx4=
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB7PR07MB5546.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(346002)(136003)(376002)(396003)(39860400002)(366004)(186003)(87266011)(16526019)(36756003)(956004)(52116002)(66946007)(6666004)(2616005)(4001150100001)(66556008)(316002)(16576012)(5660300002)(478600001)(66476007)(53546011)(83380400001)(26005)(8936002)(66574015)(2906002)(86362001)(966005)(8676002)(6486002)(518174003)(62816006); DIR:OUT; SFP:1102;
X-MS-Exchange-AntiSpam-MessageData: tqmNivPoO9yxrd45IJ6URyxu4dZP9Q/yeh2e2rrfdxnekoXi4W0pDh1Qbt0aOyc8SAl5zzZx+iEd/5kb6QSlKRyZ74QJ7yPQFfRazSeLvj0IsIn4XQYLVp1osFNb4bn7Cl7sdycTYyClOpHDGBzpUz1YQ1FL4G5qMu7gcY2JCYf7R37b4w7oXo5Yr0UrLNG+PhT6zW89O2j68D48bhh/qOfCtjkTvAoxJiiPMvHv8j9wUe12ilvqXit0Zmv2HYxRU2mB4YjSMxXzIu518/Wtm5zKs5bnUVElD91wCku4Ilo2/r9GCh93Ukvye/wtOoxLVsDRNmh9WTaLhaIt9K/SSAwUeN9FfrV8Up07IdH9EhdARVrKUm+UXLPNyRApFkh8wXWrXJHduyLqI4BvjbXpFwSWPM/b70K2/pf94hI9Lg9Jb+T9uysZeyGaTARdW5ROPciZzcAqDrAjHR/paKtSbDyd3ux+VrrhdxT5/tWkaWcrC56Ou8YXLdN5MLDc2D5q1UFgaFoumpyCy+U8h73wok5zAFbiRXAYa7OvzAHS02l4CvJouX7/PAvtF1yyCNcbku9uGDdMDO4iHIMmalFqEWvWeySzvldktZGjzWPlcCKLfEKblwRVycQ2kOsRcjHW9t6RYhCnEBTqwj03RjUxhsXsphBEpTuTTI+pAPQIIDHZvzDCvd9vswYIMG72a6gF35DukkKQQea+w2mvIxLOvZ010dh9uWsfGAXVbr5xD22e4GMzLwjba83BRTYAwPCta/+v0UYtCsiJad0iWtSsK5wrxdJtAYVB/N9IByblcoWHeCbwWGKQgRok/8M9f6hAdwAZWLLE4RCldEhld7Zxz8PqoM3DaJvqxiXBEzQy3LFsgiW8y12dK6M0U4ibjwGfwoS9AplX6cT9gnBIxH6nCGIsj5zgkfdueUW8NqaBqGTT/gLhE19tZE3vjtGias/nmIY6uMbPPsP4OUwh0uPnxR4/Qp0ei5MCF4H2qNVBbQH7lH6898F5z8hfxTspSrbn
X-OriginatorOrg: btconnect.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 45e67864-a79b-4cab-29c4-08d8bd3e5982
X-MS-Exchange-CrossTenant-AuthSource: DB7PR07MB5546.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2021 12:24:36.2788 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: cf8853ed-96e5-465b-9185-806bfe185e30
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: P0mjCuEIU/Y211S3/lsMNHDdLbQPXrAxm6KFvTcicLO8AqIqDIaJPWElT3YXPl9maFvPkDibpfmD/K+S/7lrzA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR07MB7675
Archived-At: <https://mailarchive.ietf.org/arch/msg/dhcwg/hLCDC_vPkiUo47NGMGxLxuJ3tPg>
Subject: Re: [dhcwg] Fw: 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: Wed, 20 Jan 2021 12:24:41 -0000

On 19/01/2021 11:25, tom petch wrote:
> ________________________________________
> From: dhcwg <dhcwg-bounces@ietf.org> on behalf of ianfarrer@gmx.com <ianfarrer@gmx.com>
> Sent: 19 January 2021 07:37
>
> 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?]

Ian

Almost all the YANG models I know of are single module.  For example,
draft-ietf-ospf-yang supports two versions modelled as identity and 28 
options modelled as features.

draft-ietf-tcpm-yang supports client and server as containers with 
if-feature and has other features as well

draft-ietf-pim-igmp-mld-yang supports five versions of two protocol 
using identity

draft-pce-pcep-yang offers the roles of pcc or pce or both using typedef.

And so on and so on.  if-feature, when and suchlike provide the 
necessary customisation.

I think that your problems with options are because the identity are 
defined in the wrong place.  The base, the common module (or part of the 
one and only module) should define what is common, what everyone needs; 
if there are three roles and a dozen options, than that is where they 
need to be defined.

Then there can be an object which is configured with the roles of a 
particular box, client or server or relay, or if required, a combination 
of the there - simpler if that is out of scope as you suggest.

My startng point would be a dhc container with a role and then 
containers for client, relay, server, added by augment and controlled by 
when pointing at the rold.

I will post something to the netmod WG list - there are lots of people 
there with greater exposure than mine who can give better guidance than I.

Tom Petch

> 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/
>
> 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
>
>
> .
>
>
>