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

"Xufeng Liu" <xufeng.liu.ietf@gmail.com> Fri, 23 September 2016 14:08 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 7A3D212BA92 for <netmod@ietfa.amsl.com>; Fri, 23 Sep 2016 07:08:48 -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 ccAbzxh5R1e0 for <netmod@ietfa.amsl.com>; Fri, 23 Sep 2016 07:08:46 -0700 (PDT)
Received: from mail-lf0-x232.google.com (mail-lf0-x232.google.com [IPv6:2a00:1450:4010:c07::232]) (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 6115912B81A for <netmod@ietf.org>; Fri, 23 Sep 2016 07:08:41 -0700 (PDT)
Received: by mail-lf0-x232.google.com with SMTP id g62so93556477lfe.3 for <netmod@ietf.org>; Fri, 23 Sep 2016 07:08:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:references:in-reply-to:subject:date:message-id:mime-version :thread-index:content-language; bh=d5egHcXYMf5xjg3qM0tmeYymavtIs0Api+1JAXRExC0=; b=ua1h/M5GA+6HpARr7fpdvUCunvSNyTCtjvDHpydaIGNbtjcbdmrqjklyk0UF8YH8jG aQEu/LLUXpVmDTUNbpbuvIcy1PZ8oQwIJSFlQh2HCBOpRlnupNaNil0uPZ65xT4ADwF6 0euUWEOYax6jDxtot+IhEv1sy4bN+spn3e6dV9emZtR4agpdsCYdq4FR0GaukCOihgi9 f2pMlD9RfypbONuTXKUcqLJD26RKiLfQE8I8Kw0i9WmgeQKS0TnIWAMovPPzOa8h8+9n YICH3jTG4uN3AZEuSXWQNOev9poUNNSB0a1LcafOFUl1O8VeWmd/bGJrh92vSca4SeIo Sa2w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:references:in-reply-to:subject:date :message-id:mime-version:thread-index:content-language; bh=d5egHcXYMf5xjg3qM0tmeYymavtIs0Api+1JAXRExC0=; b=F0OJoXfOmuvOrWqExIDVKTN4mCWKT641MdzyLTxtoNM65CGPFKY2nSAei2QSx91uKX 6xfDVD3LYeiYacGlgJgqvlHgIz8xNIAY+b+XaQuWdG/EZ2E4GSNUFpz+dxEOT6+0ueXl 9n6AnTB7x6UfOLRxI+hy0ty9gQQ8lZ3ZFJvxZze7GgppUcYFTCMFLniBDzeD+aA5M19N 6lvA72rD7ExrHPB60wh7y+pEmWpLNXGZpe3hCdy2qE4+oRxkun+ZSfXPImKnNCJors9p MgJLuNwgm+DKYXlzbCa2UgleciZiobfFHDgpassmwOr1SU65OJgxOCIjjO9kgeQhLxdd iq0g==
X-Gm-Message-State: AE9vXwM3eVEAoKK4XLI3EUjgd71t7piv2y8Qmng4Aa891ILCyuqcF8M+jgMxD4uS/Dvqcg==
X-Received: by 10.25.18.157 with SMTP id 29mr2744519lfs.10.1474639719429; Fri, 23 Sep 2016 07:08:39 -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 g84sm1212131ljg.13.2016.09.23.07.08.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Sep 2016 07:08:38 -0700 (PDT)
From: Xufeng Liu <xufeng.liu.ietf@gmail.com>
To: 'Xufeng Liu' <xliu@kuatrotech.com>, 'Kent Watsen' <kwatsen@juniper.net>, netmod@ietf.org
References: <8DC36161-54BC-435B-B8BA-AA72A153451F@juniper.net> <DBXPR06MB623D1071080C7258FD22C1EB1970@DBXPR06MB623.eurprd06.prod.outlook.com>
In-Reply-To: <DBXPR06MB623D1071080C7258FD22C1EB1970@DBXPR06MB623.eurprd06.prod.outlook.com>
Date: Fri, 23 Sep 2016 10:08:35 -0400
Message-ID: <00f601d215a3$fb351be0$f19f53a0$@gmail.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_00F7_01D21582.74252990"
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQJ0hqPMUcYXu2mLgmpGLwn3QPNMqQHafxktnzNlf2A=
Content-Language: en-us
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/TCHQvLPcYvcMOP_d7ZapcKfD7uk>
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 14:08:48 -0000

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