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

Kent Watsen <kwatsen@juniper.net> Tue, 25 September 2018 22:18 UTC

Return-Path: <kwatsen@juniper.net>
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 66C2E126DBF for <netconf@ietfa.amsl.com>; Tue, 25 Sep 2018 15:18:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.701
X-Spam-Level:
X-Spam-Status: No, score=-2.701 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, 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=juniper.net
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 fJIXPX6DuNlD for <netconf@ietfa.amsl.com>; Tue, 25 Sep 2018 15:18:54 -0700 (PDT)
Received: from mx0b-00273201.pphosted.com (mx0b-00273201.pphosted.com [67.231.152.164]) (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 340D51277BB for <netconf@ietf.org>; Tue, 25 Sep 2018 15:18:53 -0700 (PDT)
Received: from pps.filterd (m0108160.ppops.net [127.0.0.1]) by mx0b-00273201.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w8PM91UJ026708; Tue, 25 Sep 2018 15:18:53 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=PPS1017; bh=29YrYJWJJ+4ZbcffKkGJwDOGeH3/FTPx826ChBd1BIs=; b=Hk5tPYvd/1F+wz/0q/oqsY7ZxQMhs8xzW2uqgJnPc3ZZBaiszZDdW8n82LGY9siSuvOD ccoaNoPyj0yF32N7wE87a47Dv2Yl0MAcJneKrjQdFqfdamHepMvC2UjNF75gFK91W8qD uAKbHE8X4dcjMpQuGktJe54CPvwo1EjIi12zM5uk5PE+8dBzZKgEx2EHXrOoJa1Cz13K qBb1PJWhBK4eMxNBnIm+6WZOQdpGi2AJlfTALbit9cW1YRQT16T0ptFrMFCyxDsrwVPa zRu44ZFZvwNLbFjSzMaGwERXa0koc6Z8Es8AvbI1dP4shFrbag+0oDSdA3WYvN19W8Xd ZQ==
Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp0017.outbound.protection.outlook.com [216.32.180.17]) by mx0b-00273201.pphosted.com with ESMTP id 2mqwck81s0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 25 Sep 2018 15:18:53 -0700
Received: from DM6PR05MB4665.namprd05.prod.outlook.com (20.176.109.202) by DM6PR05MB3979.namprd05.prod.outlook.com (20.176.66.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1185.10; Tue, 25 Sep 2018 22:18:50 +0000
Received: from DM6PR05MB4665.namprd05.prod.outlook.com ([fe80::8574:3388:660d:e495]) by DM6PR05MB4665.namprd05.prod.outlook.com ([fe80::8574:3388:660d:e495%3]) with mapi id 15.20.1185.014; Tue, 25 Sep 2018 22:18:51 +0000
From: Kent Watsen <kwatsen@juniper.net>
To: 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: AQHUNImouJGUP0t9tESR9VzM68tuEKUBeG0A///MeoCAAIBWgP//yhkA
Date: Tue, 25 Sep 2018 22:18:50 +0000
Message-ID: <5ED013C2-0D95-4B09-B0F5-D715DD58BE45@juniper.net>
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>
In-Reply-To: <20180925213145.r72ybqbuv5qy4dct@anna.jacobs.jacobs-university.de>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/f.20.0.170309
x-originating-ip: [66.129.241.13]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; DM6PR05MB3979; 6:rZreZYPJkXaTGP12CzOTSOmvJtYnRZKeGRpxAtadzyQsHVVapCbhsOJw81bjvlYlCu+tsSctl1sWZpVaj9H+F0Z9KZksqeE8b3MUd2xO2No9eHvN7Vduxz6OaZEMBNx0B876nI5k9XKB69+0/NwULZ06yFbwXfIXH/e34lX0/qaUqOdW8G1q+4CITuv5gyiYIz6WFBEpPCO261Iyn4oxsYVqAkaw7fATHsPweK/OFg2+6cK6ziyv1tkUEGi/u7FuF25mn2opvZvziW042SvSRPF3uEqW+Q+rvLHmv+GYbFJYco2YHFZ7/wek9LmqFKkESB2WX3bPXcoZOtdEU/nT6tbBUkPqxRZowkx457wVMZFBCZCrYB7ko+OHDg7fjnDqefrbcn4aJiwJXf0lDNk6LBEhZsTE83gaB+JXjK77RFWA38efv4Lwevd2SVbEKODqPG2z60wfNyhAM3ZMakXIiA==; 5:ogmHrMU2bOfUKdLWszCPORJ4Khb7LtVKwo42fGKhXX5rPRLIE3pcX3017DatWixHmGSmsIkwU9+7iiglVAyWob6NaGqCEcHeZpl8WGjSBETHOjndGoUMehW88GGgAUlEC+hFPy9fVyfhgfR8qshQQu6lsVfzCpPTf5cyrAl2dOo=; 7:HL1AJI3dg1wjWnAOHULyRH5ScJT6dq0sYYq6PBbypKTgR7UzC5m8T5qRUkmh3b5JV6ICbuzUFJl3JOimwz0X2a3wRPp7Fr0447N607RqVsembnAD2y6/8zGqnHpwSR9g7hptHCa5m+VU3y48EVRMdV9nyEs+SHBN0RzC6rDE4JFBKoKTmvOTOqAZUCWw66uaE3rC1tk4U7GGrpdod+GB730HyVVZKtksR4nhS8aYEhLTfqJ0iyNTggDd26GP9flP
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-correlation-id: 010e987d-f5f0-4020-0fe0-08d62334df3d
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:DM6PR05MB3979;
x-ms-traffictypediagnostic: DM6PR05MB3979:
x-microsoft-antispam-prvs: <DM6PR05MB3979B0C507540B871C63104CA5160@DM6PR05MB3979.namprd05.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:;
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231355)(944501410)(52105095)(10201501046)(3002001)(93006095)(93001095)(6055026)(149066)(150027)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(201708071742011)(7699051)(76991041); SRVR:DM6PR05MB3979; BCL:0; PCL:0; RULEID:; SRVR:DM6PR05MB3979;
x-forefront-prvs: 08062C429B
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(366004)(396003)(39860400002)(346002)(136003)(376002)(189003)(199004)(256004)(8676002)(105586002)(229853002)(68736007)(86362001)(316002)(66066001)(5250100002)(83716004)(99286004)(34290500001)(14454004)(36756003)(478600001)(6506007)(93886005)(76176011)(102836004)(97736004)(58126008)(2906002)(6116002)(3846002)(53936002)(6246003)(82746002)(7736002)(6512007)(71190400001)(71200400001)(446003)(6916009)(11346002)(476003)(33656002)(486006)(81156014)(81166006)(2900100001)(2616005)(186003)(6436002)(6486002)(25786009)(305945005)(106356001)(26005)(8936002)(5660300001)(4326008); DIR:OUT; SFP:1102; SCL:1; SRVR:DM6PR05MB3979; H:DM6PR05MB4665.namprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: juniper.net does not designate permitted sender hosts)
x-microsoft-antispam-message-info: dIwNv4X0QFyxPm0zROyTNGFxfwH9WF24dnT2tpUK2eodJQCZ27TVB+oC2UGQ+T3n/V92zsDtwj4KUbd/BWc9GhuPN/1FLuyJL0Lzd075L1XdAdYcWD1HlPaSv5WM4xwXPMfm1HBX0d+7Yq+zWS1zTrQfCXKGVYh50puTh6xjEfXTxumeSIQidRgjKnrkf4dEt92ZjGSzGBpxp2phtj3r+1pA9yaVWdDapyxvebvvuyu68kDPoKLNl9gxhWQUoAPj7QN8pgnByunQed6migii4kZnll30CT6oRdc1PSOUt0vQqOPaoBEFN3M4/EL++W8OQFQQOzPsgpiKRVSfT8nfb+qNcvklaOPzPO2gY/Gko2c=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-ID: <23BAC0F19E3CB14086CF6408CD5B889E@namprd05.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: juniper.net
X-MS-Exchange-CrossTenant-Network-Message-Id: 010e987d-f5f0-4020-0fe0-08d62334df3d
X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Sep 2018 22:18:50.9315 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: bea78b3c-4cdb-4130-854a-1d193232e5f4
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR05MB3979
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-09-25_11:, , signatures=0
X-Proofpoint-Spam-Details: rule=outbound_spam_notspam policy=outbound_spam score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=987 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809250218
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/j_FlxG4F1GbmPLvLIBWZPHof-_o>
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 22:18:56 -0000


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

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.";
          }