Re: [netmod] for a future rfc6991bis

Balázs Lengyel <balazs.lengyel@ericsson.com> Fri, 30 November 2018 10:21 UTC

Return-Path: <balazs.lengyel@ericsson.com>
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 7F636128766 for <netmod@ietfa.amsl.com>; Fri, 30 Nov 2018 02:21:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.057
X-Spam-Level:
X-Spam-Status: No, score=-4.057 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-1.46, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FROM_EXCESS_BASE64=0.979, HTML_MESSAGE=0.001, MIME_HTML_ONLY=0.723, RCVD_IN_DNSWL_MED=-2.3, 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=ericsson.com header.b=XSrKTH5k; dkim=pass (1024-bit key) header.d=ericsson.com header.b=jwtrUMeS
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 O6MQfjvDPlbA for <netmod@ietfa.amsl.com>; Fri, 30 Nov 2018 02:21:04 -0800 (PST)
Received: from sessmg23.ericsson.net (sessmg23.ericsson.net [193.180.251.45]) (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 F06F2130DD2 for <netmod@ietf.org>; Fri, 30 Nov 2018 02:21:03 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; d=ericsson.com; s=mailgw201801; c=relaxed/simple; q=dns/txt; i=@ericsson.com; t=1543573262; x=1546165262; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=lKMG4zHCK5AcOmzSPjBm6yaxt0LmHJsRBzuSO3VhY2o=; b=XSrKTH5kcTlQuPM4kA9OS+CARe79W40H+AGLYm45+CMJFcEuEnn43GfWvieq8wbf s454taVcVMg8P3UAgFZNpTyjVq3yXxOv9kfsKtjgg+mVunwJtGsrK68XqwT0Uvv7 8aHEuUztab3tw5ir0P0hmcMiHWqtEJIq6bOP7flKEns=;
X-AuditID: c1b4fb2d-f49ff70000007af1-f6-5c010f0eeffa
Received: from ESESSMB501.ericsson.se (Unknown_Domain [153.88.183.119]) by sessmg23.ericsson.net (Symantec Mail Security) with SMTP id 7D.47.31473.E0F010C5; Fri, 30 Nov 2018 11:21:02 +0100 (CET)
Received: from ESESBMB505.ericsson.se (153.88.183.172) by ESESSMB501.ericsson.se (153.88.183.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Fri, 30 Nov 2018 11:21:01 +0100
Received: from EUR01-HE1-obe.outbound.protection.outlook.com (153.88.183.157) by ESESBMB505.ericsson.se (153.88.183.172) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3 via Frontend Transport; Fri, 30 Nov 2018 11:21:01 +0100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TQlAYYVkXEnMFtFMSZY58jAjdFB185euDoS4YiMOpsk=; b=jwtrUMeSgbe3QIYJmIz8mYcRvxYZnuPHzHUaiw17ORQWqGjwMBiNG9SEHGM49GIKpDLJ7BWrPSp+jCXvUZJj7nFqRiTtfvB4I/y4sqYk3hW6dc9ibk7WkU+rH7Sirde1AY6POLMInECGa6HO8H54ZCk+zgE955bB54Z2/VP5uHY=
Received: from DB7PR07MB4935.eurprd07.prod.outlook.com (20.177.192.212) by DB7PR07MB4540.eurprd07.prod.outlook.com (52.135.141.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1361.13; Fri, 30 Nov 2018 10:21:00 +0000
Received: from DB7PR07MB4935.eurprd07.prod.outlook.com ([fe80::c8ee:97bb:db28:7003]) by DB7PR07MB4935.eurprd07.prod.outlook.com ([fe80::c8ee:97bb:db28:7003%2]) with mapi id 15.20.1361.015; Fri, 30 Nov 2018 10:21:00 +0000
From: Balázs Lengyel <balazs.lengyel@ericsson.com>
To: Robert Wilton <rwilton@cisco.com>, "j.schoenwaelder@jacobs-university.de" <j.schoenwaelder@jacobs-university.de>, "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] for a future rfc6991bis
Thread-Index: AQHUiJZj38b9X6XrhkqPIEUryT50Sg==
Date: Fri, 30 Nov 2018 10:21:00 +0000
Message-ID: <8aa6b9c7-7d08-9ceb-36be-a54234561667@ericsson.com>
References: <20181113140709.vwc4f3mqmmgjaluu@anna.jacobs.jacobs-university.de> <091DC7F4-0C17-4E64-85B8-8963EFBC208B@cisco.com> <1542152721437.91451@Aviatnet.com> <20181114.091024.1454093230497622054.mbj@tail-f.com> <dae0f227c663bdfa105e992c1ae088c22fa545bb.camel@nic.cz> <b45e6850-6943-073b-98a9-8aeab20b3d76@cisco.com>
In-Reply-To: <b45e6850-6943-073b-98a9-8aeab20b3d76@cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
x-originating-ip: [89.135.192.225]
user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1
x-clientproxiedby: HE1PR0102CA0001.eurprd01.prod.exchangelabs.com (2603:10a6:7:14::14) To DB7PR07MB4935.eurprd07.prod.outlook.com (2603:10a6:10:5b::20)
authentication-results: spf=none (sender IP is ) smtp.mailfrom=balazs.lengyel@ericsson.com;
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; DB7PR07MB4540; 6:xp/yWQVdGX88DAYvde9gy2QHMO5ryIpAZ1aZ+n67YCNjrfRnMJgCdvsW3J4MeB9DKDPJfWkHKvraoaI3AqHQLMoNhWi9zaVYzLgsdVLM1zVpiw2jfvN5DCLh8JIH7rny3KoiMq+/gmxTHkTm5N6Dmcsy1MuCDt7iTrAxUc4rZa1tV79oaZoE3VIOEKWgsFOyjT7MH8BjFjCqB+svGY4526PPTvwy6AbG33kml1g0+Dz62HjiPDqMJCyjIbR5RE7I9FymKE8CBr9kelzbhZIVsqobxFKUkhXgLQ9QsM4LFgnOEomL10Rhh/++iv6AdJscBiqcZqMEqLkToncvhZim22dr0qW3VNe+Y8jxcHjTXxmWHm+fc4solt3Jyo7A9kRMNzAZ0EhvZfafTN5KoxHknG3adpz+zJFuOZ5NU7UpwALqo2bsgbpov7xPFtpfr9Xo9POaNuUDkGX09EeClJ6F6g==; 5:mZMSMJG2lV5/xok3o9Uy8kYYtY8jaTMJ19ApDiL6zZHFV8kdPwMbQCG9goSkmWLZr7vxOlyBHVINFXwN2XJCPvYwhRwY6mFoNhS19O8bLFzOi/389FJqbf4IrNCIBVBdp6dYxrJnG8ftseb1W5Y3XbLw2Fco8+41TzXAZ/Fj4QY=; 7:WZ8gRqvI7QE+78+FZXjw3t23RjWBQ1/tTmKPa8SyhUTtDUu0i3X+9ckihjkh/wluigW607uG+wGpVbo4EDr3WY06r2jY3cvBtJdKkc+t+JAZyopoxc6pgiYbGrez9wpfg/7tJ2wVS52FuTcRI4g+EQ==
x-ms-office365-filtering-correlation-id: dc084a6a-4f90-466e-68d3-08d656ad8526
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390098)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(49563074)(7193020); SRVR:DB7PR07MB4540;
x-ms-traffictypediagnostic: DB7PR07MB4540:
x-microsoft-antispam-prvs: <DB7PR07MB454000DC4E353C122B13A9F3F0D30@DB7PR07MB4540.eurprd07.prod.outlook.com>
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(102415395)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(3231453)(999002)(944501410)(4983020)(52105112)(148016)(149066)(150057)(6041310)(20161123558120)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699051)(76991095); SRVR:DB7PR07MB4540; BCL:0; PCL:0; RULEID:; SRVR:DB7PR07MB4540;
x-forefront-prvs: 087223B4DA
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(366004)(136003)(346002)(39860400002)(376002)(252514010)(189003)(199004)(93886005)(31696002)(8676002)(85202003)(36756003)(52116002)(7736002)(97736004)(2501003)(256004)(486006)(236005)(6512007)(105586002)(4001150100001)(6246003)(106356001)(26005)(229853002)(606006)(446003)(476003)(2616005)(14454004)(99286004)(2201001)(66066001)(86362001)(85182001)(65806001)(25786009)(65956001)(31686004)(64126003)(11346002)(2906002)(71200400001)(6436002)(478600001)(99936001)(5660300001)(71190400001)(6116002)(966005)(6306002)(76176011)(54896002)(6506007)(386003)(58126008)(81156014)(81166006)(53936002)(186003)(53546011)(8936002)(65826007)(3846002)(68736007)(110136005)(6486002)(102836004)(316002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR07MB4540; H:DB7PR07MB4935.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts)
x-microsoft-antispam-message-info: ZOMbb+3zfy5ASQJSm7uS4vtWOsOpoVSct5SGCRyCN/W38e8IhfYFtF/aSy2+wdwJPN1SQFWmVzTphDPmwIHDl/cJq4kE+6te/7BASNWl0h7fKERKQzk5HgxOaSZpA4P6mRGwFepaHsQzKs0esK/hejdN+EpW8lkieTVvdRlTq2CkFM/3QFJuFqw6yCNAkX+4tqqat4My1ApI5H1QDmfrx4i9WLs8aSgBZiJgKwiOKX1mfbpX1SZWDX/dfCwEHNRi/5ACusiDjdo/ZnMO8fEF/iLjLCo5Jv9iruHxWz5NTf9c4iBERHFa8xvlkuY4JX9EOsqG4jmA8klgO3p1r5WyOllYAIj1DtJR5am9S7Viuok=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg="sha-256"; boundary="------------ms010202080607010104060803"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: dc084a6a-4f90-466e-68d3-08d656ad8526
X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Nov 2018 10:21:00.3006 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR07MB4540
X-OriginatorOrg: ericsson.com
X-Brightmail-Tracker: H4sIAAAAAAAAA1WSe0hTURzHO/feXa+r6XFp/jAKXBn51jRY2UsQUyLo8U+FWUsvam6zdpeZ /ZEpOh8pIpI6Q62Gme9MWJbZlITylW/JyNqywKQkokIta3d3Qf33+fF9nN85HIaUvhd5MElq LatRK5QyWkxVHDNe9HdyRjFBhmJSPnFvEcmrR66K5M+Gish9ZFTp8j1RlMGwSES1mqIPkSfE u+JZZVIqqwncc1qcmKNbIM9Z0tJuWwapDNQWm48cGcCh0PlthshHYkaKnyKYmDKKhOE7gv6W DkoYDAToykwO/EDhYhLGmkpIQSklYHh80l5gQdD4ro7gm2kcAbrPT2yCK65EkDtdROcjhlmL /aG95RDvccUBUDcwS/3lQtOcLUthL2j+vULydgneCy01CUJ/HwF1RT9tfke8G268/uTAM8Lr 4Edfoy1LYneYnq0mhNu5gnmknxbYDeberYgElkH5x2kbu+GTUGa4hvgDgN+z0pRNC6Wx0DmT aw/7weDULBJ4A4xWF9gDkzTkDWdSgnAQKjqWKUGYRmB8U2EXfGC0a8l+dDKM1ers622E+kIz VYyC9P9srrfmSZyH4Obkd5IXJNgFnlfMUnrrc5B4C9Rmy/738+wLtTfnSYHDoHypmxbYE0oL zA4Cb4f53i9I4BCobf5F1yBxPXLjWI5TJWwLCWA1SXEcl6IOULPaNmT9cN3ty/4PUMN8eA/C DJKtkQTeWRUjFSlSuUuqHrTZ2mNpbRhGHpQ6Rc3KXCVDOVZZEq+4lM5qUk5pLihZrgetZyiZ uySgvvOEFCcotGwyy55jNX9VgnH0yEARS/LwNNWm8IzMHVsfrebUen1m9OqI4191A8e99h/2 uT/eGvijt8kYXH7UOUsbY1a9+pJhKenLifROD4tvctlJh946EzkfXBW+JcvX8UCzNNGD6cqa emk5kn/ZU+n9WFpV1HKWGHx75e5D511ljU5wfsH9bVxU8tT1iGyx+IXfhxAZxSUqgn1IDaf4 A0oxe9p4AwAA
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/OJz4n-BFfHcwaGU-oEk0Q3ccMq8>
Subject: Re: [netmod] for a future rfc6991bis
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: Fri, 30 Nov 2018 10:21:12 -0000

Hello,

In a similar manner we found multiple uses for the ietf-netconf-acm:node-instance-identifier. We imported nacm just to reuse this type.
Anyone else interested?

regards Balazs

On 2018. 11. 29. 12:03, Robert Wilton wrote:
Hi Juergen,

YANG library currently defines the type "revision-identifer".  Is this a typedef that should logically migrate to rfc6991bis?

Thanks,
Rob

On 14/11/2018 08:16, Ladislav Lhotka wrote:
On Wed, 2018-11-14 at 09:10 +0100, Martin Bjorklund wrote:
Hi,

Alex Campbell <Alex.Campbell@Aviatnet.com> wrote:
Does a percentage really need a single standard type in the first
place? How about "units percent;"?
At this point, after hearing about how different modules have
differing requirement on this type, I tend to agree.
+1

Or even "units %;"

Lada


/martin


________________________________________
From: netmod <netmod-bounces@ietf.org> on behalf of Acee Lindem (acee)
<acee@cisco.com>
Sent: Wednesday, 14 November 2018 5:03 a.m.
To: Juergen Schoenwaelder; Balázs Lengyel
Cc: NETMOD WG
Subject: Re: [netmod] for a future rfc6991bis

On 11/13/18, 9:07 AM, "netmod on behalf of Juergen Schoenwaelder"
<netmod-bounces@ietf.org on behalf of
j.schoenwaelder@jacobs-university.de> wrote:

     On Tue, Nov 13, 2018 at 01:33:01PM +0000, Balázs Lengyel wrote:
     > Hello,
     >
     > In some cases I want a percentage without fractions. This could be
     > defined
     > using range, by specifying the numbers 0 | 1 | 2 ... 99 | 100 in the
     > range's
     > argument.
     >
     >     typedef percent-short {
     >       type percent { range 0 | 1 | 2 ... 99 | 100; } // didn't type
out
     >       all the 101 integer values :-)
     >     }
     >

     I guess we need to settle on a small number of percentage types that
     people find useful and then module authors hopefully find what they
     need. I am not sure that listing 101 numbers is a good pattern to use
     (although it does achieve what you want). For percentages that have no
     fraction, you likely want to derive from a base type that is efficient
     to encode for binary encodings such as CBOR.

Or simply define a type with a base type of unit8 type and a range of
0-100.

Acee





     /js

     --
     Juergen Schoenwaelder           Jacobs University Bremen gGmbH
     Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
     Fax:   +49 421 200 3103         https://www.jacobs-university.de/" rel="nofollow"><https://www.jacobs-university.de/>

     _______________________________________________
     netmod mailing list
     netmod@ietf.org
     https://www.ietf.org/mailman/listinfo/netmod" rel="nofollow">https://www.ietf.org/mailman/listinfo/netmod


_______________________________________________
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod" rel="nofollow">https://www.ietf.org/mailman/listinfo/netmod
_______________________________________________
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod" rel="nofollow">https://www.ietf.org/mailman/listinfo/netmod
_______________________________________________
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod" rel="nofollow">https://www.ietf.org/mailman/listinfo/netmod

_______________________________________________
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod" rel="nofollow">https://www.ietf.org/mailman/listinfo/netmod
-- 
Balazs Lengyel                       Ericsson Hungary Ltd.
Senior Specialist
Mobile: +36-70-330-7909              email: Balazs.Lengyel@ericsson.com