[dhcwg] FW: Yangdoctors early review of draft-ietf-dhc-dhcpv6-yang-19

"Bernie Volz (volz)" <volz@cisco.com> Thu, 03 June 2021 15:05 UTC

Return-Path: <volz@cisco.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 00CA83A1569 for <dhcwg@ietfa.amsl.com>; Thu, 3 Jun 2021 08:05:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -11.896
X-Spam-Level:
X-Spam-Status: No, score=-11.896 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com header.b=T2Er2lqZ; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=f7HBlnuX
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 d9PYauEaMu_0 for <dhcwg@ietfa.amsl.com>; Thu, 3 Jun 2021 08:05:36 -0700 (PDT)
Received: from alln-iport-8.cisco.com (alln-iport-8.cisco.com [173.37.142.95]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D22D03A1564 for <dhcwg@ietf.org>; Thu, 3 Jun 2021 08:05:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=10705; q=dns/txt; s=iport; t=1622732735; x=1623942335; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=keLJY51BPZ7uLyz3OCBc1qR8bB1DMmtHTm6Yu/NJxgg=; b=T2Er2lqZMq0CADsYRZvmL3Hz7Z5E9smpHSkPBOPvCP78mg4ugPiczhRn M7RUvCkbP3FlNe93ufd8FpTQIFf1Pisy8+Cs8g2NqS3hysfNyLV39MOme EyOTqr7NLQ9CaeepQlDkK3slHcoiFEFnlBfVrrhMoIqxZAiKHFu/WcimQ 8=;
X-IPAS-Result: A0CCAwBe7rhgl4YNJK1RCYEJgypRflo3MQuIBQOFOYhwA49Rij6BQoERA1QLAQEBDQEBKgsKAgQBAYEYgzgCgX8CJTgTAgQBAQEBAwIDAQEBAQUBAQUBAQECAQYEFAEBAQEBAQEBaIVoAQyGRAEBAQMBAQEQKAYBASwMBAcEAgEIEQMBAQEBHhAnCxsBAQUDAgQTCBqCTwGCVQMOIQEOnhABgToCih94gTSBAYIHAQEGBASFOBiCMQMGgTqCe4Z0g3snHIINgRQBQ4FfgQA+giBCAQGBNBICGiSDJ4IMIoFZcQE9HAoBA0MQFwkCLgseBgYTLBoeBgEDDAMgFimQXCYpDI5tmiUJgQwKgxuYHYVpEoNeixuQOYYolUuCGJ0dhHECBAIEBQIOAQEGgWsigVtwFRohgmlQFwIOinCDOAMNCYNOhRSFSnM4AgYKAQEDCXyJKAGBEAEB
IronPort-PHdr: A9a23:jZDg1B/qt5bBBP9uWDnoyV9kXcBvk7T5IgBT7YAo2PpCcaWmqpLlO kGXpfBgl0TAUoiT7fVYw/HXvKbtVS1lg96BvXkOfYYKW0oDjsMbzA0tHMDDDlf0f7bmaiUgF 5FEU1lot3iwLUlSHpP4YFvf6n2/5DIfAFPxLw1wc+/0AYXVyc+w0rPaxg==
IronPort-HdrOrdr: A9a23:NpRoh6sFpN8njhGy6cBIZL2n7skCqIMji2hC6mlwRA09TyXGra GTdaUguyMc1gx/ZJh5o6H9BEDyewKiyXcT2/heAV7CZniohILMFuFfBOTZskXd8kHFh4tgPO JbAtVD4b7LfBlHZKTBkXKF+r8bqbHtms3F9ISurUuFDzsaEZ2IhD0JbTpzZ3cGPTWucqBJcq Z0iPA3wwaISDAyVICWF3MFV+/Mq5ngj5T9eyMLABYh9U2nkS6owKSSKWnZ4j4uFxd0hZsy+2 nMlAL0oo+5teug9xPa32jPq7xLhdrazMdZDsDksLlXFtyssHfrWG1SYczHgNkHmpDp1L/sqq iLn/4UBbU315oWRBDtnfKi4Xi57N9k0Q6d9bbRuwqTnSW+fkNgNyKE7rgpLycwLCEbzYtBOe twrhKknosSAhXakCvn4d/UExlsi0qvuHIn1fUelnpFTOIlGfVsRKEkjQto+a07bWnHAUEcYZ 5T5crnlbtrmJOhHjnkV0xUsZCRt1gIb2K7q3k5y7qoOmJt7QJEJmMjtbgid1k7heEAd6U=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-AV: E=Sophos;i="5.83,246,1616457600"; d="scan'208";a="721509396"
Received: from alln-core-12.cisco.com ([173.36.13.134]) by alln-iport-8.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 03 Jun 2021 15:04:48 +0000
Received: from mail.cisco.com (xbe-rcd-004.cisco.com [173.37.102.19]) by alln-core-12.cisco.com (8.15.2/8.15.2) with ESMTPS id 153F4m4F013603 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL) for <dhcwg@ietf.org>; Thu, 3 Jun 2021 15:04:48 GMT
Received: from xfe-aln-003.cisco.com (173.37.135.123) by xbe-rcd-004.cisco.com (173.37.102.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Thu, 3 Jun 2021 10:04:48 -0500
Received: from xfe-rcd-004.cisco.com (173.37.227.252) by xfe-aln-003.cisco.com (173.37.135.123) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Thu, 3 Jun 2021 10:04:48 -0500
Received: from NAM11-DM6-obe.outbound.protection.outlook.com (72.163.14.9) by xfe-rcd-004.cisco.com (173.37.227.252) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15 via Frontend Transport; Thu, 3 Jun 2021 10:04:48 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WRf2jGi4UNegei+YdsIdw2u7xhSVz/6De6hPD3dxM2dDoZF9HM5AE7rZAwvs0sW9Bu1K3mBXNiq9CUScyz3fwjAoJKnseP3qhJTPOuVcX9hCsY2YqvKTPKbCXW31jDNPiUmf6z6lodgu+Mlyh/mrj2JahtoOFvRrCjq52IjjKIQl48Gh2DYfcmpCaJqPfBx9L6FtHNocGUQXJhSrljNUmjRp4icXeyip8yBKQkzSWPRPXUMsmKLMlk1BcZuJnB1x2neeqY2Tv5dey+IBBGxc4+59YmrDjHeb9C4d7zaghyYFQ3WxRfGTIPuESo3GV9f1eZh0xqEJtF/UPEa6W58srQ==
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=o7Xp7+c6vpEEsZA1RYYSKPwwHDtabp79hg/z8vdsTpE=; b=Fz3IOv3kDq3DeEcIYHEkIs6XR+tlHRmMuiz36bqTj6ld+MY5iXUuWGAA/Hxu6A7CHjbsEBltQgU9STCipOOPphpuz27q7AztNzJW5MNQ5hx7f2VjMRTewTFdc2gRTeT7/3t2rJluRqADg2kZhGIoMBi+2aOXJDf/nhbeWa0SzuMMReqMTKIAAZrx02blo/LvbPvKVWQsd3mH7lAs0dK6bbIpz9zn61lU+2eIfArz2WSH+G8klt9hxbUrtpQe1+NgxlvJ04vtMjloyNt42Gye+nhdIpfjY1nPDaqFz7bO4S56yRrzN4Ji1xof7gPlyw4msUBNEbtY3flAS1CuHLqXpg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector2-cisco-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=o7Xp7+c6vpEEsZA1RYYSKPwwHDtabp79hg/z8vdsTpE=; b=f7HBlnuXodI4dMWYOCxclBUeK+CLQZT7shiiFkRUq2giYHwWgzuCWStHz96KiNkTIxb7HphKDQ9as8VkVA77zVECrXyoKbmhce6k7E+E74DXh3JIQBbR73o5iPDHRgR4Y05KytWu4r3SyDqDFZUIRGS7pJF24BVsgCOJXbAnAdA=
Received: from BL1PR11MB5494.namprd11.prod.outlook.com (2603:10b6:208:31d::19) by MN2PR11MB4078.namprd11.prod.outlook.com (2603:10b6:208:150::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.22; Thu, 3 Jun 2021 15:04:46 +0000
Received: from BL1PR11MB5494.namprd11.prod.outlook.com ([fe80::58f9:f5f7:a657:9f31]) by BL1PR11MB5494.namprd11.prod.outlook.com ([fe80::58f9:f5f7:a657:9f31%3]) with mapi id 15.20.4195.022; Thu, 3 Jun 2021 15:04:46 +0000
From: "Bernie Volz (volz)" <volz@cisco.com>
To: "dhcwg@ietf.org" <dhcwg@ietf.org>
Thread-Topic: [dhcwg] Yangdoctors early review of draft-ietf-dhc-dhcpv6-yang-19
Thread-Index: AQHXWG2tB1fKrq63lk2YH1341zHS1KsCUHBggAADBrCAAAGpQIAADWFQ
Date: Thu, 03 Jun 2021 15:04:46 +0000
Message-ID: <BL1PR11MB54944E20D9F439F4D8FF0FEBCF3C9@BL1PR11MB5494.namprd11.prod.outlook.com>
References: <60B8C04B.1060703@btconnect.com> <BL1PR11MB549448755772D0B61D99181DCF3C9@BL1PR11MB5494.namprd11.prod.outlook.com> <BL1PR11MB54941B877F312ADA9F556BD1CF3C9@BL1PR11MB5494.namprd11.prod.outlook.com> <BL1PR11MB54943D555EF87C8BFA64A0D0CF3C9@BL1PR11MB5494.namprd11.prod.outlook.com>
In-Reply-To: <BL1PR11MB54943D555EF87C8BFA64A0D0CF3C9@BL1PR11MB5494.namprd11.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: ietf.org; dkim=none (message not signed) header.d=none;ietf.org; dmarc=none action=none header.from=cisco.com;
x-originating-ip: [173.38.117.65]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 1b970dde-45e5-445f-9a0e-08d926a0ed56
x-ms-traffictypediagnostic: MN2PR11MB4078:
x-microsoft-antispam-prvs: <MN2PR11MB4078FCD3DF43BD676297F0F3CF3C9@MN2PR11MB4078.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 15+D4aH/84fbTj726HHXkpDi52exNtSz5EyKtLxqKqu53djUPyJmzo3S9gBgS4UCHYmjIxru4dIT5Q5WMKLW47ddyjgglMRR3F0i5pUjNEmK65ga9+ZNxicOVZ9r9WGj61ec2bSONf4BfQuQUA0zlAs1ud32ZeBfcW3DRgpkj1GA97hvSttdhF2nUFz6vMUqJxAO/oBYplhFfJ6Dglg1tM8H3JhLY01JXVKQRNpvz7NnpHiLyLt/TEbytSYlt7GBegToV9kSP3QXex/ymNkNpzHvL9aPtFBeGx8FT1p6P9Elfl8xzDmTkIzXamUfrAQyeH21p+IwTufVnhAakKaO4hhOUUgFQdzA5f5CBCPDjuz+EomL5xLj63YUn8U69kYLS/IeuijQ9h4flRNGpWaRdK2h4sfSJvp5jMVUIAwcYiwIQmus2GYPTaG46X40KCBBZO3TZegeZOObagxXOxAf2jcksuNTkrJGnTj7MINYx3QSUFfplDTDF+PjJGIELGITNheLarbtID5O+0jQvuqOVytQCpL4J71VU6qLZrpcV1d+QGD8eRxQO+m+nU2W+HP7QSCZQ2M2htG56Qw5YJxeE67g++8WK3BJP/au43HNWx1cayxxx6tozUSXS58x4B/vYK4XaNFZr+7CPaxgbJO14RPmDWN0Hrk0g/5nQQ25iQ2ZqSWrSglb7r34xryU26MHjQJtHmRjgpiA2o5LY0fTSrHeVo1qGpCabz1ybDePabAzyAYWnulJo2f4suVm65lk8EMBy/H5Vt+aatfddApuLg==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BL1PR11MB5494.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(376002)(366004)(136003)(396003)(346002)(39860400002)(186003)(6916009)(7696005)(6506007)(86362001)(53546011)(33656002)(26005)(2940100002)(316002)(8676002)(8936002)(83380400001)(478600001)(966005)(52536014)(9686003)(55016002)(5660300002)(122000001)(38100700002)(71200400001)(66556008)(2906002)(66446008)(66946007)(66476007)(64756008)(76116006)(518174003); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: zCBKsSgHw86tKp2kzerh1tro88YqgWLrtvVCeXuVHWRkVl96nNODEkBB6NkJv08thOHiPzjtDbYbEOd7R02HG2Ysa2fVcvRtOGx1nRVbj33YGKM4XNhigAXNpPGk+xQsb+b3B+kLe/45SINeWwCEtfffvARXt9zsZZAuh0Da2RGbYkHu91ScNl0Yss4s0lgdE1pwJ4ipBIU7nBCHFwDxoI7gOAJesjKHJR8+FynC275MA3HSN24AuBYsAo5GxjinysMn5kUG2cN/X3Pr+xhP75cUXR0rOv6TTE7DEcieg+i6kTi861Za14Ps9Fk0b/t8EZJpr/JDnbisKDuZ/ndAj8XjJ0ERZKxilJdGbWUSdk+Y5OAGtzLTjqQNUyyg0EV+FuCwm+Tl7HOSX/zUzYzOfGfsCz8F4CRXRMCmZRhzKpfmspgj1fmg5og3mm9JXPrWlR49SvWP+usJs6XY4zMgxj6zIh7rIPIyEByZ2AjTcWHRP8I8zHIQpZ8Ht4oTb6MEKzIeZCNK4XxPs6ckdOPg07DD5F4Ukt2k6B7lEjq1l4WiJGXNnvQZLzhi5xjwZYqNmU7a/leBZg1EKnDglP0w9217BKFd/g8kE13+10zFGAwlM6Gw05c2kqY0Pz3WBFnx/KuDKtNumqPuNXSiBeEv8scZ8fetK0c6XJ/Gse9BTFrHMDQ0RKoCWO82HfQp8cLGMH0AMqaFzfCP4f055o5F/Z3YTd5AyANxAEyvg/f2bEES2dnc90nTB1BjBLTkDXsFKdLPZtnn3OTTJlwEhLar2iPqmDjxIIKkMQuUXgAk0utJqQDitwFZPMk1SpM35pVwcuQNbPp2Qqik3JGGGo212VIKynKNCcz5vljm3Zo52lrAckzBO3lck1Boa0t0EoP80mmZ4lYicxkFXCNC4iu9fs1WmF2ZylcYe1uoWjr5N1YFPMqcsccUIOanB1ZN/nIc7Zcw3zC8vw0ux1ar/buUw72CvIHa/Zk4zOGGp8BSUCrwTyJIe+yN6Qf8GjAEEY8nH1bY5VY8EoJtVNtFpFkA4/4ta4Vc6Ng/g9VkrE+tF7OEkHvNLlF1vucXYUjmK5SfSNxTskFkJYdn1iQ2QPgcbOOt6KFxSMiPm5P6aghADoBbeW2nPw+FkAEBCo9dIc0w4EeFPaxIq8rimUPfFqvHGo2wwGX04MLcY1QilPnRsFp+DzGLRLJZ0hEiY0z8OY5WH+ZBzeAFNJYqYlVynNveof7qOyWs3POZYd67nJjxLICt83y5m/xGsWc06f1KIyInWBf65cNI+ONXgYDQJhux62g/KBEf2wSuAgjHIcPMYcVjSn3Kyr6k4zChXr0rmmw4
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: BL1PR11MB5494.namprd11.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 1b970dde-45e5-445f-9a0e-08d926a0ed56
X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jun 2021 15:04:46.7497 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: DGmrSfSEkMimXNlBsoPodoM3gzHOQd88PY2MtKwmCH0ihvJ+tppbsVNPrmESbkdw
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4078
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.37.102.19, xbe-rcd-004.cisco.com
X-Outbound-Node: alln-core-12.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/dhcwg/gxdNzxCBlKtPq-0UgQ2KjYDvNhw>
Subject: [dhcwg] FW: Yangdoctors early review of draft-ietf-dhc-dhcpv6-yang-19
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: Thu, 03 Jun 2021 15:05:41 -0000

Sorry, I forgot to include dhcwg!

- Bernie

-----Original Message-----
From: Bernie Volz (volz) 
Sent: Thursday, June 3, 2021 10:20 AM
To: ianfarrer@gmx.com
Subject: RE: [dhcwg] Yangdoctors early review of draft-ietf-dhc-dhcpv6-yang-19

And a further item to consider ...

In using sample values, I assume one reason to put 0s before them would be to indicate they are hexadecimal values? But decimal and hex, I think, are somewhat used interchangeable in the document and it isn't always clear?

Perhaps hex values should be proceeded by 0x and omit leading 0's so that the "size" is not implied by the number of digits?

I'm not sure what's "standard" for YANG documents. RFC 8415 (I believe) used decimal unless 0x was before the value - for example, see Figure 6 (section 11.3) in RFC8415.

- Bernie

-----Original Message-----
From: Bernie Volz (volz)
Sent: Thursday, June 3, 2021 10:11 AM
To: ianfarrer@gmx.com
Subject: RE: [dhcwg] Yangdoctors early review of draft-ietf-dhc-dhcpv6-yang-19

BTW: There are also some uses of modelled that did not get changed to modeled?

Thanks for continuing to work on this!

- Bernie

-----Original Message-----
From: Bernie Volz (volz)
Sent: Thursday, June 3, 2021 10:08 AM
To: t petch <ietfa@btconnect.com>; ianfarrer@gmx.com
Cc: yang-doctors@ietf.org; draft-ietf-dhc-dhcpv6-yang.all@ietf.org; dhcwg@ietf.org
Subject: RE: [dhcwg] Yangdoctors early review of draft-ietf-dhc-dhcpv6-yang-19

Also, in the -20 there are some issues:

     typedef duid-llt {
       type duid-base {
         pattern '^0001' '0001'
           + '[0-9a-fA-F]{12,}';
       }
       description
         "DUID type 1, based on Link-Layer Address Plus Time
         (DUID-LLT). Constructed with a 2-byte hardware type assigned
         by IANA,  4-bytes containing the time the DUID is generated
         (represented in seconds since midnight (UTC), January 1, 2000,
         modulo 2^32), and a link-layer address. The address is encoded
         without separator characters. For example:

         +------+----+----------+--------------+
         | 0001 | 06 | 28490058 | 00005E005300 |
         +------+----+----------+--------------+

         This example includes the 2-octet DUID type of 1 (0001), the
         hardware type is 06 (IEEE Hardware Types) the creation
         time is 0x284900580 (constructed as described above). Finally,
         the link-layer address is 00005E005300 (EUI-48 address
         00-00-5E-00-53-00)";

Probably best if the hardware type (which is a 2-byte field) be written as 0006, not 06 (as 0001 is used for type).

Note also that bytes and octet seem to be mixed.  There are 5 uses of "byte" in the document and 16 uses of "octet"; I'd suggest replacing all "byte" with "octet".

Similarly, for duid-en, 0009 is used as vendor id when it should be 00000009 to indicate that it is a 4-octet field. (I think if you want to avoid leading 0's to not indicate the size of the field, you should do so consistently; otherwise use the leading 0s for hex values to indicate their size?)

And duid-ll has same issue with hardware type as duid-llt.

- Bernie

-----Original Message-----
From: t petch <ietfa@btconnect.com>
Sent: Thursday, June 3, 2021 7:43 AM
To: ianfarrer@gmx.com
Cc: yang-doctors@ietf.org; draft-ietf-dhc-dhcpv6-yang.all@ietf.org; dhcwg@ietf.org
Subject: Re: [dhcwg] Yangdoctors early review of draft-ietf-dhc-dhcpv6-yang-19

----- Original Message -----
From: <ianfarrer@gmx.com>
Sent: Tuesday, June 01, 2021 5:48 PM

> Hi Acee,
>
> Thanks again for your review. My apologies for how long to work
through them all and prepare the update. I've just posted -20 which aims to address your comments.
>
> Please see inline below.
>
> Additionally in this version, there are some small errors corrected
(typos, incorrect regexs) and the example YANG modules have been renamed and have namespaces according to RFC847.

Ian

Piggybacking on your note to Acee...

When I saw the revised prefixes I thought 'I wonder if the IANA Considerations have been updated'!

The revision statement for the RFC-to-be needs the publication date, a change which the RFC Editor is now well used to, and needs to say "Initial Revision" in all the modules and  reference of "RFC XXXX: YANG Data Model for
DHCPv6 Configuration" i.e. the I-D current title; again, the RFC Editor knows what to do with XXXX.

The description of 'typedef duid-base' looks corrupt.

Tom Petch

> BR,
> Ian
>
> >> On 5. May 2021, at 23:32, Acee Lindem via Datatracker
<noreply@ietf.org> wrote:
> >>
> >> Reviewer: Acee Lindem
> >> Review result: On the Right Track
> >>
> >> Document: draft-ietf-dhc-dhcpv6-yang-19
> >> Reviewer: Acee Lindem
> >> Review Date: May 5, 2021
> >> Review Type: Early Review
> >> Intended Status: Standards Track
> >> Summary: On the right track - Issues and questions need to be
resolved.
> >>
> >> Modules: ietf-dhcpv6-server@2021-03-17.yang
> >>         ietf-dhcpv6-relay@2021-03-17.yang
> >>         ietf-dhcpv6-client@2021-03-17.yang
> >>         ietf-dhcpv6-common@2021-03-17.yang
> >>
> >> Tech Summary: The document contains the base configuration and
operational
> >>              YANG model for the DHCPv6 protocol. The basic
structure is
> >>              very good but the major issues need to be addressed
prior to WG
> >>              last call.
> >>
> >> Major Comments:
> >>
> >>    1. Should the DHCP server, relay, and client functions be
enabled by
> >>       default? It seems they are require specific configuration to
be
> >>       viable.
>
>
> [if - I've removed 'default enabled' from server and relay and left it 
> present for client, as discussed]
>
> >>
> >>    2. The threshold type in the ietf-dhcpv6-common is strange. It
is a
> >>       union with an enumeration to disable the threshold. Normally,
if
> >>       there is no threshold, you would simply not specify it.
However,
> >>       the data nodes of this type are mandatory. I'd make it a
simple
> >>       type and remove the mandatory designations for the data
nodes. Also,
> >>       the range should not start at 0% since this % makes no sense.
>
> [if - Removed enum and changed type to uint8 Removed 'mandatory true' 
> from the data nodes in the server module Changed range to 1..100]
>
> >>
> >>    3. There are examples of augmenting the ietf-dhcpv6-server
module but
> >>       no "Module Usage Examples" as specified in section 3.12 of
RFC 8407.
>
> [if - Added Appendix A with XML examples for all of the element 
> modules]
>
> >>
> >> Minor Comments:
> >>
> >>    1. While not required by RFC 8407, many YANG RFCs explcitly call
out
> >>       the interaction with imported YANG modules in a separate
section.
>
> [if - I've extended the description in the introduction to describe 
> interactions]
>
> >>
> >>    2. No sense in maintaining all the intermediate revisions in the
> >>       modules. Just update the one that is the initial version and
update
> >>       the date.
>
> [if - Removed]
>
> >>
> >>    3. The module prefixes are very descriptive but a bit long.
Given
> >>       the examples of augmentations, this will be especially true
for
> >>       DHCPv6 server augmentations. Perhaps, dhc6-serv, dhc6-rly,
and
> >>       dhc6-clnt would be better.
>
> [if - Changed. 'dhcpv6-common' has also been shortened to 'dhc6']
>
> >>
> >>    4. Can host-reservation prefixes overlap with holes? If so,
> >>       reserved-prefix may not be unique. If not, no problem.
>
> [if - For the DHCP server implementations that I am familiar with, the 
> prefixes will be checked when config is applied and any prefix 
> overlaps will be rejected as invalid.]
>
> >>
> >>    5. For nodes with patterns, describe what the pattern allows in
> >>       the description with an example or two. This applies to
> >>       link-address, duid-base, duid-llt, duid-en, duid-ll,
> >>       duid-unstructured, and sub-option-data.
>
> [if - added examples in the description fields]
> >>
> >>    6. With respect to link-address, what type of address is this?
If it is
> >>       an IPv6 link-local address, there is an ipv6-adddress type in
RFC 6021.
>
> [if - link-address should be a GUA. I've changed the type to
ipv6-address.]
>
> >>
> >> Nits:
> >>
> >>    1. IETF documents should use US English - not UK English. I've
> >>       changed in suggested edits.
>
> [if - Incoporated the proposed changes, see below]
> >>
> >>    2. Description format - Sometimes starting right have
"description"
> >>       and sometimes starting on the next line.
>
> [if - Moved description text to start on the next line throughout.]
>
> >>
> >>    3. sol-max-rt-option-group and inf-max-rt-option-group should
spell out
> >>       the words in the description rather than just repeating the
short
> >>       abreviations.
>
> [if - Changed]
>
> >>
> >>    4. In ietf-dhcpv6-client,  for ia_ta and ia_pd, spell our
> >>       acronyms in the descriptions rather than just repeating them
(which
> >>       is useless).Is "ia" "interface address"? Don't make the
reader
> >>       go to the DHCPv6 RFC to know what you mean. What is "ia_ta"?
>
> [if - Added expanded version in the description for each IA (e.g.
IA_PD (Identity
> Association for Prefix Delegation)).]
>
> [if - for the remaining diffs, I've incorporated them exactly as
suggested, with the
> Exception of one comment below:
>
> >> ***************
> >> *** 1216,1222 ****
> >>             path
"/dhcpv6-server/option-sets/option-set/option-set-id";
> >>           }
> >>           description "The ID field of relevant set of DHCPv6
options
> >> !            (option-set) to be provisioned to clients of this
> >>             network-range.";
> >>         }
> >>         leaf valid-lifetime {
> >> --- 1218,1224 ----
> >>             path
"/dhcpv6-server/option-sets/option-set/option-set-id";
> >>           }
> >>           description "The ID field of relevant set of DHCPv6
options
> >> !            (option-set) to be provisioned to clients of the using
> >>             network-range.";
> >>         }
> >>         leaf valid-lifetime {
>
> [if - I'm not sure if the intended change here is correct. I've 
> changed the wording to 'clients using the network-range.']
>
> _______________________________________________
> dhcwg mailing list
> dhcwg@ietf.org
> https://www.ietf.org/mailman/listinfo/dhcwg
> .
>
>