Re: [netmod] kw review of draft-liu-netmod-yang-schedule

Andy Bierman <andy@yumaworks.com> Fri, 23 September 2016 16:01 UTC

Return-Path: <andy@yumaworks.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 BB8FF12B939 for <netmod@ietfa.amsl.com>; Fri, 23 Sep 2016 09:01:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level:
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-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 k0gCVmJJoKSy for <netmod@ietfa.amsl.com>; Fri, 23 Sep 2016 09:01:44 -0700 (PDT)
Received: from mail-wm0-x231.google.com (mail-wm0-x231.google.com [IPv6:2a00:1450:400c:c09::231]) (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 6D51612B924 for <netmod@ietf.org>; Fri, 23 Sep 2016 09:01:44 -0700 (PDT)
Received: by mail-wm0-x231.google.com with SMTP id l132so40010043wmf.0 for <netmod@ietf.org>; Fri, 23 Sep 2016 09:01:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=cHcCModmzU4VUEZoYOFi/HLZK7uEdtV5Yi7bHRNp8lU=; b=1YTC6faz1eJELApMB1aHDsDl04ggv+Oy1X8RXqTEtYwasEZncY+w/kjXm6THZHKv+I f8J10/Gisn4Bxvijm1RHUoTr8f0Gt+Af7RZQQfjVm4bmSewdsSeRahqQvLtSwMJb0hb3 xHFptm4wrygKfviJNtGvszg1XPpjosdYEsD462KbLq8vpqGmGuNN7Uutn4Gh9/h+wrE+ ky0s6QxsDIwbeJIcKFM/om3vqea4VUaZSI7lEP6MKYPkqIvdwvrZJlAi1rBKfoAoWphy I6oLX/16xQA8AfwHhRLI6r9o6KgITCIaDpFE+t/70nIleJqRANV1g0AuKefFK+3B07R2 6+0w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=cHcCModmzU4VUEZoYOFi/HLZK7uEdtV5Yi7bHRNp8lU=; b=mUgNrRvUOlpc+CRQ3KDrLTcQfWgt0lXVkv6bigZ6e4gSHX4OI34czhNEmc7wJC/mMi 9HHRVi9eqjEbiONTRpNeLdSb0dIQ/DwNJk3tWdbafTNYOI1XtVXAtefyKZx9FvQh3RsV vU+cCfyDQ77PpfNxum11cqDbP2DFSoSWpVc5Pl9G4pxwNbyk3r3+2HPU4RftohNhlLoo lNUV8gijvAWdufWKkCx4WKvHgqz4/iDcD33p/Q5+Z+IBUTsyLTQ68Xh2bO6giuEFgddl 8yEwQAInILNx0o7+bt7nvIdiuitMO+MUPFar3fcZ4RcE7A75VLxehbE4byPqD1WzlcBk +p1g==
X-Gm-Message-State: AE9vXwO6VHJrIlpbb2jE5/cAEAE9jTzDsn9gJCPUAvRK7Jter26c9iDUByrrVwmnW/OcEwZIHHYb5zKzfdjFrQ==
X-Received: by 10.194.97.242 with SMTP id ed18mr7698999wjb.188.1474646502838; Fri, 23 Sep 2016 09:01:42 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.80.141.78 with HTTP; Fri, 23 Sep 2016 09:01:42 -0700 (PDT)
In-Reply-To: <00f601d215a3$fb351be0$f19f53a0$@gmail.com>
References: <8DC36161-54BC-435B-B8BA-AA72A153451F@juniper.net> <DBXPR06MB623D1071080C7258FD22C1EB1970@DBXPR06MB623.eurprd06.prod.outlook.com> <00f601d215a3$fb351be0$f19f53a0$@gmail.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Fri, 23 Sep 2016 09:01:42 -0700
Message-ID: <CABCOCHTo7u9YsM9ZiQBE=hV6M8JbhK1gyib_qQYLcEF68e8RMw@mail.gmail.com>
To: Xufeng Liu <xufeng.liu.ietf@gmail.com>
Content-Type: multipart/alternative; boundary="089e0103f1acf8aaf3053d2ee434"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/qHfjp0i7u9tpP7aUQ2QzyMyaN7s>
Cc: Xufeng Liu <xliu@kuatrotech.com>, "netmod@ietf.org" <netmod@ietf.org>
Subject: Re: [netmod] kw review of draft-liu-netmod-yang-schedule
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.17
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, 23 Sep 2016 16:01:48 -0000

Hi,

I read this draft.
I really do not like mixing metadata that could apply to any data node
(such as scheduling) into the data model.  In your solution, in order to
schedule some config, the grouping has to be used in the data model.

I think the existing solution in RFC 7758 is better because it does not
require alterations to all the data models in order to work.


Andy



On Fri, Sep 23, 2016 at 7:08 AM, Xufeng Liu <xufeng.liu.ietf@gmail.com>
wrote:

> Hi Kent and All,
>
>
>
> Based on comments, we have submitted updated version
> https://datatracker.ietf.org/doc/draft-liu-netmod-yang-schedule/
>
>
>
> Thanks,
>
>
>
> - Xufeng
>
>
>
> *From:* netmod [mailto:netmod-bounces@ietf.org] *On Behalf Of *Xufeng Liu
> *Sent:* Thursday, April 14, 2016 4:03 PM
> *To:* Kent Watsen <kwatsen@juniper.net>; netmod@ietf.org
> *Subject:* Re: [netmod] kw review of draft-liu-netmod-yang-schedule
>
>
>
> Hi Kent,
>
>
>
> Thanks for the valuable comments.
>
>
>
> Best,
>
>
>
> - Xufeng
>
>
>
> *From:* netmod [mailto:netmod-bounces@ietf.org <netmod-bounces@ietf.org>] *On
> Behalf Of *Kent Watsen
> *Sent:* Monday, April 4, 2016 10:54 AM
> *To:* netmod@ietf.org
> *Subject:* [netmod] kw review of draft-liu-netmod-yang-schedule
>
>
>
>
>
> [As a contributor]
>
>
>
> While it's clear what this document is trying to achieve at a high level,
> it is unclear why the solution is needed.   A "motivation" section
> explaining why this should be standardized would be nice.
>
> *[Xufeng] Agree.*
>
>
>
> When reading this draft, I was reminded of my long expired draft
> https://tools.ietf.org/html/draft-kwatsen-conditional-enablement-00.
> That draft provided a more general solution, in that it enabled sub-trees
> to be enabled/disabled for any reason.  It was primarily focused on
> supporting comments, but it did call out that expressions could include
> time, though it didn't flush out that thought to any extent.
>
>
>
> Other than draft-kwatsen-conditional-enablement being a more generic
> solution, another difference is that this draft enables the module-designer
> to specify where in the data model the grouping is used, whereas my old
> draft let the client enabled/disabled nodes anywhere in the data model,
> potentially producing nonsensical results, though we have to assume that
> the server would fail any invalid results.
>
> *[Xufeng] Agree that it is more generic solution, though the intention and
> mechanism are a bit different. I think that the described technique is
> still useful, and I’d support it to proceed.*
>
>
>
> Regarding this solution, I have some specific questions:
>
>
>
> 1) why is the "schedule" node a list?  How is a list to be processed?
> Are there any overlapping issues?
>
> *[Xufeng] The list is used so that a series of schedules (such as
> durations) can be specified. If several durations are specified, the object
> is configured in all these durations, inclusively. If two durations are
> overlapped, the union is used, so that the result is one longer duration.
> Do you see any problem here?*
>
>
>
> 2) does the "schedule-id" leaf have any useful purpose other than being
> the list's key?
>
> *[Xufeng] Its only purpose is to be the key.*
>
>
>
> 3) the "schedule-duration" node's pattern matches XSD's "duration" type,
> is it the intent to process it as such?
>
> *[Xufeng] Yes.*
>
>
>
> 4) the draft-ietf-netconf-server-model draft originally had a
> duration-like value, but the WG consensus was at the time was to instead
> use an unsigned integer value with a "units" value (e.g., seconds, minutes,
> etc.).  The claim was that, when large values where needed (e.g.,
> 3600-seconds instead of 1-hour), that the client could always do the math.
> Any thoughts on that?
>
> *[Xufeng] The integer value is surely an alternative, though the fixed
> “units” might be limiting. For example, why should we pick “seconds”
> instead of “minutes”? What should be proper range of the integer? In this
> case, I think ISO 8601 format is more convenient and flexible than asking
> the client to do the math all the time (which may not be adequate). Also,
> the duration is used along with a data-time leaf which is also in ISO 8601
> format, so that the style and processing are consistent.*
>
>
>
> 5) are there any issues with the "repeat-interval" node?  I'm specifically
> thinking about the interval being expressed in terms of hours and days in
> the context of daylight savings and leap year...
>
> *[Xufeng] Heard some criticisms on the IOS 8601 expressions. There could
> be some issues, but are they significant enough to stop us from using it?
> The behaviors could be defined and clarified, couldn’t they? What do you
> think?*
>
>
>
> Nit: some examples in the draft would've been nice.
>
> *[Xufeng] Sure we will do.*
>
>
>
> Thanks,
>
> Kent
>
>
>
>
>
>
>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
>
>