Re: [Netconf] mbj's WGLC review of yang-push-17

tom petch <ietfc@btconnect.com> Tue, 25 September 2018 09:00 UTC

Return-Path: <ietfc@btconnect.com>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E6518131260 for <netconf@ietfa.amsl.com>; Tue, 25 Sep 2018 02:00:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 3.188
X-Spam-Level: ***
X-Spam-Status: No, score=3.188 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RATWARE_MS_HASH=2.148, RATWARE_OUTLOOK_NONAME=2.95, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01, URIBL_BLOCKED=0.001] autolearn=no 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 MsUKQ9lEhIcN for <netconf@ietfa.amsl.com>; Tue, 25 Sep 2018 02:00:52 -0700 (PDT)
Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0731.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe02::731]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CFF7913125B for <netconf@ietf.org>; Tue, 25 Sep 2018 02:00:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btconnect.onmicrosoft.com; s=selector1-btconnect-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=M6OYjY+ivqOjb962S9VWBEgjbp+UTTO20UM/m/PPf5s=; b=KhW97nFEV8kuqm7P7aYFhDICruWenkArRJ146V9F+IziV3h8p2+QROvQE1VIZBMFhg5ixJDO0gNoMy6UVzbC35b4YChgURRtQY7I/nGo8GeZ8h0R/FhclxRHyAp4ukjpNJ8uPVEUtZi3Gy9ZDBRgskNpssC7w2e1nHXVSBn2puw=
Received: from VI1PR07MB0831.eurprd07.prod.outlook.com (10.161.107.154) by VI1PR07MB3151.eurprd07.prod.outlook.com (10.175.243.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1164.15; Tue, 25 Sep 2018 09:00:48 +0000
Received: from VI1PR07MB0831.eurprd07.prod.outlook.com ([fe80::8d94:d86b:1a6e:b5db]) by VI1PR07MB0831.eurprd07.prod.outlook.com ([fe80::8d94:d86b:1a6e:b5db%12]) with mapi id 15.20.1185.014; Tue, 25 Sep 2018 09:00:48 +0000
From: tom petch <ietfc@btconnect.com>
To: Kent Watsen <kwatsen@juniper.net>, Martin Bjorklund <mbj@tail-f.com>, "alexander.clemm@huawei.com" <alexander.clemm@huawei.com>
CC: "netconf@ietf.org" <netconf@ietf.org>
Thread-Topic: [Netconf] mbj's WGLC review of yang-push-17
Thread-Index: AQHUVK5AE/XTnvbPM0W59DOLk74sgg==
Date: Tue, 25 Sep 2018 09:00:48 +0000
Message-ID: <020f01d454ae$2e41e4a0$4001a8c0@gateway.2wire.net>
References: <3B841FC9-63F4-41DD-BCE2-AA543FDADA5C@juniper.net> <20180920.094520.798604819426315275.mbj@tail-f.com> <644DA50AFA8C314EA9BDDAC83BD38A2E0EB691A5@sjceml521-mbx.china.huawei.com> <20180924.093612.1791958587714330227.mbj@tail-f.com> <A1DF23A4-3D00-43D7-B121-D9F567B2A43F@juniper.net>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-clientproxiedby: CWLP265CA0247.GBRP265.PROD.OUTLOOK.COM (2603:10a6:401:25::19) To VI1PR07MB0831.eurprd07.prod.outlook.com (2a01:111:e400:508e::26)
authentication-results: spf=none (sender IP is ) smtp.mailfrom=ietfc@btconnect.com;
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [81.131.229.47]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; VI1PR07MB3151; 6:gvI2ChWLzWMG6k/4D1jeg+ik3n2pexcVipNOs61OEqwAkoDDgmdrNeLc+KDfQX7kHHOLt3YV/+76TcTFMiv/1H8ZOZz30CPrgKMs8VozgWZNuW2ecfioAaRBD+Z7gNTagmsxelSqd+W1LuxdmzSqxmikTZC8H7rOrzTU4KS6B4LzP6ZKI6yHbHaEwzCrawFDJMVEL62yhlQCjxwNQJJxdRhUR3fLYRI6iihwfzi5qNAGgsLl+FqzQZKPy/6Jjno39PRncrlExAmih/dFX48qtaS4WgiOkwpih90L+S0BEboqzPdlWq2ymNEcSsaUzHHL+/cDP5TMgY+QAUWYRF7VkCTu++b0hE5zKmZGZqnAbNnpA40oLQJ0LQ5fa7GvkErWRiO22CpKYv2ZlyLh39i8J4WmvXIBjSod0WHjOnSt1YxMiXLcnAszaA1X0g6GCGBxoCCMxloR6Cz3BjZl6uBrxw==; 5:7bYAM1LsRNrAbyicPzdGvCf6JBgFN6I+9JjDeAC3Qoyy+P00+EGAh/SkWYLNJOoe9XiLSTBlvZElgT0ICkMjnzipgAZQI7i1zQuUNh+MzmG6ZHM9zr8Koexj1J2KiVpMFDSq2r0NPSulU/2iiJjB3sBbmX5zPpcqzKHiCVy5hy4=; 7:12C5VCvAVyH6avVfFrOxFMIkvHDGCf6xL1m4IdyKkdz3VAODpiPAcX0/Sr86QWUdXbHV2keUeGr65ZeouSlIwXQzTZIKhFNIMao3bo1oxpEEy6NnnLpCEINknts/84/b84U+COn1i5CE/g6X++iG2LQlClcvmg280dqsnHiBGi+WKxR6xzLEhYYImG8wZM8obF4C/RVrNMi8c7qAdpealeuNDhh9fjszUPJvokit8t24KW3xDpjtl3W1K1+bRTJU
x-ms-office365-filtering-correlation-id: b0e809d2-9f19-4bfd-453f-08d622c562d9
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7193020); SRVR:VI1PR07MB3151;
x-ms-traffictypediagnostic: VI1PR07MB3151:
x-microsoft-antispam-prvs: <VI1PR07MB31519D9BC83D208631814E53A0160@VI1PR07MB3151.eurprd07.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(278428928389397)(138986009662008)(50582790962513);
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(3231355)(944501410)(52105095)(6055026)(149066)(150027)(6041310)(20161123564045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(201708071742011)(7699051); SRVR:VI1PR07MB3151; BCL:0; PCL:0; RULEID:; SRVR:VI1PR07MB3151;
x-forefront-prvs: 08062C429B
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(39860400002)(396003)(376002)(346002)(366004)(136003)(13464003)(189003)(199004)(51444003)(5250100002)(6246003)(186003)(2501003)(25786009)(7736002)(4326008)(305945005)(256004)(8676002)(105586002)(106356001)(446003)(486006)(476003)(66066001)(14496001)(93886005)(5660300001)(1941001)(2900100001)(97736004)(33896004)(86362001)(6116002)(3846002)(26005)(86152003)(6306002)(9686003)(6512007)(110136005)(99286004)(102836004)(84392002)(76176011)(53936002)(52116002)(316002)(44736005)(68736007)(966005)(229853002)(1556002)(8936002)(6486002)(386003)(14454004)(71200400001)(81156014)(81166006)(6506007)(2906002)(71190400001)(478600001)(6436002); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR07MB3151; H:VI1PR07MB0831.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:0;
received-spf: None (protection.outlook.com: btconnect.com does not designate permitted sender hosts)
x-microsoft-antispam-message-info: yzh+0qaoAg8f8levqn9U53T+mMWQr+EPIOI5gkoV92VOY7UOPX4E6VooJ4N++82Y8GMC241+aXMiX1CtPcJVypLG66hn8D3XO0Xum7YSDbBvSztim4KKdPzAPw5E1DDRLm1kABWnV2LDsy9L87+SzdbFG1sumoxGD/cxNLdKu6ngMylffMu1M45u42Mp+z2Oeb11C6W5v71au4pGyzc3rs3TsZJJ+UKA+Bcq5TL1NwzotzLVbAqxWLlSiz2YNLz3o1ezh4YWpOMjKR4W9zwxlUNnui51LHipgjcZ94eoyqyKQ3De9On/uGHIDVvT4oyjkB2yQooqo8RM6l7RCRLWUQrwBPzquhstRx6BHqh2dCA=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="iso-8859-1"
Content-ID: <D1E3840FA9C4A643B1F08AA242F30CE7@eurprd07.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: btconnect.com
X-MS-Exchange-CrossTenant-Network-Message-Id: b0e809d2-9f19-4bfd-453f-08d622c562d9
X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Sep 2018 09:00:48.7936 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: cf8853ed-96e5-465b-9185-806bfe185e30
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB3151
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/A-ezOo5d3cm85getA4HlRrJQ6hY>
Subject: Re: [Netconf] mbj's WGLC review of yang-push-17
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Network Configuration WG mailing list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 25 Sep 2018 09:00:55 -0000

----- Original Message -----
From: "Kent Watsen" <kwatsen@juniper.net>
Sent: Monday, September 24, 2018 7:15 PM

> >Alexander Clemm <alexander.clemm@huawei.com> wrote:
> >> I am about to post -19 but I do not like the suggested change to go
> >> from timeticks to seconds.
> >>
> >> Seconds is a fairly coarse unit.  I would not be surprised to see
> >> requirements for finer granularity in the future, even more so in
> >> virtualization and controller scenarios in which we start to see
YANG
> >> being used.  There are applications that use single second periods
> >> today so I think it is entirely conceivable to see need for
subsecond
> >> support down the line.  To allow periods only in units of seconds
> >> would seem to unnecessarily hobble ourselves.  Keeping things to
> >> timeticks is more futureproof IMHO.
> >
> > Ok.
>
> I agree that seconds is too course. Hundredths of a second is maybe
too
> fine, but I won't complain.  That said, I think that it might be an
> uncommon scenario and that having hundredths of a second will likely
> result in very large numbers.
>
> FWIW, yang:timeticks doesn't seem as intuitive as "units" - for
example:

Kent

It may depend where you come from.  As RFC6991 points out, timeticks is
designed to be compatible with SMI TimeTicks and so will likely to be
familiar,  expected even, for those who have been at this for, say, 10
years or more.

Tom Petch

>           leaf period {
> -           type yang:timeticks;
> +           type uint16;
> +           units "Hundredths of a second";
>             mandatory true;
>             description
>               "Duration of time which should occur between periodic
>                push updates.";
>           }
>
> At least I know what this means right away.  I was hoping to find an
example
> in -19 illustrating its use, but it's none is present.
>
> BTW, I note that RFC 6991 says:
>
>          When a schema
>          node is defined that uses this type, the description of
>          the schema node identifies both of the reference epochs.
>
> Which I don't see in -19.
>
> Would it make sense to use a 2-tuple?  Something like:
>
>           leaf period {
>             type uint16;
>             mandatory true;
>             description
>               "Duration of time which should occur between periodic
>                push updates.";
>           }
>           leaf period-units {
>             type enumeration {
>               enum hundredths;
>               enum tenths;
>               enum seconds;
>               enum minutes;
>               enum hours;
>             }
>             mandatory true;
>           }
>
>
>
> Kent // contributor
>
>
> _______________________________________________
> Netconf mailing list
> Netconf@ietf.org
> https://www.ietf.org/mailman/listinfo/netconf