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

Andy Bierman <andy@yumaworks.com> Tue, 25 September 2018 16:57 UTC

Return-Path: <andy@yumaworks.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 8F877130E22 for <netconf@ietfa.amsl.com>; Tue, 25 Sep 2018 09:57:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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=yumaworks-com.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 jvHt6IUPOoCy for <netconf@ietfa.amsl.com>; Tue, 25 Sep 2018 09:57:04 -0700 (PDT)
Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) (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 51E76130E1A for <netconf@ietf.org>; Tue, 25 Sep 2018 09:57:04 -0700 (PDT)
Received: by mail-lj1-x229.google.com with SMTP id x16-v6so16027492ljd.12 for <netconf@ietf.org>; Tue, 25 Sep 2018 09:57:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UtCPte9Q0ZIrBz5/cXth3t2uwnS4JB9MYXaTwPOMpoE=; b=gGSDNDGSZAEREAFWzoFBjcIkARTdAK2FMIP3vBG08KFtM/4sW68W8XGswoCe1HMXUE iX6c44p6mbrcwLig8XpqYGvasaoVHWJx691bietM4ueUB1oNsmeD+uzzN9OUC0sh5Yyl lezn9tLlEzZK1NRJ17brPzmI9cBlpEup030mxVN3S7WEoap/CbFmHp6VUbfoKdgCsZHh uWh6qGXFLD+QC+OX+6Nm7vvnWlSZyf4ahOj7itg0AEVQXn3pVC+SRgj37zj92BB8+KeN f8Uc1b2bc7FuzhEEpJjBW6RhTj8HW8gNC8WKYVH4Iyv0vdpVWD461Dc3v/UqKIrdoDe2 hVxA==
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=UtCPte9Q0ZIrBz5/cXth3t2uwnS4JB9MYXaTwPOMpoE=; b=MlcBqWXluWXxsEAScXq8qYxjMExWO+4pVLlVWMEaCWGwZT+UTvIP0pWb5hRGYoAdbp dkQjvONsou2Wa6q4acPXbYAS6G/vx/cFod2495JeiYsaFEDBn7AsAO+OQYGNxQuAgfKt YL0mU+5sNjsYTThKSr30+3bJgrenYKIOJoaJ6heV+/Pqv9yYgPBOT+shy5A/1s8Qa6Qt 5h/OHCjZDaJJ8BkeNowo9OzQWCm0XKgMx5evg1Z/8U59zHQuOpM4eq+EMOsjgYpxrhz/ wqdXJ87ho/QK6VDHfviCfp9SzknE/vlyRodiCZliaP4IgUNxyBXa1AFnB4pyDM3qsM5M /fvA==
X-Gm-Message-State: ABuFfogPU44Z7o1oXM9aABEC5Pwstrz9U5kDT8gGRAbdf2rMc0Z7CF7y 1owe84fIufaSSSVaeEx77axZlWgSjGxXD9HDlPGEMhQmWl4=
X-Google-Smtp-Source: ACcGV61PaL0CcqE7wMFiF70loN99fzmRrb7LLeX8x8nfRUnlznpYmOV7LYMvW/bP3ys6TxrFP6ZBRsqzyCNCRDDXKcU=
X-Received: by 2002:a2e:4401:: with SMTP id r1-v6mr1612286lja.21.1537894622294; Tue, 25 Sep 2018 09:57:02 -0700 (PDT)
MIME-Version: 1.0
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> <020f01d454ae$2e41e4a0$4001a8c0@gateway.2wire.net>
In-Reply-To: <020f01d454ae$2e41e4a0$4001a8c0@gateway.2wire.net>
From: Andy Bierman <andy@yumaworks.com>
Date: Tue, 25 Sep 2018 09:56:50 -0700
Message-ID: <CABCOCHSATfi4Nq3XLGL65Kj4R_gWTFSf6H0v8qD8DE4aYOpDiQ@mail.gmail.com>
To: "t.petch" <ietfc@btconnect.com>
Cc: Kent Watsen <kwatsen@juniper.net>, Martin Bjorklund <mbj@tail-f.com>, Alexander Clemm <alexander.clemm@huawei.com>, Netconf <netconf@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000aa0f390576b4fec8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/BgYTbp3GF6IO4qgkzW6OF7Wr7K0>
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 16:57:08 -0000

On Tue, Sep 25, 2018 at 2:01 AM tom petch <ietfc@btconnect.com> wrote:

> ----- 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.
>
>

Or even 30 years!
https://tools.ietf.org/html/rfc1065

I do not understand the motivation for using uint16.
This would limit the maximum period to 655.35 seconds.


> Tom Petch
>

Andy


>
> >           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
>
> _______________________________________________
> Netconf mailing list
> Netconf@ietf.org
> https://www.ietf.org/mailman/listinfo/netconf
>