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

"Xufeng Liu" <xufeng.liu.ietf@gmail.com> Tue, 25 October 2016 14:06 UTC

Return-Path: <xufeng.liu.ietf@gmail.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 38C0A129591 for <netmod@ietfa.amsl.com>; Tue, 25 Oct 2016 07:06:20 -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, 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=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 Go4jDiyuTSHF for <netmod@ietfa.amsl.com>; Tue, 25 Oct 2016 07:06:16 -0700 (PDT)
Received: from mail-lf0-x22e.google.com (mail-lf0-x22e.google.com [IPv6:2a00:1450:4010:c07::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 573A1129570 for <netmod@ietf.org>; Tue, 25 Oct 2016 07:06:15 -0700 (PDT)
Received: by mail-lf0-x22e.google.com with SMTP id b75so211376860lfg.3 for <netmod@ietf.org>; Tue, 25 Oct 2016 07:06:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:thread-index:content-language; bh=csQnGLEII1+VGWylVI1WxXe7p8fQIRSCHQGq7wmyiLM=; b=rVd47G+FWNfTuVD9p6KxG88sRcRU4uJgktcK7JSzoerlR6joeCYRSEonLVQIVfre5l hhLLKPZETBq1gQa1fYM7VCADGqh6msQhcvejwV0GAqOQ+GV1LJyjwrM5ciQqS40zG6Ew G+PuPn9kCQMJAgMMpFc+2n7JFyLLmHbwindWF0cuSBezJfNHoqlYSN0EePMxJaxIgnLu 5qkfvI4a/hGkcIiLGHnddFqCeX0z4DP1VwmwLHdysrAcA75g6qOQCkbgnP8YJxPjIuPl LevD+EKYskzx9b1Lt3IG/Os87a3vRljTU7UOR0gQMJ+OQbqwtykBFSDBqDzaE+w2AO9F hniw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:references:in-reply-to:subject:date :message-id:mime-version:thread-index:content-language; bh=csQnGLEII1+VGWylVI1WxXe7p8fQIRSCHQGq7wmyiLM=; b=Jbouqasjb+4sy8W4zSixGDmD/h9319K2RGRSEx7poT0aVIza5M+rlBPXB8ROFXWXOz +rfL8sPibbbeqGXGu67AbeLzx72wYz9/xdpt5fEr6HvH+7iHXuK1EUdDbhZnGU/DSzhl 9BifbqsloXV1PfsOVvVdnmN8MqbiGXtU6W1MWSlbM/QgJGBOcPEwmLEf+G1hyQHEF0Ir dS+bGUwD7akezNAAXWr8OMxQxp0I20hVLv4lNmIuFm3EuJaZackn9fOavxHWJvBoz0Eb yQjMx1MzgKYIxW8UDXQGIWOyqdP67Lsg9DYo58eUxvNYRkk+LoG43BCQEES6r0TBeXDx kc3w==
X-Gm-Message-State: ABUngveBcw7ShuLP8P1VNpe0Zn79OZJm6J5ZoIWlDJoLKknWW5b6/s84rcyBJ6SqmQQruw==
X-Received: by 10.25.162.78 with SMTP id l75mr11470157lfe.42.1477404373308; Tue, 25 Oct 2016 07:06:13 -0700 (PDT)
Received: from xliuus (wsip-98-191-72-170.dc.dc.cox.net. [98.191.72.170]) by smtp.gmail.com with ESMTPSA id 89sm3978018lja.42.2016.10.25.07.06.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Oct 2016 07:06:12 -0700 (PDT)
From: Xufeng Liu <xufeng.liu.ietf@gmail.com>
To: 'Andy Bierman' <andy@yumaworks.com>
References: <8DC36161-54BC-435B-B8BA-AA72A153451F@juniper.net> <DBXPR06MB623D1071080C7258FD22C1EB1970@DBXPR06MB623.eurprd06.prod.outlook.com> <00f601d215a3$fb351be0$f19f53a0$@gmail.com> <CABCOCHTo7u9YsM9ZiQBE=hV6M8JbhK1gyib_qQYLcEF68e8RMw@mail.gmail.com>
In-Reply-To: <CABCOCHTo7u9YsM9ZiQBE=hV6M8JbhK1gyib_qQYLcEF68e8RMw@mail.gmail.com>
Date: Tue, 25 Oct 2016 10:06:09 -0400
Message-ID: <024e01d22ec8$f154d050$d3fe70f0$@gmail.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_024F_01D22EA7.6A468BB0"
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQJ0hqPMUcYXu2mLgmpGLwn3QPNMqQHafxktA3eFoloC6ekwmp8yokIA
Content-Language: en-us
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/Q_Jp2xA4nzeQ8ZxkM3NdIqikCHc>
Cc: 'Xufeng Liu' <xliu@kuatrotech.com>, 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: Tue, 25 Oct 2016 14:06:20 -0000

Hi Andy,

 

Thanks for your comments.

 

We have revised the scheduling model at https://tools.ietf.org/html/draft-liu-netmod-yang-schedule-02. The current solution is to separate the scheduling model from the target data model that applies the scheduling. The applied data model no longer needs to be altered. When we configure a schedule, we can now specify the target data objects. 

 

Please let us know what you think.

 

Thanks,

 

- Xufeng

 

From: Andy Bierman [mailto:andy@yumaworks.com] 
Sent: Friday, September 23, 2016 12:02 PM
To: Xufeng Liu <xufeng.liu.ietf@gmail.com>
Cc: Xufeng Liu <xliu@kuatrotech.com>; Kent Watsen <kwatsen@juniper.net>; netmod@ietf.org
Subject: Re: [netmod] kw review of draft-liu-netmod-yang-schedule

 

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 <mailto: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 <mailto:netmod-bounces@ietf.org> ] On Behalf Of Xufeng Liu
Sent: Thursday, April 14, 2016 4:03 PM
To: Kent Watsen <kwatsen@juniper.net <mailto:kwatsen@juniper.net> >; netmod@ietf.org <mailto: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] On Behalf Of Kent Watsen
Sent: Monday, April 4, 2016 10:54 AM
To: netmod@ietf.org <mailto: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 <mailto:netmod@ietf.org> 
https://www.ietf.org/mailman/listinfo/netmod