Re: [netmod] rfc6991bis: yang:percentage

William Lupton <wlupton@broadband-forum.org> Thu, 30 July 2020 15:48 UTC

Return-Path: <wlupton@broadband-forum.org>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E5FD83A0B26 for <netmod@ietfa.amsl.com>; Thu, 30 Jul 2020 08:48:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, 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 (2048-bit key) header.d=broadband-forum-org.20150623.gappssmtp.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 eG5GM4sw3lgh for <netmod@ietfa.amsl.com>; Thu, 30 Jul 2020 08:48:53 -0700 (PDT)
Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 009213A0B1B for <netmod@ietf.org>; Thu, 30 Jul 2020 08:48:52 -0700 (PDT)
Received: by mail-io1-xd2f.google.com with SMTP id l17so28682560iok.7 for <netmod@ietf.org>; Thu, 30 Jul 2020 08:48:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadband-forum-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mplTiymMBNjfd1cHXLgpYOctQueWFNEfjxzry//dAL0=; b=ukoJkOFDfCdGTPe2dNBTOx6flsgGLJKH1EBAaRpHkAgqW4UBK9q4la0TloYkBd9BDC jVqF0XvclA1EFSro8PnNmda8jcaoBtl+a8tSQAYfDsPxBeJ0RxRyHrPGbAm/wXQndmc7 PVKroCJveV/8R4iaGs9TBE+o5+6n7W5U0t+YECrfRrMiFRfjPZ+KpxpTVe4KCAfJe0j4 wrIzWFDmv77oxlPb5heltWfd/subcuaRcCi8HzYkc+4WVwGXkQeDXZkh6h41iUMfA5Fz yunJVhHOocDga4jMz8K8G3Y92dBm4w5VpmE+0MMIW+kkjIR5HfOkNVYzGIkDmYlHXoTX mupQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mplTiymMBNjfd1cHXLgpYOctQueWFNEfjxzry//dAL0=; b=lkdu4YUOFv+dmfJ4/PEV84FHx4Ih/QOnSSerE4+Up8r4Hc/qwmPnqrOEWSITfu5sMz /DZpMnvGiYKhl+5ZDXHBZVEUvUpHxYa1MY4yyQgw7gC+C4F0pGoj+qz5w3l9rW+I8foR cBHhFoj/DW23B3TwrNEQQ+5tqSxbawRFT/NgzRFUZAlkAjo4q8Ss3tWdAI6eCQin8BNS xsFqX7iZzyOBjg7ikQVlG/gHTSu11ub4Pt6qrcHTW0+7sD8HHly/s/0dmznGEwyL/E4L KFcYIBxYzfJdmWB+2uCSq/jt4NLCQdmlCvFBBJXweRhuE9BUSJk2hzd1zC7YOqwt88Fv jeng==
X-Gm-Message-State: AOAM533bVEzVXH9CpZUPVZrHLmUnC5EKr6NIOyU+sY3Tcy0I+JPTjmJh Be67+M+YzCVK4INZO0tV/GxCzBC2xmBk2JpF9d36/rYqziA=
X-Google-Smtp-Source: ABdhPJwA9PStddAMVE7qW7hRPIF+Z813QFT9QsCCUi2tzNY8tKpujCH1pc/KCiiPgHkBH6+6t+8/VcHwKihEe0Qt1cA=
X-Received: by 2002:a5e:8611:: with SMTP id z17mr21417445ioj.177.1596124132131; Thu, 30 Jul 2020 08:48:52 -0700 (PDT)
MIME-Version: 1.0
References: <20200717191638.6wl3dqktcrnghuyl@anna.jacobs.jacobs-university.de> <87d04qzgpa.fsf@nic.cz> <820fc6fe-9c50-9cb1-9666-6efbacd7f200@cisco.com> <20200730132557.n473s7layuruib3l@anna.jacobs.jacobs-university.de> <f2bd5d63-950d-3334-7470-34a7607e2bdc@cisco.com>
In-Reply-To: <f2bd5d63-950d-3334-7470-34a7607e2bdc@cisco.com>
From: William Lupton <wlupton@broadband-forum.org>
Date: Thu, 30 Jul 2020 16:48:41 +0100
Message-ID: <CAEe_xxgO2FdYwnjwiTseSDY7ztegGbGDVMYF-mRyKRMEtFu7gA@mail.gmail.com>
To: Benoit Claise <bclaise=40cisco.com@dmarc.ietf.org>
Cc: NetMod WG <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000e9dfbf05abaa9b9f"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/m9DzWv2IbB5RzIh8-tKl95mOMvY>
Subject: Re: [netmod] rfc6991bis: yang:percentage
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 30 Jul 2020 15:48:56 -0000

except that percent doesn't really seem like a routing-specific data type!

(perhaps the "right" thing to do is to deprecate, and eventually obsolete,
the routing one and define it in a core netmod module?)

On Thu, 30 Jul 2020 at 14:59, Benoit Claise <bclaise=
40cisco.com@dmarc.ietf.org> wrote:

> On 30/07/2020 15:25, Juergen Schoenwaelder wrote:
>
> On Thu, Jul 30, 2020 at 02:58:22PM +0200, Benoit Claise wrote:
>
> On 20/07/2020 11:19, Ladislav Lhotka wrote:
>
> Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> <j.schoenwaelder@jacobs-university.de> writes:
>
>
>    - Percentages are frequently used in YANG models but usages differ a
>      lot in precision and range. It is not clear what the proper
>      generic definition of a percentage type would be and whether it is
>      worth having it.
>
>      RFC 7950 example:
>
>           typedef percent { type uint8 { range "0 .. 100"; } }
>
>      RFC 8294:
>
>           typedef percentage { type uint8 { range "0..100"; } }
>
>      I-Ds:
>           typedef percentage { type decimal64 { fraction-digits 5; } }
>           typedef percentile { type decimal64 { fraction-digits 2; } }
>
>      The yang catalogue seems to be down. :-(
>
>    - Proposal: do not add a percentage type since it is trivial to
>      define a context specific percentage type that matches range and
>      precision requirements (and there is already a definition in RFC
>      8294 for those who need exactly that definition).
>
> I agree with this proposal. It is also possible to use
>
>     units percent;
>
> where necessary.
>
> On the other hand, when I look at the numerous percent/percentage
> occurrences in YANG model, it doesn't hurt to define that typedef.
> https://yangcatalog.org/yang-search/ => search on "node name" and typedef
> only
> We can find 56 entries from IETF, IEEE, BBF, OC, MEF, vendors
> Most of them points to:
>
>    *typedef*  percent {
>    	*type*  uint8 {
>    		*range*  "0 .. 100";
>
>    	}
>    }
>
>
> But that one is already defined in RFC 8294 in ietf-routing-types.
> Does it make sense to define it again in yang-types?
>
>
>
> My point was taht it makes sense to group typedefs in a few documents:
> RFC6991, 6991bis (hopefully published soon) and .... my bad,  I forgot that
> RFC 8294 is "Common YANG *data types* for the routing area"
>
> So we're good. Thanks.
>
> Regards, Benoit
>
> /js
>
>
>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
>