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

Qin Wu <bill.wu@huawei.com> Wed, 26 September 2018 01:26 UTC

Return-Path: <bill.wu@huawei.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 98A61130E00 for <netconf@ietfa.amsl.com>; Tue, 25 Sep 2018 18:26:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 zrKGnnxkqBwy for <netconf@ietfa.amsl.com>; Tue, 25 Sep 2018 18:26:00 -0700 (PDT)
Received: from huawei.com (lhrrgout.huawei.com [185.176.76.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 70DDA130DFE for <netconf@ietf.org>; Tue, 25 Sep 2018 18:26:00 -0700 (PDT)
Received: from lhreml705-cah.china.huawei.com (unknown [172.18.7.108]) by Forcepoint Email with ESMTP id A7442773B7CC7; Wed, 26 Sep 2018 02:25:56 +0100 (IST)
Received: from NKGEML412-HUB.china.huawei.com (10.98.56.73) by lhreml705-cah.china.huawei.com (10.201.108.46) with Microsoft SMTP Server (TLS) id 14.3.399.0; Wed, 26 Sep 2018 02:25:58 +0100
Received: from NKGEML513-MBX.china.huawei.com ([169.254.1.200]) by nkgeml412-hub.china.huawei.com ([10.98.56.73]) with mapi id 14.03.0399.000; Wed, 26 Sep 2018 09:25:55 +0800
From: Qin Wu <bill.wu@huawei.com>
To: Kent Watsen <kwatsen@juniper.net>, Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
CC: Netconf <netconf@ietf.org>
Thread-Topic: [Netconf] mbj's WGLC review of yang-push-17
Thread-Index: AQHUNImyZPENQ2zHlkefbN/9krMXIaUA8lEAgAAPiICAAD1IgIAADScAgAC3DFA=
Date: Wed, 26 Sep 2018 01:25:54 +0000
Message-ID: <B8F9A780D330094D99AF023C5877DABA9B052880@nkgeml513-mbx.china.huawei.com>
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> <CABCOCHSATfi4Nq3XLGL65Kj4R_gWTFSf6H0v8qD8DE4aYOpDiQ@mail.gmail.com> <674F5961-D956-4BD1-8AD0-44FE68150070@juniper.net> <20180925213145.r72ybqbuv5qy4dct@anna.jacobs.jacobs-university.de> <5ED013C2-0D95-4B09-B0F5-D715DD58BE45@juniper.net>
In-Reply-To: <5ED013C2-0D95-4B09-B0F5-D715DD58BE45@juniper.net>
Accept-Language: zh-CN, en-US
Content-Language: zh-CN
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.138.33.244]
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-CFilter-Loop: Reflected
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/c0AJ72UeEVNF2BJJXrULERbiV4U>
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: Wed, 26 Sep 2018 01:26:02 -0000


-----邮件原件-----
发件人: Netconf [mailto:netconf-bounces@ietf.org] 代表 Kent Watsen
发送时间: 2018年9月26日 6:19
收件人: Juergen Schoenwaelder
抄送: Netconf
主题: Re: [Netconf] mbj's WGLC review of yang-push-17



>> It seems the type you want for the 'period' leafs in your ID is not 
>> timeticks but an equivalent of RFC 2579's TimeInterval:
>>
>> TimeInterval ::= TEXTUAL-CONVENTION
>>    STATUS       current
>>    DESCRIPTION
>>            "A period of time, measured in units of 0.01 seconds."
>>    SYNTAX       INTEGER (0..2147483647)
>>
>> I am somewhat surprised we do not have something matching the 
>> TimeInterval TC in RFC 6991, I do not recall why.


>I also thought that maybe there should be something better.  I had searched RFC 6991 for "duration" thinking about xsd:duration.



>> If you roll your own type, perhaps you want a type like this:
>>
>>  type centiseconds {
>>    type uint32;
>>    description
>>      "A period of time, measured in units of 0.01 seconds.";
>>  }

>>But then by that token, should we have types for seconds, minutes,
>>hours, etc. too?  This might actually be nice to have, but perhaps
>>part of a rfc6991bis instead?  


[Qin]: To address this, one solution we proposed in draft-ietf-lime-yang-connectionless-oam-18:
Is to define ietf-lime-time-types which can be reused in other modules. In ietf-lime-time-types, we define
define time-unit-type as identity. 
But maybe typedef is even better since both time-unit and value are defined in one.

>This is why I was thinking to use the "units" statement:

>         leaf period {
>            type unit32;
>            units "Hundredths of a second.";
>            mandatory true;
>            description
>              "Duration of time which should occur between periodic
>               push updates.";
>          }




_______________________________________________
Netconf mailing list
Netconf@ietf.org
https://www.ietf.org/mailman/listinfo/netconf