Re: [yang-doctors] Percentage type definition

Ignas Bagdonas <ibagdona@gmail.com> Tue, 24 April 2018 15:27 UTC

Return-Path: <ibagdona@gmail.com>
X-Original-To: yang-doctors@ietfa.amsl.com
Delivered-To: yang-doctors@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5930912D96C for <yang-doctors@ietfa.amsl.com>; Tue, 24 Apr 2018 08:27:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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=gmail.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 mPrrJmN_LJuT for <yang-doctors@ietfa.amsl.com>; Tue, 24 Apr 2018 08:27:50 -0700 (PDT)
Received: from mail-wm0-x22e.google.com (mail-wm0-x22e.google.com [IPv6:2a00:1450:400c:c09::22e]) (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 4E31312D943 for <yang-doctors@ietf.org>; Tue, 24 Apr 2018 08:27:50 -0700 (PDT)
Received: by mail-wm0-x22e.google.com with SMTP id w195so1831003wmw.2 for <yang-doctors@ietf.org>; Tue, 24 Apr 2018 08:27:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=XHZo+gw+kFVeuADIt4fCZr8dUc2BMb4W19pc+4bKKhw=; b=g7CfIdy8GfkSBUPkdoH2UmRWB8A1S2dbctXhPbmOQBqrlD5QZMAGENOiNdL70y1wtQ V0/TuRBReqC6dJXIC6teMMnE4r352BIJGLtrH2j7Z1FqLZz7f7NpQX6qLoUBFCsMGypY Cggjj4lsmqE+D1TN8rl0QDCOvGM0YdxPneODXBxBvflSg6tF3DjjEdhIrnuCkr8klZHR +ZrUOOW2u/cxSHt4dsthe2pYI+7txMcnK5SqG1KwQnApDeH9Goj9ntMKBbUBvOboOwhI Tmlp6nuHRgGJZg8z0Z4Ac/aXVpupzVGX9THITiJBOIPbVoDKTZ47f3IGkIIb8bFXo4lp m7fw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=XHZo+gw+kFVeuADIt4fCZr8dUc2BMb4W19pc+4bKKhw=; b=gBnjPo1xbAbJb/BMwHb+bvjLh6zXCZX7xZ4851YZmozbY+PFa19YfX3yLEysn7Edos IgJ67YfK+TwBLxfRZUk4z7oQFzb1Vf376VU7wb4DQFy35IAylJHByYnxy9y8rZofCcPd 2EuM/gqgUh1rM1JUs5wQSbFFBNqR15Fh1f2BFuEKy9CkdefDjoymNlShyy74nDdw/hs3 f9LYzYLHaLcw+RtYLADcX9TezFZqOBpLAnYGZAqgFhgKkR6rLcGCjYj9SaeArXlLHT02 nzSwc232nfeQsqT1ParSqj+kJWgDqJDWmfNjNAF82iprBE/dZUPH1VXn+eBtyA8NJwKI Bt3g==
X-Gm-Message-State: ALQs6tBP8FeoL4rOgoXIhsi83iIDia5jEywpgeKL0nQYhVEzlRtSQUy4 JApBJEg8zy5OXQXC1cBR9Pctdqrh
X-Google-Smtp-Source: AB8JxZpwmX/9eXFZ5nhL+rr8vN+JRdnMugsC2FLlHFS0za8xo64AlUtbKrzjG1KZ8g0QRBJ5YDLaZw==
X-Received: by 10.28.139.136 with SMTP id n130mr1513383wmd.8.1524583668539; Tue, 24 Apr 2018 08:27:48 -0700 (PDT)
Received: from [192.168.96.201] ([80.69.10.100]) by smtp.gmail.com with ESMTPSA id w40-v6sm21465673wrc.69.2018.04.24.08.27.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:27:47 -0700 (PDT)
To: "Acee Lindem (acee)" <acee@cisco.com>, "yang-doctors@ietf.org" <yang-doctors@ietf.org>
References: <d51e1e8d-aec5-acfd-435d-2fedeba70ee9@gmail.com> <CC9F0D74-3D81-4976-AAC4-30EF844EC1FE@cisco.com> <85849c67-91ef-51bb-c552-8fd944ace15b@gmail.com> <5036FD91-B12D-4146-B4A7-DF16525A3993@cisco.com>
From: Ignas Bagdonas <ibagdona@gmail.com>
Message-ID: <94a87050-49cd-212a-db9c-53a381bd854c@gmail.com>
Date: Tue, 24 Apr 2018 16:27:46 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0
MIME-Version: 1.0
In-Reply-To: <5036FD91-B12D-4146-B4A7-DF16525A3993@cisco.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Content-Language: en-GB
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/PshyEPQJE7RSoKi8okY16FuyExM>
Subject: Re: [yang-doctors] Percentage type definition
X-BeenThere: yang-doctors@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Email list of the yang-doctors directorate <yang-doctors.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/yang-doctors/>
List-Post: <mailto:yang-doctors@ietf.org>
List-Help: <mailto:yang-doctors-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 24 Apr 2018 15:27:52 -0000

Thank you Acee.



On 24/04/2018 14:34, Acee Lindem (acee) wrote:
> There are tradeoffs in either case. However, I'd probably import and use it or, concurrently with the module under development, spin a model with additional yang types.
> Acee
>
> ´╗┐On 4/24/18, 9:16 AM, "Ignas Bagdonas" <ibagdona@gmail.com>; wrote:
>
>      That was my guess initially.
>      
>      What would be the preferred way for a module not (directly) related to
>      routing to get a percentage definition - define its own, or import it
>      from routing types?
>      
>      
>      On 24/04/2018 14:04, Acee Lindem (acee) wrote:
>      > Hi Ignas,
>      >
>      > Very simple - the requirement for this type surfaced while we were developing RFC 8294 as opposed to RFC 6012. Defining common types and refactoring is a journey - NOT a destination.
>      >
>      > Thanks,
>      > Acee
>      >
>      > On 4/24/18, 8:56 AM, "yang-doctors on behalf of Ignas Bagdonas" <yang-doctors-bounces@ietf.org on behalf of ibagdona@gmail.com>; wrote:
>      >
>      >      Colleagues,
>      >
>      >      Would anyone remember the history behind having percentage type defined
>      >      in routing-types and not in a more generic module like yang-types? I am
>      >      not questioning that decision, just trying to understand the history.
>      >
>      >      Thank you.
>      >
>      >      Ignas
>      >
>      >
>      >      _______________________________________________
>      >      yang-doctors mailing list
>      >      yang-doctors@ietf.org
>      >      https://www.ietf.org/mailman/listinfo/yang-doctors
>      >
>      >
>      
>      
>