Re: [dhcwg] I-D Action: draft-ietf-dhc-dhcpv6-yang-18.txt

t petch <ietfa@btconnect.com> Thu, 04 March 2021 12:39 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 6F1433A1A63 for <dhcwg@ietfa.amsl.com>; Thu, 4 Mar 2021 04:39:32 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.601
X-Spam-Level:
X-Spam-Status: No, score=-2.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, MSGID_FROM_MTA_HEADER=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, 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=pass (1024-bit key) 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 J8SjxwPZQs9P for <dhcwg@ietfa.amsl.com>; Thu, 4 Mar 2021 04:39:29 -0800 (PST)
Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2109.outbound.protection.outlook.com [40.107.22.109]) (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 4F4753A1A62 for <dhcwg@ietf.org>; Thu, 4 Mar 2021 04:39:29 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P+IM8wOTlUxVaZ17f4wXvfOyfTsxmC17x5Wb0F57MTivcC/88eibclyfzNLl0EVs7XAtrRdXcIc+h44gVTr+XLMb3DQ7Q9Gwp+ogNJG7hd4L2578jYyZJiIzokKmY3Ye5+hoUBgnvFaFqkE8JxFOUlrnyRCu6Vf3mICuOiylR6lrl5dOBXOApXhWGyRsb3s5B7HZH7qzXIpS/UFoEPbLpExeTk6Nct0p+L2GdjFQpqHMiV3049ytmbTLDw3ksye3gO5dXMxYGZTp5qF6wreXAbxc4Ai3uYOLREoKOm6A30YOvKoPUbj8izg4lMG+BBxqz+FmWqMQvAQq3yEHCFNZzw==
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=qnxvg+b0zXi32bgIqtM8zy/1xzgWImoTRR7it/nxgrs=; b=k0RNYDPnqfjaE4xm4jZd0q/iW28cDyWiYw0PhP7w5V2sXgPC0w9wp8tZQeQ3l8IOQssJfrmOzXU9nWfhSrWLVnPMTLQFmxdXpS6gZ+KzTLF0fyrSnlRIB353y6ZAHvfskyd7gnlRvLUwLwpXq6y5Jjg3+geWoW5nGGvnPToplUfs8X43nTr0XV5rM5/5BfSPm0KMzfis1idr5kWY2VeurlGmFhLUrRWZTNABOK1TImDxee/Bt8+IHp2EE7h4lqH8LIAVbP1N0qmkKb74ASLJk+1jKO5bi4HVfEu1Jfpo5r/yVMbSv9k5KChPuUEYeoMSDVbkWezEQ1QkGPO/Y6fLwA==
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=qnxvg+b0zXi32bgIqtM8zy/1xzgWImoTRR7it/nxgrs=; b=b6+YWWHfdzt5dF93lWx7e9Vqb3DsH7x1c8MMGKzZw6pUdxadNmDTZS4WZ+AwPkP0uJSIOZ6wIoEJv7VRQtzX6Bf1BdiF9+DyKYqYx+izcbz1LLDFIFVZyrqMe/ISCEGilHIv4AmIQkqmWIaP7gkUn3wCsnZzG4sH4G8ldswEHrI=
Authentication-Results: ietf.org; dkim=none (message not signed) header.d=none;ietf.org; dmarc=none action=none header.from=btconnect.com;
Received: from DB7PR07MB5546.eurprd07.prod.outlook.com (2603:10a6:10:73::23) by DB6PR0701MB2453.eurprd07.prod.outlook.com (2603:10a6:4:5c::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3933.14; Thu, 4 Mar 2021 12:39:26 +0000
Received: from DB7PR07MB5546.eurprd07.prod.outlook.com ([fe80::e5d9:cd75:1ebc:a236]) by DB7PR07MB5546.eurprd07.prod.outlook.com ([fe80::e5d9:cd75:1ebc:a236%4]) with mapi id 15.20.3912.016; Thu, 4 Mar 2021 12:39:26 +0000
From: t petch <ietfa@btconnect.com>
To: ianfarrer@gmx.com, dhcwg@ietf.org
References: <6019394A.8010303@btconnect.com> <603E3235.10501@btconnect.com>
Message-ID: <6040D4FC.2020903@btconnect.com>
Date: Thu, 04 Mar 2021 12:39:24 +0000
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:38.0) Gecko/20100101 Thunderbird/38.5.0
In-Reply-To: <603E3235.10501@btconnect.com>
Content-Type: text/plain; charset="windows-1252"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Originating-IP: [86.146.121.140]
X-ClientProxiedBy: LO2P265CA0478.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a2::34) 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 LO2P265CA0478.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a2::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3890.23 via Frontend Transport; Thu, 4 Mar 2021 12:39:26 +0000
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 88dc8d90-5ec1-45ab-a11e-08d8df0a8bf5
X-MS-TrafficTypeDiagnostic: DB6PR0701MB2453:
X-Microsoft-Antispam-PRVS: <DB6PR0701MB2453BFB8C4486905270D6A89A2979@DB6PR0701MB2453.eurprd07.prod.outlook.com>
X-MS-Oob-TLC-OOBClassifiers: OLM:6790;
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: Ld74ISddSYGQHRcNIrQvRu37e+cDnTS7WMkbp/RmJpGYZDhqzcNOqW9RokdOCjivEplMFQF/FmTw9jNWn1j3kK5+FQ6cnIfAb1owNkNFQt62US7H3JDmmd8ggU8eVYFHMig0TcDk65R7f/p2X877RuBoWuFTJsu87GyxQizkzLRFsI0vGVQIlPNCAhTxbFhylsONDF7BeD7aoHj0zn5eH/1R97f4l1/6HvAlplniS1BtRKF2jZ0g4thCNOohMzI2Mjo6hYoOMFFB3YgQ3L1PZAsS66wVbuxAXyvG3kwBL9L4UeWbQLg44u19sqqtQ6sC68DewFmg9Lp5/cgK6Zq1NLLa3hz1/6kvBdLQh4TltCFPXZR/A16l59Cywne5c+nn0ArUWiKysvIgckYGM3H0/1MdvqOW954ZC2lyaIcXk76D3O6easw5m7WlmGghDYSoqVn75ZeoXxXLuQB2F8tLDha28AmxVwYprUmcY58VSkNNgLjNNCBFYBa+LGl+xblrsp6Qailn+lvurYLhtavIDwv9Lm4IAouRgHX8IoRH0dFXq1zw933hveFnx4KI+wSydSe6IkPqBwqmHj62idMn2idk3z60SSd7EAqMc6MHWnSz2/C7tfXzXy8eh0V8sldRX4ma+RnUd+TP8U898BRy2e3pyAHdkMH4Eq9uWFXkOsuwN/zxi7ECmn+VHfl0+gEe
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:(366004)(376002)(39860400002)(136003)(396003)(346002)(36756003)(8676002)(87266011)(966005)(5660300002)(83380400001)(66574015)(33656002)(8936002)(956004)(316002)(26005)(86362001)(2616005)(2906002)(16576012)(6486002)(478600001)(66556008)(53546011)(52116002)(66476007)(66946007)(186003)(16526019)(518174003); DIR:OUT; SFP:1102;
X-MS-Exchange-AntiSpam-MessageData: wtBmiIYZgB0E8URbYbln7jBPiBFEJN1roWkV5znPIk15bqLZDHnwyUpEpgXScbLvCrXeTdGnlQdEvF14d6+/+dO0Tc/GjyN+QtyfQbU0s84tq0Torh2nYtMCT0irx2Fe7THArqZpMCTt2BYJznvqS2xqklQtRpKVb/VrtLEJD+oo2GH9z8ij0gAQTXG2fvYZYCqBLjHlwNV1Wdr6MG2HYcdV4KHAasMCZtODb8Ie55nZhIbdlJGDJ87Bxjc6msd5xtkgukGU2nqKCsRDXVRiEI+7MtuRCQUL9CJEyaeyL3xPSq31DCGJQ5Pv+AYr1E6BiqYt0PI6B+X0ZPlP8YrX9z3dhfWhvlObySJt9ffZ6VBV62+P9NQtREGysOXmfoe0KvD9Po3bT6bcC9tz5bk/2gQ5iMis+tDc7deYu8E5y3JyRoqW8eS4/fnqrfiPKI+RRtOkzztIsjie8jPuTr5N/uObniB8+sZOjQAYWyuN47oZpXbgJdIXuh7Wa9sDgxsU+lJbb41jWfBsch5P4B/6EFYvGknKVtC9HWYQ/K6IpIzUmL0wkSTs82SSNeSSpxtOs0ArK/rXYbGscMx2s38PUb4cN/lE9O7cE6JQFHjxBknEK7vjC1HEAwdRp2FI53k0+MkJ45SahPqBLWuDd1ridTjMC/DOmyGmmSuYJYYLNvRjgQuEaEIJxWyErTV8tSu3N6jl48AOgYT9AgFE4g6GgGQYqF+bOmbL9KFvsfYPzxn0lrkdVTqvqte4pTDPexbnXsWpzB8KBen48CZkxZBzrjlI0XHkYupRHuE7Qklq4DswsiV89HWTOyOx/o7slh/wLlqHROMfNlKo0fYU6L3sm7BpqYDk8RCHooQpMJ3ET1squZ8fH/La/ZZMifpeQ6Fyn24lpumi9eXwo4SZMLRQwAmYzJ7mRoJ4HxmyGcNzQH0miauz+fQpeUFZTOPwZ4283+8zZf112lBwhd5VDiE//+5BFX1orNnA5iGSRlTc4dBc8sBdgXKevXOxgX5dm2F1aSq9vXaLd5OpMzA6GyaJyx1Doe3ud+siBWCEFUeRIiiao7qz05mrJUlMpFyEfK8zsOamGPaiiywxBL5P3TABsBdNfB+VjsmAuNJT+HV5jGTnsEsq55AO0KvSBnjAW01dVD3DBj0DiznXmrPmJjBVOckJiiLZRkKflCtm8jZJ2VAIgST4saoO7bAtJMhBfPe1decxgas/HkpnYfO/iGAAW/6OkKKNu5KUh7oe6+eCKW81F4rT8IP3rPr78X3V9knJ5F4344EPOV0Z1J5/6HXwyLC0rV6/hrzQX30bYNTCF3SSV/ewNvplju3kEW5n+FJe
X-OriginatorOrg: btconnect.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 88dc8d90-5ec1-45ab-a11e-08d8df0a8bf5
X-MS-Exchange-CrossTenant-AuthSource: DB7PR07MB5546.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Mar 2021 12:39:26.7110 (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: sUK/Y4+eQ5CNoCcpXphLdIUVaiagzbzXrM3AdWy2ZLyLnO/C3T6Rw78KjBnUMCDp4p555HoDc66Yckzt1rASVA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0701MB2453
Archived-At: <https://mailarchive.ietf.org/arch/msg/dhcwg/3vEEzBIkHxFmv6g1sURNk_ronw4>
Subject: Re: [dhcwg] I-D Action: draft-ietf-dhc-dhcpv6-yang-18.txt
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, 04 Mar 2021 12:39:32 -0000

On 02/03/2021 12:40, t petch wrote:
> Ian

Ian

I have now been through all four modules and have the following comments 
in addition to my last message.  (A bad habit of mine that I seem unable 
to break is that I never see everything the first time, or the second, 
or.... but this is all I have so far:-)

Carrying on with dhcpv6-server, there are parts that I do not 
understand.  Several relate to threshold as defined in common as an 
integer percentage but I do not know how it is calculated.

leaf max-address-count
maximum number of addresses
but it is type threshold not a count, a number and how is it calculated? 
something over (end-address less start address plus one)?

leaf-max-pd-space-utilization
if the pool prefix is /48 and client-prefix-length /56, then how do you 
arrive at an integer percentage if e.g. 173 prefix out of 256 are in 
use? round up, round down?

two notification for 'threshold-exceeded' one for address, one for prefix.
For address, you have three counts, total, max, allocated; how do these 
relate to the objects defined earlier under address-pools?
For prefix, you have max-pd which does point to an earlier definition 
which is a threshold ie percentage but pd-space-utilization is uint64 
and so clearly not a percentage
I see inconsistency of names and of the objects used in the 
notifications which so I am confused

invalid-client-detected
I assume this is the result of a message in which case message type 
would be useful.

delete-address-lease
should this point to an entry in the database?
I see that objects named -lease are state data not configuration so I am 
unclear what is being deleted

delete-prefix-lease
ditto


dhcpv6-relay

feature prefix-delegation
I think 6.3 a better reference

leaf link-address
RFC s.9.1 appears to specify 16 octet, not binary 0..16

notification relay-event
the description of this would seem to make it applicable to servers as 
well as relays

clear-prefix-entry
the reference is now RFC8987 which needs to be in the I-D references; 
this appears in other reference clauses

clear-interface-prefixes
should the input interface-ref be to part of the DHCP configuration 
rather than to any interface?


dhcpv6-client

list user-class-data
list plural, entry singular, but I wonder how many AD know their Latin?

container-ia-na-options
perhaps client may send, rather than will

container-ia-ta-options
ditto

invalid-ia-detected
I cannot find this in s.18.2.10.1 nor does it seem right to me. This is 
client module so how does a client find itself to be invalid?
The description does not help me either!

MRC-exceeded
MRD-exceeded
s.7.6 offers a choice for each of these for different counts/timers so I 
think that the data notification should be more explicit and a message 
type would help as it would with many such notification

server-duid-changed
a good case for a notification but I cannot see it described in the RFC

Tom Petch


>  I put your last e-mail to me somewhere safe, too safe for me to find
> just now.  So, I am going through -18 and thoughts so far
>
> I like the treatment of DUID.
>
> IANA status codes needs adding to the I-D references
>
> server-module (part-reviewed)
> prefix-delegation
> 6.3 would seem a better reference than 6.2
>
> rapid commit
> 5.1 might be better than 5.2
>
> leaf id
>   Equivalent to subnet ID
> I do not understand this, nor do the RFC uses of subnet enlighten me
>
>
> common module
> You have a MUST in the common module which means you should have the
> RFC8174 text in the module as well
>
> duid-base
> why a length of 260?  RFC allows 128 which sort of suggests two-byte
> character sets!
>
> between 1 and 128 bytes
> RFC has octets so I think that better
>
> duid-unstructured
> I do not understand what the pattern is doing here
>
> OPTION_AUTH
> the RFC references auth-namespaces so I think that this should too here
> and in I-D references
>
> I note that this uses HMAC-MD5; I do not know how Security ADs view
> this; it may need a note in the Security Considerations
>
> auth-information
> string or binary?
>
> sub-optiondata
> again string or binary?  RFC does not help me here
> I note that there is a two octet length field ie 65535 max
>
> More to come.
>
> Tom Petch
>
>
> On 02/02/2021 11:36, t petch wrote:
>> Ian
>>
>> Looks good, although it will be some time before I digest all the
>> detail.
>>
>> Some admin type thoughts to be going on with.
>>
>> Authors: the I-D has six, which may or may not be ok with the AD, but
>> the YANG modules have five or six or seven which is not ok! Consistency
>> please.
>>
>> Contact in YANG modules must include WG website and e-mail, in the YANG
>> modules in Appendices as well.
>>
>> NMDA or lack thereof needs a mention in Introduction or Abstract
>>
>> References: the YANG modules  reference
>> RFC826
>> RFC2464
>> RFC4122
>> <https://www.iana.org/assignments/dhcpv6-parameters>
>> which need to be in I-D Normative References
>>
>> References in the YANG modules are patchy. You need them, I think, for
>> many more leaves, all the timers, all the counts, as RFC and section
>> therein, and for IANA Enterprise numbers (the URI)
>> Without them I do not know where to look to see if the YANG matches the
>> underlying definitions.
>>
>> IANA Considerations must register the four namespaces
>>
>> RFC8513 appears in several places, which I find rather telling
>>
>> s.1 lacks reference for YANG and Netconf and lacks RESTCONF
>>
>> Options: I would like a list of all the options supported so I do not
>> have to reverse engineer the YANG to find them
>>
>> Abbreviations need expanding on first use
>>
>> s.2.1
>>    *  enabled: Enables/disables the function of the //DHCPv6 /server.
>>
>> s.3.1
>>         leaf rapid-commit {
>>           type boolean;
>>           description "A value of 1 specifies that the pool supports
>> boolean are true or false
>>
>>         leaf client-duid {
>>           type binary;
>> for me 'duid' cries out for a YANG type definition
>>
>> s.3.3
>>           defined in [RFC8415] is unsuccessful.";
>> looks like markup language which is not allowed in YANG modules
>>
>> s.3.4
>>       typedef timer-seconds32 {
>>         type uint32 {
>>           range "1..4294967295";
>> 4294967295 looks the maximum value which case you can say 'max'
>>
>> you exclude zero which used to be a valid value for such as T1 and T2
>>
>>         leaf type-code {
>>           type uint16;
>>            default 65535;
>> why is the default 65535?
>>
>>           case duid-unstructured {
>>           ...
>>             leaf data {
>>               type binary;
>> as above, I think that this should be a type.  Were it binary, I think
>> length should be restricted, such as min 3 octet max 128 octet
>>
>> /description "The replay detection method used/description "The Replay
>> Detection Method used/
>>
>> Tom Petch
>>
>>
>> ----- Original Message -----
>> From: <ianfarrer@gmx.com>
>> To: <dhcwg@ietf.org>
>> Sent: Friday, January 29, 2021 3:25 PM
>> Subject: Re: [dhcwg] I-D Action: draft-ietf-dhc-dhcpv6-yang-17.txt
>>
>>
>>> I've just posted -17 of the draft following discussion on the
>> structure on the netmod mailing list. The discussion is here:
>>>
>>>
>> https://mailarchive.ietf.org/arch/msg/netmod/uFNY9XfCcNANQNA34HpLVsF_lU8
>> /
>>>
>>>
>>> A number of changes were discussed and have been incorporated in this
>> update. These are:
>>>
>>> * The element specific modules previously had a second module which
>> described options relevant to the node. These options definitions have
>> been incorporated into the relevant element modules. This means there
>> are now total 4 modules in the draft  (instead of 7):
>>>
>>> Ietf-dhcvp6-common
>>> Ietf-dhcvp6-client
>>> Ietf-dhcvp6-relay
>>> Ietf-dhcvp6-server
>>>
>>> * Options which are applicable to more than one node are now defined
>> in the 'common' module to be imported and used by the relevant elements.
>>>
>>> * As a result, the identities for each node type is no longer needed,
>> so these has been removed.
>>>
>>> * Additional option definition modules no long use 'RFCXXXX' in their
>> naming. Short, descriptive names are used instead.
>>>
>>> * The appendix example for defining additional option definitions has
>> been updated along with the accompanying text.
>>>
>>> * 'Enable' nodes have been added to the client, relay and server
>> modules to enable disable overall function. Client and relay modules
>> also have enable nodes for each DHCP interface included.
>>>
>>>
>>> In addition, there are a number of small wording cleanups. Also,  in
>> the security section, a bullet point about reconfiguring the
>> relay-destination address has been removed. This was a duplicate bullet,
>> copied in error under the read-only security descriptions.
>>>
>>> Thanks,
>>> Ian
>>>
>>> On 29. Jan 2021, at 16:21,
>> internet-drafts@ietf.org<mailto:internet-drafts@ietf.org> wrote:
>>>
>>>
>>