Re: [netmod] [Technical Errata Reported] RFC7950 (6855)

"SADOVNIKOV, ALEXEI" <AS549R@att.com> Mon, 28 February 2022 22:15 UTC

Return-Path: <AS549R@att.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 F0CFF3A1608 for <netmod@ietfa.amsl.com>; Mon, 28 Feb 2022 14:15:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.806
X-Spam-Level:
X-Spam-Status: No, score=-1.806 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, HTTPS_HTTP_MISMATCH=0.1, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=att.onmicrosoft.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 GRDMINw3R02v for <netmod@ietfa.amsl.com>; Mon, 28 Feb 2022 14:14:59 -0800 (PST)
Received: from mx0a-00191d01.pphosted.com (mx0a-00191d01.pphosted.com [67.231.149.140]) (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 1CF1E3A1602 for <netmod@ietf.org>; Mon, 28 Feb 2022 14:14:59 -0800 (PST)
Received: from pps.filterd (m0288872.ppops.net [127.0.0.1]) by m0288872.ppops.net-00191d01. (8.17.1.5/8.17.1.5) with ESMTP id 21SM4E4F003799; Mon, 28 Feb 2022 17:14:56 -0500
Received: from alpi154.enaf.aldc.att.com (sbcsmtp6.sbc.com [144.160.229.23]) by m0288872.ppops.net-00191d01. (PPS) with ESMTPS id 3eh228749d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 28 Feb 2022 17:14:55 -0500
Received: from enaf.aldc.att.com (localhost [127.0.0.1]) by alpi154.enaf.aldc.att.com (8.14.5/8.14.5) with ESMTP id 21SMEstQ017210; Mon, 28 Feb 2022 17:14:54 -0500
Received: from zlp30487.vci.att.com (zlp30487.vci.att.com [135.47.91.176]) by alpi154.enaf.aldc.att.com (8.14.5/8.14.5) with ESMTP id 21SMEqMp017164 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 28 Feb 2022 17:14:52 -0500
Received: from zlp30487.vci.att.com (zlp30487.vci.att.com [127.0.0.1]) by zlp30487.vci.att.com (Service) with ESMTP id E9F8A40058F1; Mon, 28 Feb 2022 22:14:52 +0000 (GMT)
Received: from GAALPA1MSGED2BC.ITServices.sbc.com (unknown [135.50.89.128]) by zlp30487.vci.att.com (Service) with ESMTP id 4CBE8400579E; Mon, 28 Feb 2022 22:14:52 +0000 (GMT)
Received: from GAALPA1MSGEX1AA.ITServices.sbc.com (135.50.89.96) by GAALPA1MSGED2BC.ITServices.sbc.com (135.50.89.128) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18; Mon, 28 Feb 2022 17:14:51 -0500
Received: from GAALPA1MSGETA03.tmg.ad.att.com (144.160.249.125) by GAALPA1MSGEX1AA.ITServices.sbc.com (135.50.89.96) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18 via Frontend Transport; Mon, 28 Feb 2022 17:14:51 -0500
Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.168) by edgeal3.exch.att.com (144.160.249.125) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.18; Mon, 28 Feb 2022 17:14:40 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=muL5A//xSdHAqSO9vq8ACqEVKLZPRoRP2tuQ0D+9r/5PAIYGiHwJKbnsU0fyi4ZRW/da/hZlVIyiVrXl3pF5zBq+BfmOj8ldhzAlnh3kBU/vtQfHq9MdJmdSOJgrzNsOZgtO6/pwKldzF+DGUrsRBjoiDLZrJQvHCMJbtjsdljWhoJabugq0gf4n80MwbSG+f8kJNk9xPWz7CcTmCAjz87NU2qhq1/gY9ryvixHvDBZ/vXmPAgLtb/9yjX1bzwefD4qF1N4XmDBF2xtESM4tK0Ul5gQB2umBkxQJNeJMzWX7LKHn+qhENjY9tUh+eU6P907M61gWXCAQ16IFjTSMEg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=QvSebKy8pxBbDyFEfP/zyB683m9sJF+rV4WtaYcfXQM=; b=j9LjwsYHCDVE04Y9mkr67ykxCpakydy6d8nTj6tawNOLpA5KyjtC5Bo8HxmwAipRGwEPLzd0wRYC37qkUuM2As31fHRRc892wTxib40OaEe2lRCCzHEBnNWOaU8CyFJAQmdyKXIQmH80I/LkZFL1/tR8zc9MvKShOmN03IK0wizDxuiOyfofLkITlVHJPSxhO81eq8w33xjUaD9VIdp3PU3IYZKumHve0uWd9x7Hobq4DtCjoUMlVufaCMvbhm97/1IDjSsLwNXw7GVyRqbN9U+nhPt85y/uPB9fHZ8jBkfdolMtYtG9SAHO7drpun54jOBQdLclTs09TlgalWuFAg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=att.com; dmarc=pass action=none header.from=att.com; dkim=pass header.d=att.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=att.onmicrosoft.com; s=selector2-att-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QvSebKy8pxBbDyFEfP/zyB683m9sJF+rV4WtaYcfXQM=; b=LzHRTTJVY5/9TXzpOFhfZOgnBMnxaLMJYfeUXk+8OL5EUXlF5zbN8u9K4irNCqxPjG09lP2EOLjF9gqtW8SIYsygTbgrFSGXrEO0TvmUgKPg2pWEz//gw8UzEaPqxBt4+W/0DDpzn+8uORxkpOV8UoaOXEkrR2dmO12dyiRgtAg=
Received: from SA0PR02MB7132.namprd02.prod.outlook.com (2603:10b6:806:e2::5) by BYAPR02MB5462.namprd02.prod.outlook.com (2603:10b6:a03:98::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.26; Mon, 28 Feb 2022 22:14:37 +0000
Received: from SA0PR02MB7132.namprd02.prod.outlook.com ([fe80::7158:bc50:9cbe:161d]) by SA0PR02MB7132.namprd02.prod.outlook.com ([fe80::7158:bc50:9cbe:161d%5]) with mapi id 15.20.5017.027; Mon, 28 Feb 2022 22:14:37 +0000
From: "SADOVNIKOV, ALEXEI" <AS549R@att.com>
To: Andy Bierman <andy@yumaworks.com>, Jürgen Schönwälder <j.schoenwaelder@jacobs-university.de>, "Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com>, "Rob Wilton (rwilton)" <rwilton@cisco.com>, "mbj@tail-f.com" <mbj@tail-f.com>, "warren@kumari.net" <warren@kumari.net>, "netmod@ietf.org" <netmod@ietf.org>, RFC Errata System <rfc-editor@rfc-editor.org>
Thread-Topic: [netmod] [Technical Errata Reported] RFC7950 (6855)
Thread-Index: AQHYJC9YATqq8x5CIUumGkuf19y4oqyYJ/0A//++7gCAAHMFAIAHWOYAgAAEIgD//78eAIAFBYIAgAAIgACAABwFgIAAAnpg///aloAAm+nLgAAAf68AAABwWwD//+D1AA==
Date: Mon, 28 Feb 2022 22:14:36 +0000
Message-ID: <879E0AF5-1C26-454F-A46F-1ED4DED526A6@att.com>
References: <e03ebb9b-b166-4ecc-8fee-5d03752cdfa1@alumni.stanford.edu> <0100017f21f721f0-5e68776b-2836-4e20-8f83-ffbea5993a95-000000@email.amazonses.com> <BY5PR11MB41969DF671A9880073812422B53B9@BY5PR11MB4196.namprd11.prod.outlook.com> <26F9C810-C637-4D07-A2BA-40873D11C23F@att.com> <DM6PR08MB5084642053B62B904FE70B289B3E9@DM6PR08MB5084.namprd08.prod.outlook.com> <CABCOCHRmF=in9AvXfS=-VM7-XDTUJDpA_pTDvX501Ahf+pbdLw@mail.gmail.com> <BY5PR11MB419603E516D40F4E661F27A0B53E9@BY5PR11MB4196.namprd11.prod.outlook.com> <DM6PR08MB5084502D0D76331A6DCFB1BF9B3E9@DM6PR08MB5084.namprd08.prod.outlook.com> <40DDF107-3C45-4871-9FCB-411EF3E33580@att.com> <DM6PR08MB508471EE519C5BE6C8A7DAF59B019@DM6PR08MB5084.namprd08.prod.outlook.com> <20220228185306.fr4xpjiwp6dnhlcj@anna> <CABCOCHQ6SdDxTxXvG77aWC+CDsi6W_2CkiH-TDfhxBT6PvxT8A@mail.gmail.com>
In-Reply-To: <CABCOCHQ6SdDxTxXvG77aWC+CDsi6W_2CkiH-TDfhxBT6PvxT8A@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/16.50.21061301
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: aecde743-63ae-43b2-c718-08d9fb07b505
x-ms-traffictypediagnostic: BYAPR02MB5462:EE_
x-microsoft-antispam-prvs: <BYAPR02MB54627984A8EDFA58157001F48C019@BYAPR02MB5462.namprd02.prod.outlook.com>
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: QZc3Oh1QQJT+aEZGvywm8nqpMxxgrWM3acOAd450yrFK0MZ+UIRo5AHoqB2Err322od8GpkiWSZUnToEEQGzQF/LnW9x4wfxplU+YoRmPu+N8hJtuGTWgpWAfQ2PJMWXNzSh5/xZzDvgNkMGXt2QrZ6H9F9rnjDLe1rDjLZbDHjl5+SbcLnZL2i86+eS5EcwWSAWJ/PXYABcR9JnYExKTLcTpw561Zz2o7GjAse2/q8X7UlbNxOgfxCXbwq3dL6o69lXo42ZQZIZTEj2Txd7YAiioc1v6G3DAArLc9e9/wCK7weyDRZgZ6+PyJzRrALLGXI8vA7id5LtcIIvTuJOtyXRsZb2K+JLSCNdTOm+gFyxoV1LTMeFypJSGFaHWv64nHJmNxjZ7kVnTHYE9CjsHETsCr8+9KLouBayWRQWmifeZVTUWnT2uI0N/oZ0vDtmWBLEH657GrDnHRmMyiyvBn86lE052vu15VB7Z5yT7/ayb6wCMxbak2UGeeuPBW3RKg01+MeDmWAyZHJasfFI1jWq/1JqLo/2VrIvdU+qzRLJxHCzLzjb37Cm6wNCNypZl2zKDByTpyb4whD2vmBR20fm3KgRTKAW567agvkpIwqFwRSRUKyrZ0ZsR8IBXOcpY5v+j3ByymkLO7YEdPIIeFODz53RpcqFLNCddbrabgypfQ9ueTe3dKaQ1Oj7borwCtAXnWwCBjhLq7KrmcIf4O7VH4oO6NqvsVjIz9O9UJBAJ/BqsCpZjpu/ZQFEAdC5gOd8fqZZU4kpXmL+xSAoyAuLzLRpeVaYduXrx1k9Tmnz9QE5NGSkxuU/LtjmSQPF2elaUKXMfUfydcZ9ckxGIjDXjsAORoL4QQc090/NFgY=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA0PR02MB7132.namprd02.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(6512007)(6486002)(53546011)(6506007)(66574015)(966005)(40140700001)(166002)(33656002)(8936002)(316002)(508600001)(110136005)(83380400001)(86362001)(82960400001)(30864003)(5660300002)(122000001)(2906002)(71200400001)(2616005)(38100700002)(66556008)(66476007)(76116006)(38070700005)(66446008)(8676002)(64756008)(66946007)(91956017)(36756003)(82202003)(26005)(186003)(45980500001)(559001)(579004); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: vkNaF50OoKqg91lFoI0P7jTVKAMSETd922nov8wAEXscEliP3iH/LKe75zcKA+RFeta/aB/sMwIOxqMjn+i4R5Hwbl9vpr+6dkUn70fUGe2m03DQtHsEoKiGh1hV3E+5TJjaMlXRwazN1kaAC5QxfwmS2At5YeUaP/uftLF7ZKjapF/Qsb6IQ9JQsVED40Qc8hBajc8clgHfoHpWA4ho3nOPXXj942R4ijMGDC4+dICXpEbfPrTyCDdgJpUrKmu/zjkbwgb5gHUS7yHaMUlm4ossqTTgLVCFnH70GzO0KCKL2Pljls1dAvXqEbd1nnb7mM2Uj3VQasQRUF+ovhjATz4NH6XhDlNt+/cketBUiWeYUNOQVN7e5PMZl+PC6n3oP0Gw3GTNHJTDsMdLTcpol84sDMvVIdHpsjNSwZ4d2UpHqVMhlWxUc0PTFCAR9ZX+8Hsn/cDMsySx0ML+c8X7oL+vxplELXnoeyzrqaO2y+gfGpZhl1OWwscren/SwQFY6iOCujdwund/2WbGZSYPFtbcypsG1+pZg2qppdXxITo3MTz0gP2eV1i0i/sGGyJGG34+hBOjXGCgNxTGuTNmvYhHmRkDNCCjoXOl0bPJVCqDNZGsSX5dHeq2p88O6lG8pbpQwwo3pY00kvtY1XBawVm94BSQBsj88dioBkNk3qTCHvuAUNIDa2saGtwu3uXoweESf2azXpt/WiVD+Mdu9ysd/LLQ9hF+erCqhG3Ouo8O/r21oA0pChStIuOHONEmrcm1TRGjFafc1QHX5HreShkDcRMmH+qgZ8WcjWipBil14IomMNPpmWvRU2AU+B0KXvBoaSBk/jB3F16ajGkTKZf2wUp/XYPiQOlu5+PR/ZiNP+/yogn22vtIyUKjrX7cF4tEh9daHRFJdAckI4sMH/MwfhrwS9LHDGsJ6mCTfW9xh8LRgy/wHujyOYUUZudOHzRjdsuhehMtJr35ilRw52JtiBG0zWhgA0h83oIA5siZOSYXWplIjwrcPqDKCo0DRkgPpaDOb+v6bxX/LCmpCHhotN7Hd5XORZhYi6xhv97KG6hPaHiWffmR4EcZBV9keD80F9RwCfXPisif8NrDg5lMcRFIEDpdY+b6C4sZO8d6JIEDRby6xrZLAqa31njkT38aStvVUQROLmIQz78WJxDBdKuhq9ARZ88QIPrzsv6JToDCv1HzuHGFNHNnpmp/aFYuilePfZlsfyGGN1TEvDUF7gJUtIw4um5JmSXmikv8mqrps6xW3QN7UWRvZxtQr15hjiGVxtSIAiwAaRPpZyWWjIX+5JiAhUvOHmG56MQUmiDdxiVsHpjtTB570usHw9blrXvtkDZ0qi/QO9zqGwWBR2Oi8GfWSW6lkJ7T3bC3XPF1ATiWD5LZiKIELBPobfOp/7SKllFRXLFjVYV7L7ccap1LaFFwuKYLQmu145P+dz3r5YgIYBgF/A0EJOFNEI4q5n5RkW+ZymWhbYM0ebbsvO6hPC3FxuNNNHwgW4FF24ZYrc0NKLySQ4YTXGb27c2SguBJey5BV1ydYpxvKlu0GXxCyPKb4c3yPUN7IQM=
Content-Type: multipart/alternative; boundary="_000_879E0AF51C26454FA46F1ED4DED526A6attcom_"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: SA0PR02MB7132.namprd02.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: aecde743-63ae-43b2-c718-08d9fb07b505
X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Feb 2022 22:14:36.8939 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: e741d71c-c6b6-47b0-803c-0f3b32b07556
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: WfkztlRQodElUixU46zWkgJbD+DdQOB9z4lZ/zkW4AoSrR73vkkAkELuZSjplqtj
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR02MB5462
X-OriginatorOrg: att.com
X-TM-SNTS-SMTP: 4A185FADD2BD492784BF415E119534525FBE5F7A1F45BB3DBFFB6CA5A2860EC12
X-Proofpoint-GUID: Vh2xx9DAs-1bb16_tM7W3f-1jToOLcFk
X-Proofpoint-ORIG-GUID: Vh2xx9DAs-1bb16_tM7W3f-1jToOLcFk
X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.64.514 definitions=2022-02-28_10,2022-02-26_01,2022-02-23_01
X-Proofpoint-Spam-Details: rule=outbound_policy_notspam policy=outbound_policy score=0 impostorscore=0 mlxscore=0 bulkscore=0 lowpriorityscore=0 phishscore=0 malwarescore=0 clxscore=1011 spamscore=0 mlxlogscore=999 suspectscore=0 priorityscore=1501 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2202280113
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/33g8Jwz9vXddBE4vPy3UOwCWYdU>
Subject: Re: [netmod] [Technical Errata Reported] RFC7950 (6855)
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
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: Mon, 28 Feb 2022 22:15:07 -0000

On Mon, Feb 28, 2022 at 06:42:56PM +0000, Sterne, Jason (Nokia - CA/Ottawa) wrote:
> Thx.  I probably went too far in my statement about XML documents being unordered. But isn't it true that for YANG modelled data, the order of the XML *shouldn't* matter ?  It should ideally be processed atomically (i.e. after being fully processed/loaded it should be non-ambiguous if you assumed every statement was applied at the same instant) ?

In addition to what Andy said (which I agree with)…

Ordered-by-user, is a special case – this is where the order is significant.  For completeness it would be significant even in JSON encapsulation (arrays are ordered).  Unlike other XML ordering cases, the order in ordered-by-user is simply significant by itself.

In other scenarios of ordering of XML document as described in RFC 7950 there are two different aspects (and sticking with your terminology):



  1.  The way RFC 7950 stands, the order of XML does matter.  Consequently, and XML document which is ordered differently does not have to be “processed/ordered”; it is totally legitimate for such XML document to be rejected.

This could also allow parser of XML document to be more efficient in processing data taking an account model order.



For example, in your earlier example of <key-1>,<key-2>,<key-3> vs to <key-1>,<key-3>,<key-2>, one is correct ordering and will be “processed” correctly; the other one is wrong ordering and may result in processing failure.



  1.  The second aspect, which I think you talking about, is the significance of such ordering required by RFC.  I do agree with you, there is nothing which prevents correct “processed/ordered” to be done.  In other words, the processor knows what the keys are and which order the keys are in, and he can get them from XML document.  Further, if payload comes as JSON, the ordering is not there, so if processor can consume both JSON and XML he is already implementing order independent processing for JSON.

Another point relevant to this conversation hides in section 6.4<https://datatracker.ietf.org/doc/html/rfc7950#section-6.4>.  XPath Evaluations, which states

   The data tree has no concept of document order.  An implementation
   needs to choose some document order, but how it is done is an
   implementation decision.  This means that XPath expressions in YANG
   modules SHOULD NOT rely on any specific document order.

Couple point to note here:

  *   The XPATH has document order axes, e.g. ‘preceding-sibling’ hence it can interrogate document order
  *   RFC says that this is implementation specific (e.g. it does not need to follow the order of XML encapsulation described elsewhere).
Consequently, in your keys example, it is implementation dependent which is preceding-sibling key-2, and it can be different from what it is in XML document encoding the data.

Not being an original contributor of this RFC, I really cannot tell why ordering requirements (other than ordered-by-user) are in RFC, nor what good do such requirements do.

I can say though that this ordering is not a discussion of RFC 7950, which sets the requirements, nor a discussion of this errata, which was about wording used to set requirements.  It could be part of YANG NEXT discussion :)

Best regards,

Alexei Sadovnikov
Principal System Architect
Business Solutions
AT&T Business

AT&T Services, Inc.
550 Cochituate Road, Framingham, MA 01701
m  781.249.1516 |  o  781.249.1516 |  as549r@att.com<mailto:as549r@att.com>

This e-mail and any files transmitted with it are AT&T property, are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not one of the named recipient(s),  or otherwise have reason to believe that you have received this message in error, please notify the sender and delete this message immediately from your computer. Any other use, retention, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited.



From: Andy Bierman <andy@yumaworks.com>
Date: Monday, February 28, 2022 at 2:06 PM
To: Jürgen Schönwälder <j.schoenwaelder@jacobs-university.de>, "Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com>, as549r <AS549R@att.com>, "Rob Wilton (rwilton)" <rwilton@cisco.com>, Andy Bierman <andy@yumaworks.com>, "mbj@tail-f.com" <mbj@tail-f.com>, "warren@kumari.net" <warren@kumari.net>, "netmod@ietf.org" <netmod@ietf.org>, RFC Errata System <rfc-editor@rfc-editor.org>
Subject: Re: [netmod] [Technical Errata Reported] RFC7950 (6855)



On Mon, Feb 28, 2022 at 10:53 AM Jürgen Schönwälder <j.schoenwaelder@jacobs-university.de<mailto:j.schoenwaelder@jacobs-university.de>> wrote:
RFC 7950 defines the ordering rules for the XML serialization of YANG
data (and it does not really matter what other uses of XML require). A
rough summary is that XML serializations of data trees are generally
unordered except that elements representing lists have to follow the
list ordering rules and that keys of list elements come first and in
the order they keys are defined.

- ordered-by user
- rpc input
- rpc output
- action input
- action output


A lot of text in RFC 7950 about it.


/js

On Mon, Feb 28, 2022 at 06:42:56PM +0000, Sterne, Jason (Nokia - CA/Ottawa) wrote:
> Thx.  I probably went too far in my statement about XML documents being unordered. But isn't it true that for YANG modelled data, the order of the XML *shouldn't* matter ?  It should ideally be processed atomically (i.e. after being fully processed/loaded it should be non-ambiguous if you assumed every statement was applied at the same instant) ?
>
> Some examples:
> - a YANG container shouldn't appear twice in a single edit-config (i.e. shouldn't re-enter a container in the same edit)
> - a delete of a leaf, and a modification of a value of that leaf, shouldn't be in the same edit-config  (i.e. don't just rely on the order of the XML to resolve that ambiguity).
>
> Jason
>
> From: SADOVNIKOV, ALEXEI <AS549R@att.com<mailto:AS549R@att.com>>
> Sent: Friday, February 25, 2022 4:15 PM
> To: Sterne, Jason (Nokia - CA/Ottawa) <jason.sterne@nokia.com<mailto:jason.sterne@nokia.com>>; Rob Wilton (rwilton) <rwilton@cisco.com<mailto:rwilton@cisco.com>>; Andy Bierman <andy@yumaworks.com<mailto:andy@yumaworks.com>>
> Cc: Kent Watsen <kent+ietf@watsen.net<mailto:kent%2Bietf@watsen.net>>; mbj@tail-f.com<mailto:mbj@tail-f.com>; warren@kumari.net<mailto:warren@kumari.net>; netmod@ietf.org<mailto:netmod@ietf.org>; RFC Errata System <rfc-editor@rfc-editor.org<mailto:rfc-editor@rfc-editor.org>>
> Subject: Re: [netmod] [Technical Errata Reported] RFC7950 (6855)
>
> Jason,
>
> XML is definitively ordered, e.g. elements flow in a document order, and two XML documents with different order of elements are not equivalent.  In contrast, same order does not exist in JSON.
>
> It is very different discussion if ordering of XML is helpful, especially in presence of non-ordered JSON.  IMO the ordering of XML was never helpful to begin with, except to internals of some implementations, and if implementation is extended to support JSON encoding, the XML ordering is an overhead exercise of RFC 7950 compliance, with not much of other benefit.
>
> Best regards,
>
> Alexei Sadovnikov
> Principal System Architect
> Business Solutions
> AT&T Business
>
> AT&T Services, Inc.
> 550 Cochituate Road, Framingham, MA 01701
> m  781.249.1516 |  o  781.249.1516 |  as549r@att.com<mailto:as549r@att.com><mailto:as549r@att.com<mailto:as549r@att.com>>
>
> This e-mail and any files transmitted with it are AT&T property, are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not one of the named recipient(s),  or otherwise have reason to believe that you have received this message in error, please notify the sender and delete this message immediately from your computer. Any other use, retention, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited.
>
>
>
> From: "Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com<mailto:jason.sterne@nokia.com><mailto:jason.sterne@nokia.com<mailto:jason.sterne@nokia.com>>>
> Date: Friday, February 25, 2022 at 1:30 PM
> To: "Rob Wilton (rwilton)" <rwilton@cisco.com<mailto:rwilton@cisco.com><mailto:rwilton@cisco.com<mailto:rwilton@cisco.com>>>, Andy Bierman <andy@yumaworks.com<mailto:andy@yumaworks.com><mailto:andy@yumaworks.com<mailto:andy@yumaworks.com>>>
> Cc: as549r <AS549R@att.com<mailto:AS549R@att.com><mailto:AS549R@att.com<mailto:AS549R@att.com>>>, Kent Watsen <kent+ietf@watsen.net<mailto:kent%2Bietf@watsen.net><mailto:kent+ietf@watsen.net<mailto:kent%2Bietf@watsen.net>>>, "mbj@tail-f.com<mailto:mbj@tail-f.com><mailto:mbj@tail-f.com<mailto:mbj@tail-f.com>>" <mbj@tail-f.com<mailto:mbj@tail-f.com><mailto:mbj@tail-f.com<mailto:mbj@tail-f.com>>>, "warren@kumari.net<mailto:warren@kumari.net><mailto:warren@kumari.net<mailto:warren@kumari.net>>" <warren@kumari.net<mailto:warren@kumari.net><mailto:warren@kumari.net<mailto:warren@kumari.net>>>, "netmod@ietf.org<mailto:netmod@ietf.org><mailto:netmod@ietf.org<mailto:netmod@ietf.org>>" <netmod@ietf.org<mailto:netmod@ietf.org><mailto:netmod@ietf.org<mailto:netmod@ietf.org>>>, RFC Errata System <rfc-editor@rfc-editor.org<mailto:rfc-editor@rfc-editor.org><mailto:rfc-editor@rfc-editor.org<mailto:rfc-editor@rfc-editor.org>>>
> Subject: RE: [netmod] [Technical Errata Reported] RFC7950 (6855)
>
> Thx for the note about JSON IETF.
>
> I had generally thought of XML documents as also being "fundamentally unordered collections of members" as well but I must admit I'm not an expert in the subtleties of XML.
>
> Jason
>
> From: Rob Wilton (rwilton) <rwilton@cisco.com<mailto:rwilton@cisco.com><mailto:rwilton@cisco.com<mailto:rwilton@cisco.com>>>
> Sent: Friday, February 25, 2022 1:20 PM
> To: Andy Bierman <andy@yumaworks.com<mailto:andy@yumaworks.com><mailto:andy@yumaworks.com<mailto:andy@yumaworks.com>>>; Sterne, Jason (Nokia - CA/Ottawa) <jason.sterne@nokia.com<mailto:jason.sterne@nokia.com><mailto:jason.sterne@nokia.com<mailto:jason.sterne@nokia.com>>>
> Cc: SADOVNIKOV, ALEXEI <AS549R@att.com<mailto:AS549R@att.com><mailto:AS549R@att.com<mailto:AS549R@att.com>>>; Kent Watsen <kent+ietf@watsen.net<mailto:kent%2Bietf@watsen.net><mailto:kent+ietf@watsen.net<mailto:kent%2Bietf@watsen.net>>>; mbj@tail-f.com<mailto:mbj@tail-f.com><mailto:mbj@tail-f.com<mailto:mbj@tail-f.com>>; warren@kumari.net<mailto:warren@kumari.net><mailto:warren@kumari.net<mailto:warren@kumari.net>>; netmod@ietf.org<mailto:netmod@ietf.org><mailto:netmod@ietf.org<mailto:netmod@ietf.org>>; RFC Errata System <rfc-editor@rfc-editor.org<mailto:rfc-editor@rfc-editor.org><mailto:rfc-editor@rfc-editor.org<mailto:rfc-editor@rfc-editor.org>>>
> Subject: RE: [netmod] [Technical Errata Reported] RFC7950 (6855)
>
> // As a contributor
>
> I agree with Andy, and personally, I’ve never found this text to be confusing.
>
> Note, if encoded as JSON, then as per RFC 7951 section 5.4, the list elements can be in any order, because JSON objects are unordered.  Although, I would probably still return the keys first, even if the client is not allowed to rely on them being first/ordered.
>
> Rob
>
>
>
> From: Andy Bierman <andy@yumaworks.com<mailto:andy@yumaworks.com><mailto:andy@yumaworks.com<mailto:andy@yumaworks.com>>>
> Sent: 25 February 2022 16:39
> To: Sterne, Jason (Nokia - CA/Ottawa) <jason.sterne@nokia.com<mailto:jason.sterne@nokia.com><mailto:jason.sterne@nokia.com<mailto:jason.sterne@nokia.com>>>
> Cc: SADOVNIKOV, ALEXEI <AS549R@att.com<mailto:AS549R@att.com><mailto:AS549R@att.com<mailto:AS549R@att.com>>>; Rob Wilton (rwilton) <rwilton@cisco.com<mailto:rwilton@cisco.com><mailto:rwilton@cisco.com<mailto:rwilton@cisco.com>>>; Kent Watsen <kent+ietf@watsen.net<mailto:kent%2Bietf@watsen.net><mailto:kent+ietf@watsen.net<mailto:kent%2Bietf@watsen.net>>>; mbj@tail-f.com<mailto:mbj@tail-f.com><mailto:mbj@tail-f.com<mailto:mbj@tail-f.com>>; warren@kumari.net<mailto:warren@kumari.net><mailto:warren@kumari.net<mailto:warren@kumari.net>>; netmod@ietf.org<mailto:netmod@ietf.org><mailto:netmod@ietf.org<mailto:netmod@ietf.org>>; RFC Errata System <rfc-editor@rfc-editor.org<mailto:rfc-editor@rfc-editor.org><mailto:rfc-editor@rfc-editor.org<mailto:rfc-editor@rfc-editor.org>>>
> Subject: Re: [netmod] [Technical Errata Reported] RFC7950 (6855)
>
>
>
> On Fri, Feb 25, 2022 at 8:21 AM Sterne, Jason (Nokia - CA/Ottawa) <jason.sterne@nokia.com<mailto:jason.sterne@nokia.com><mailto:jason.sterne@nokia.com<mailto:jason.sterne@nokia.com>>> wrote:
> Hi all,
>
> There is an interesting consequence of the wording for lists.
>
> >     The list's key nodes are encoded as subelements to the list's
> >     identifier element, in the same order as they are defined within the
> >     "key" statement.
> >
> >     The rest of the list's child nodes are encoded as subelements to the
> >     list element, after the keys.  If the list defines RPC or action
> >     input or output parameters, the subelements are encoded in the same
> >     order as they are defined within the "list" statement.  Otherwise,
> >     the subelements are encoded in any order.
>
> The first paragraph says the key nodes are encoded in the same order as the key statement.  But then the 2nd paragraph says the subelements are encoded in the order they are defined.  But it isn't super-clear if that entire second paragraph only applies to the "rest of the" nodes (i.e. not the keys). The last sentence seems to apply to the keys as well (outside of an RPC/action input/output).
>
>
>
> It seems clear to me that the 2nd paragraph is about the rest of the list's child nodes.
>
>
> I believe it is legal to define a YANG list that has a different order for the items in the "key" element than in the definition of the key leafs right ?  For example:
>
> list foo {
>     key "key-1 key-2 key-3"
>     leaf key-1 { … }
>     leaf key-3 { … }
>     leaf key-2 { … }
>     leaf some-other-leaf-a
>     leaf some-other-leaf-b
> }
> [not that I'd recommend modelling like that]
>
>
> this is legal and sometimes used.
>
>
> Is it clear enough that the encoding order of the subelements matching the YANG-order only applies to the elements *besides* the keys ?
>
>
> yes
>
> It is interesting that there is a small inconsistency here. Looking purely at the order of the leafs won't match the XML encoding for key leafs.
>
> i.e. maybe some implementations will order the XML this way (doesn't match the order of *all* leafs):
>                 <key-1>…
>                 <key-2>…
>                 <key-3>…
>                 <some-other-leaf-a>…
>                 <some-other-leaf-b>…
>
>
> The text is clear that the keys go first in the order specified in the key-stmt.
>
>
> and might some do this (matches the order of *all* leafs, but then contradicts the first paragraph):
>                 <key-1>…
>                 <key-3>…
>                 <key-2>…
>                 <some-other-leaf-a>…
>                 <some-other-leaf-b>…
>
> Jason
>
>
>
> Andy
>
>
> From: netmod <netmod-bounces@ietf.org<mailto:netmod-bounces@ietf.org><mailto:netmod-bounces@ietf.org<mailto:netmod-bounces@ietf.org>>> On Behalf Of SADOVNIKOV, ALEXEI
> Sent: Tuesday, February 22, 2022 11:28 AM
> To: Rob Wilton (rwilton) <rwilton@cisco.com<mailto:rwilton@cisco.com><mailto:rwilton@cisco.com<mailto:rwilton@cisco.com>>>; Kent Watsen <kent+ietf@watsen.net<mailto:kent%2Bietf@watsen.net><mailto:kent%2Bietf@watsen.net<mailto:kent%252Bietf@watsen.net>>>
> Cc: mbj@tail-f.com<mailto:mbj@tail-f.com><mailto:mbj@tail-f.com<mailto:mbj@tail-f.com>>; netmod@ietf.org<mailto:netmod@ietf.org><mailto:netmod@ietf.org<mailto:netmod@ietf.org>>; warren@kumari.net<mailto:warren@kumari.net><mailto:warren@kumari.net<mailto:warren@kumari.net>>; RFC Errata System <rfc-editor@rfc-editor.org<mailto:rfc-editor@rfc-editor.org><mailto:rfc-editor@rfc-editor.org<mailto:rfc-editor@rfc-editor.org>>>
> Subject: Re: [netmod] [Technical Errata Reported] RFC7950 (6855)
>
> Thank you, Rob.
>
> Best regards,
>
> Alexei Sadovnikov
> Principal System Architect
> Business Solutions
> AT&T Business
>
> AT&T Services, Inc.
> 550 Cochituate Road, Framingham, MA 01701
> m  781.249.1516 |  o  781.249.1516 |  as549r@att.com<mailto:as549r@att.com><mailto:as549r@att.com<mailto:as549r@att.com>>
>
> This e-mail and any files transmitted with it are AT&T property, are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not one of the named recipient(s),  or otherwise have reason to believe that you have received this message in error, please notify the sender and delete this message immediately from your computer. Any other use, retention, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited.
>
>
>
> From: "Rob Wilton (rwilton)" <rwilton@cisco.com<mailto:rwilton@cisco.com><mailto:rwilton@cisco.com<mailto:rwilton@cisco.com>>>
> Date: Tuesday, February 22, 2022 at 10:21 AM
> To: Kent Watsen <kent+ietf@watsen.net<mailto:kent%2Bietf@watsen.net><mailto:kent+ietf@watsen.net<mailto:kent%2Bietf@watsen.net>>>, as549r <AS549R@att.com<mailto:AS549R@att.com><mailto:AS549R@att.com<mailto:AS549R@att.com>>>
> Cc: RFC Errata System <rfc-editor@rfc-editor.org<mailto:rfc-editor@rfc-editor.org><mailto:rfc-editor@rfc-editor.org<mailto:rfc-editor@rfc-editor.org>>>, "mbj@tail-f.com<mailto:mbj@tail-f.com><mailto:mbj@tail-f.com<mailto:mbj@tail-f.com>>" <mbj@tail-f.com<mailto:mbj@tail-f.com><mailto:mbj@tail-f.com<mailto:mbj@tail-f.com>>>, "warren@kumari.net<mailto:warren@kumari.net><mailto:warren@kumari.net<mailto:warren@kumari.net>>" <warren@kumari.net<mailto:warren@kumari.net><mailto:warren@kumari.net<mailto:warren@kumari.net>>>, Joel Jaeggli <joelja@bogus.com<mailto:joelja@bogus.com><mailto:joelja@bogus.com<mailto:joelja@bogus.com>>>, Lou Berger <lberger@labn.net<mailto:lberger@labn.net><mailto:lberger@labn.net<mailto:lberger@labn.net>>>, Randy Presuhn <randy_presuhn@alumni.stanford.edu<mailto:randy_presuhn@alumni.stanford.edu><mailto:randy_presuhn@alumni.stanford.edu<mailto:randy_presuhn@alumni.stanford.edu>>>, "netmod@ietf.org<mailto:netmod@ietf.org><mailto:netmod@ietf.org<mailto:netmod@ietf.org>>" <netmod@ietf.org<mailto:netmod@ietf.org><mailto:netmod@ietf.org<mailto:netmod@ietf.org>>>
> Subject: RE: [netmod] [Technical Errata Reported] RFC7950 (6855)
>
> Hi,
>
> I basically agree with Kent, Randy, Andy.
>
> Alexi,
>
> Thanks for flagging this, and the subsequent discussion.
>
> I can see your point of view that MUST is used in other similar places, and I'm sure that in hindsight it would be nice if the language was used consistently in equivalent places.
>
> However, I don't think that the lack of a MUST statement makes the other text any less normative, or ambiguous.  In particular, there is this paragraph of RFC 8174 that updates RFC 2119:
>
>    o  These words can be used as defined here, but using them is not
>       required.  Specifically, normative text does not require the use
>       of these key words.  They are used for clarity and consistency
>       when that is what's wanted, but a lot of normative text does not
>       use them and is still normative.
>
> Hence, I have rejected this errata.  If you find the current text to be confusing and think that it would be helpful to clarify this is a future version of this specification, then I would suggest that you open an issue here (https://urldefense.com/v3/__https://github.com/netmod-wg/yang-next/issues__;!!BhdT!nBhCe6YCJpOtCnmFwZ1oBRjxufTDTet131D2wG3sxyq6mSUshsyDWQzcIrvGvVlRg4l8NnqjPk8x$<https://urldefense.com/v3/__https:/github.com/netmod-wg/yang-next/issues__;!!BhdT!nBhCe6YCJpOtCnmFwZ1oBRjxufTDTet131D2wG3sxyq6mSUshsyDWQzcIrvGvVlRg4l8NnqjPk8x$><https://urldefense.com/v3/__https:/github.com/netmod-wg/yang-next/issues__;!!BhdT!nBhCe6YCJpOtCnmFwZ1oBRjxufTDTet131D2wG3sxyq6mSUshsyDWQzcIrvGvVlRg4l8NnqjPk8x$> ), and it will get evaluated when we get to revising YANG.
>
> Regards,
> Rob
>
>
> -----Original Message-----
> From: Kent Watsen <kent+ietf@watsen.net<mailto:kent%2Bietf@watsen.net><mailto:kent+ietf@watsen.net<mailto:kent%2Bietf@watsen.net>>>
> Sent: 22 February 2022 15:05
> To: Rob Wilton (rwilton) <rwilton@cisco.com<mailto:rwilton@cisco.com><mailto:rwilton@cisco.com<mailto:rwilton@cisco.com>>>
> Cc: SADOVNIKOV, ALEXEI <AS549R@att.com<mailto:AS549R@att.com><mailto:AS549R@att.com<mailto:AS549R@att.com>>>; RFC Errata System <rfc-editor@rfc-editor.org<mailto:rfc-editor@rfc-editor.org><mailto:rfc-editor@rfc-editor.org<mailto:rfc-editor@rfc-editor.org>>>; mbj@tail-f.com<mailto:mbj@tail-f.com><mailto:mbj@tail-f.com<mailto:mbj@tail-f.com>>; warren@kumari.net<mailto:warren@kumari.net><mailto:warren@kumari.net<mailto:warren@kumari.net>>; Joel Jaeggli <joelja@bogus.com<mailto:joelja@bogus.com><mailto:joelja@bogus.com<mailto:joelja@bogus.com>>>; Lou Berger <lberger@labn.net<mailto:lberger@labn.net><mailto:lberger@labn.net<mailto:lberger@labn.net>>>; Randy Presuhn <randy_presuhn@alumni.stanford.edu<mailto:randy_presuhn@alumni.stanford.edu><mailto:randy_presuhn@alumni.stanford.edu<mailto:randy_presuhn@alumni.stanford.edu>>>; netmod@ietf.org<mailto:netmod@ietf.org><mailto:netmod@ietf.org<mailto:netmod@ietf.org>>
> Subject: Re: [netmod] [Technical Errata Reported] RFC7950 (6855)
>
> Move to close this Errata without accepting it.
>
> Kent  // as co-chair
>
>
>
> On Feb 17, 2022, at 5:53 PM, Randy Presuhn <randy_presuhn@alumni.stanford.edu<mailto:randy_presuhn@alumni.stanford.edu><mailto:randy_presuhn@alumni.stanford.edu<mailto:randy_presuhn@alumni.stanford.edu>>> wrote:
>
> Hi -
>
> On 2022-02-17 1:01 PM, SADOVNIKOV, ALEXEI wrote:
> Randy,
> I definitively see that point, and the line of sparing usage can be somewhat subjective.
> In this case, I think use of “MUST” is justified RFC 2119 “actually required for interoperation or to limit behavior which has potential for causing harm”.
> Missing “MUST” statement does leave it open for interpretation, and
>
> That is simply not true.  The existing text, e.g. "If the container
> defines RPC or action input or output parameters, these subelements
> are encoded in the same order as they are defined within the
> 'container' statement"  leaves no room whatsoever for interpretation.
>
> misinterpretation will result in harm – XML payload which encapsulated without following these ordering rule can be rejected during decapsulation which does follow the rule.  The XML payload is exchanged between client and server, often different implementations, hence different interpretation by different developers will lead to communication failure.
>
> The existing text is unambiguous, and provides no options in ordering.
>
> As such, I do not see how proposed errata is at odds with sparing usage provision, when it meets the described reason for usage.
> In other sections of this RFC (7.7.8., 7.8.5. and 7.9.5) “MUST” already used for same purpose; it is difficult to see how it is any more important in where ‘MUST’ is used vs to where it is not.
> Having said all that, the suggested errata can be reduced to exclude section 7.5.7 and second paragraph of 7.8.5 – in both of this cases the exact meaning can be referred from section 7.14.4 (as long as “MUST” is present in there).  Would that resolve your concern of sparing usage?
>
> Such text-diddling seems utterly pointless to me.
>
> Randy
>
> --------------------
> Best regards,
> *Alexei Sadovnikov*
> Principal System Architect
> Business Solutions
> AT&T Business
> *AT&T Services, Inc.*
> 550 Cochituate Road, Framingham, MA 01701
> m  781.249.1516 |  o  781.249.1516 | _as549r@att.com<mailto:as549r@att.com><mailto:_as549r@att.com<mailto:as549r@att.com>> <mailto:as549r@att.com<mailto:as549r@att.com>>_<mailto:as549r@att.com<mailto:as549r@att.com>%3e_>
> This e-mail and any files transmitted with it are AT&T property, are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not one of the named recipient(s),  or otherwise have reason to believe that you have received this message in error, please notify the sender and delete this message immediately from your computer. Any other use, retention, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited.
> *From: *Randy Presuhn <randy_presuhn@alumni.stanford.edu<mailto:randy_presuhn@alumni.stanford.edu><mailto:randy_presuhn@alumni.stanford.edu<mailto:randy_presuhn@alumni.stanford.edu>>>
> *Date: *Thursday, February 17, 2022 at 2:55 PM
> *To: *RFC Errata System <rfc-editor@rfc-editor.org<mailto:rfc-editor@rfc-editor.org><mailto:rfc-editor@rfc-editor.org<mailto:rfc-editor@rfc-editor.org>>>, "mbj@tail-f.com<mailto:mbj@tail-f.com><mailto:mbj@tail-f.com<mailto:mbj@tail-f.com>>" <mbj@tail-f.com<mailto:mbj@tail-f.com><mailto:mbj@tail-f.com<mailto:mbj@tail-f.com>>>, "warren@kumari.net<mailto:warren@kumari.net><mailto:warren@kumari.net<mailto:warren@kumari.net>>" <warren@kumari.net<mailto:warren@kumari.net><mailto:warren@kumari.net<mailto:warren@kumari.net>>>, "rwilton@cisco.com<mailto:rwilton@cisco.com><mailto:rwilton@cisco.com<mailto:rwilton@cisco.com>>" <rwilton@cisco.com<mailto:rwilton@cisco.com><mailto:rwilton@cisco.com<mailto:rwilton@cisco.com>>>, "joelja@bogus.com<mailto:joelja@bogus.com><mailto:joelja@bogus.com<mailto:joelja@bogus.com>>" <joelja@bogus.com<mailto:joelja@bogus.com><mailto:joelja@bogus.com<mailto:joelja@bogus.com>>>, "kent+ietf@watsen.net<mailto:kent%2Bietf@watsen.net><mailto:kent+ietf@watsen.net<mailto:kent%2Bietf@watsen.net>>" <kent+ietf@watsen.net<mailto:kent%2Bietf@watsen.net><mailto:kent+ietf@watsen.net<mailto:kent%2Bietf@watsen.net>>>, "lberger@labn.net<mailto:lberger@labn.net><mailto:lberger@labn.net<mailto:lberger@labn.net>>" <lberger@labn.net<mailto:lberger@labn.net><mailto:lberger@labn.net<mailto:lberger@labn.net>>>
> *Cc: *as549r <AS549R@att.com<mailto:AS549R@att.com><mailto:AS549R@att.com<mailto:AS549R@att.com>>>, "netmod@ietf.org<mailto:netmod@ietf.org><mailto:netmod@ietf.org<mailto:netmod@ietf.org>>" <netmod@ietf.org<mailto:netmod@ietf.org><mailto:netmod@ietf.org<mailto:netmod@ietf.org>>>
> *Subject: *Re: [netmod] [Technical Errata Reported] RFC7950 (6855)
> Hi -
> This seems like a remarkably pointless change, and arguably
> at odds with section 6 of RFC 2119. ("Imperatives of the type
> defined in this memo must be used with care and sparingly.")
> Randy
> On 2022-02-17 10:50 AM, RFC Errata System wrote:
> > The following errata report has been submitted for RFC7950,
> > "The YANG 1.1 Data Modeling Language".
> >
> > --------------------------------------
> > You may review the report below and at:
> > https://urldefense.com/v3/__https://www.rfc-editor.org/errata/eid6855__;!!BhdT!gZbsQDBeTveBJPSYBpHQOJS8wjZSUsguzZ6KwXq4NAiJ1cAOZgcko9_3wb4pLOxeGCFKcQFoi9XajHOG-NeqWtpDMmnMUI4$<https://urldefense.com/v3/__https:/www.rfc-editor.org/errata/eid6855__;!!BhdT!gZbsQDBeTveBJPSYBpHQOJS8wjZSUsguzZ6KwXq4NAiJ1cAOZgcko9_3wb4pLOxeGCFKcQFoi9XajHOG-NeqWtpDMmnMUI4$><https://urldefense.com/v3/__https:/www.rfc-editor.org/errata/eid6855__;!!BhdT!gZbsQDBeTveBJPSYBpHQOJS8wjZSUsguzZ6KwXq4NAiJ1cAOZgcko9_3wb4pLOxeGCFKcQFoi9XajHOG-NeqWtpDMmnMUI4$> <https://urldefense.com/v3/__https:/www.rfc-editor.org/errata/eid6855__;!!BhdT!gZbsQDBeTveBJPSYBpHQOJS8wjZSUsguzZ6KwXq4NAiJ1cAOZgcko9_3wb4pLOxeGCFKcQFoi9XajHOG-NeqWtpDMmnMUI4$>  >
> > --------------------------------------
> > Type: Technical
> > Reported by: Alexei Sadovnikov <as549r@att.com<mailto:as549r@att.com><mailto:as549r@att.com<mailto:as549r@att.com>> <mailto:as549r@att.com<mailto:as549r@att.com>><mailto:as549r@att.com<mailto:as549r@att.com>%3e>>
> >
> > Section: GLOBAL
> >
> > Original Text
> > -------------
> > 7.5.  The "container" Statement
> > 7.5.7.  XML Encoding Rules
> >
> >     A container node is encoded as an XML element.  The element's local
> >     name is the container's identifier, and its namespace is the module's
> >     XML namespace (see Section 7.1.3).
> >
> >     The container's child nodes are encoded as subelements to the
> >     container element.  If the container defines RPC or action input or
> >     output parameters, these subelements are encoded in the same order as
> >     they are defined within the "container" statement.  Otherwise, the
> >     subelements are encoded in any order.
> >
> > 7.8. The "list" Statement
> > 7.8.5.  XML Encoding Rules
> >
> >     The list's key nodes are encoded as subelements to the list's
> >     identifier element, in the same order as they are defined within the
> >     "key" statement.
> >
> >     The rest of the list's child nodes are encoded as subelements to the
> >     list element, after the keys.  If the list defines RPC or action
> >     input or output parameters, the subelements are encoded in the same
> >     order as they are defined within the "list" statement.  Otherwise,
> >     the subelements are encoded in any order.
> >     . . . . .
> >
> > 7.14.  The "rpc" Statement
> > 7.14.4.  NETCONF XML Encoding Rules
> >
> >     . . . . .
> >
> >     Input parameters are encoded as child XML elements to the rpc node's
> >     XML element, in the same order as they are defined within the "input"
> >     statement.
> >
> >     If the RPC operation invocation succeeded and no output parameters
> >     are returned, the <rpc-reply> contains a single <ok/> element defined
> >     in [RFC6241].  If output parameters are returned, they are encoded as
> >     child elements to the <rpc-reply> element defined in [RFC6241], in
> >     the same order as they are defined within the "output" statement.
> >
> >
> > 7.15.  The "action" Statement
> > 7.15.2.  NETCONF XML Encoding Rules
> >
> >     . . . . .
> >
> >     The <action> element contains a hierarchy of nodes that identifies
> >     the node in the datastore.  It MUST contain all containers and list
> >     nodes in the direct path from the top level down to the list or
> >     container containing the action.  For lists, all key leafs MUST also
> >     be included.  The innermost container or list contains an XML element
> >     that carries the name of the defined action.  Within this element,
> >     the input parameters are encoded as child XML elements, in the same
> >     order as they are defined within the "input" statement.
> >
> >     . . . . .
> >
> >     If the action operation invocation succeeded and no output parameters
> >     are returned, the <rpc-reply> contains a single <ok/> element defined
> >     in [RFC6241].  If output parameters are returned, they are encoded as
> >     child elements to the <rpc-reply> element defined in [RFC6241], in
> >     the same order as they are defined within the "output" statement.
> >
> >
> > Corrected Text
> > --------------
> > 7.5.  The "container" Statement
> > 7.5.7.  XML Encoding Rules
> >
> >     . . . . .
> >
> >     The container's child nodes are encoded as subelements to the
> >     container element.  If the container defines RPC or action input or
> >     output parameters, these subelements MUST be encoded in the same
> order as
> >     they are defined within the "container" statement.  Otherwise, the
> >     subelements are encoded in any order.
> >
> > 7.8. The "list" Statement
> > 7.8.5.  XML Encoding Rules
> >
> >     The list's key nodes MUST be encoded as subelements to the list's
> >     identifier element, in the same order as they are defined within the
> >     "key" statement.
> >
> >     The rest of the list's child nodes are encoded as subelements to the
> >     list element, after the keys.  If the list defines RPC or action
> >     input or output parameters, the subelements MUST be encoded in
> the same
> >     order as they are defined within the "list" statement.  Otherwise,
> >     the subelements are encoded in any order.
> >     . . . . .
> >
> > 7.14.  The "rpc" Statement
> > 7.14.4.  NETCONF XML Encoding Rules
> >
> >     . . . . .
> >
> >     Input parameters MUST be encoded as child XML elements to the rpc
> node's
> >     XML element, in the same order as they are defined within the "input"
> >     statement.
> >
> >     If the RPC operation invocation succeeded and no output parameters
> >     are returned, the <rpc-reply> contains a single <ok/> element defined
> >     in [RFC6241].  If output parameters are returned, they MUST be
> encoded as
> >     child elements to the <rpc-reply> element defined in [RFC6241], in
> >     the same order as they are defined within the "output" statement.
> >
> >
> > 7.15.  The "action" Statement
> > 7.15.2.  NETCONF XML Encoding Rules
> >
> >     . . . . .
> >
> >     The <action> element contains a hierarchy of nodes that identifies
> >     the node in the datastore.  It MUST contain all containers and list
> >     nodes in the direct path from the top level down to the list or
> >     container containing the action.  For lists, all key leafs MUST also
> >     be included.  The innermost container or list contains an XML element
> >     that carries the name of the defined action.  Within this element,
> >     the input parameters MUST be encoded as child XML elements, in
> the same
> >     order as they are defined within the "input" statement.
> >
> >     . . . . .
> >
> >     If the action operation invocation succeeded and no output parameters
> >     are returned, the <rpc-reply> contains a single <ok/> element defined
> >     in [RFC6241].  If output parameters are returned, they MUST be
> encoded as
> >     child elements to the <rpc-reply> element defined in [RFC6241], in
> >     the same order as they are defined within the "output" statement.
> >
> > Notes
> > -----
> > The RFC 2119 keywords are missing in description of ordering for XML
> encoding rules for RPC, actions and references thereto and in additional
> instance of list keys encoding.
> >
> > Although the text of RFC suggests reading this as if "MUST" was
> present, without keyword it is open to interpretation if the sentences
> actually mean "MUST" or "SHOULD" or may be even "MAY".
> >
> > In other places discussing ordering, for example 7.7.8., 7.8.5. and
> 7.9.5. the "MUST" is actually present, hence proposed errata would make
> ordering description usage of keywords consistent.
> >
> > Instructions:
> > -------------
> > This erratum is currently posted as "Reported". If necessary, please
> > use "Reply All" to discuss whether it should be verified or
> > rejected. When a decision is reached, the verifying party
> > can log in to change the status and edit the report, if necessary.
> >
> > --------------------------------------
> > RFC7950 (draft-ietf-netmod-rfc6020bis-14)
> > --------------------------------------
> > Title               : The YANG 1.1 Data Modeling Language
> > Publication Date    : August 2016
> > Author(s)           : M. Bjorklund, Ed.
> > Category            : PROPOSED STANDARD
> > Source              : Network Modeling
> > Area                : Operations and Management
> > Stream              : IETF
> > Verifying Party     : IESG
> >
> > _______________________________________________
> > netmod mailing list
> > netmod@ietf.org<mailto:netmod@ietf.org><mailto:netmod@ietf.org<mailto:netmod@ietf.org>> <mailto:netmod@ietf.org<mailto:netmod@ietf.org>>
> > https://urldefense.com/v3/__https://www.ietf.org/mailman/listinfo/netmod__;!!BhdT!gZbsQDBeTveBJPSYBpHQOJS8wjZSUsguzZ6KwXq4NAiJ1cAOZgcko9_3wb4pLOxeGCFKcQFoi9XajHOG-NeqWtpD91awGhs$<https://urldefense.com/v3/__https:/www.ietf.org/mailman/listinfo/netmod__;!!BhdT!gZbsQDBeTveBJPSYBpHQOJS8wjZSUsguzZ6KwXq4NAiJ1cAOZgcko9_3wb4pLOxeGCFKcQFoi9XajHOG-NeqWtpD91awGhs$><https://urldefense.com/v3/__https:/www.ietf.org/mailman/listinfo/netmod__;!!BhdT!gZbsQDBeTveBJPSYBpHQOJS8wjZSUsguzZ6KwXq4NAiJ1cAOZgcko9_3wb4pLOxeGCFKcQFoi9XajHOG-NeqWtpD91awGhs$> <https://urldefense.com/v3/__https:/www.ietf.org/mailman/listinfo/netmod__;!!BhdT!gZbsQDBeTveBJPSYBpHQOJS8wjZSUsguzZ6KwXq4NAiJ1cAOZgcko9_3wb4pLOxeGCFKcQFoi9XajHOG-NeqWtpD91awGhs$>
>
>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org<mailto:netmod@ietf.org><mailto:netmod@ietf.org<mailto:netmod@ietf.org>>
> https://www.ietf.org/mailman/listinfo/netmod<https://urldefense.com/v3/__https:/www.ietf.org/mailman/listinfo/netmod__;!!BhdT!g7SDpS9yQfVKdk2T0pTop0WrxCjpbEWsFuJ6ej42V6SkpxOFDyTA8ubwV8If1OPdjQDqkBcjX3J0$><https://urldefense.com/v3/__https:/www.ietf.org/mailman/listinfo/netmod__;!!BhdT!mg1laEAxyhmBddjWVYRImubHWsCFHW2ba3Z-Q60UtvXousUUp8h1zSQ-WE9JMsWNZBDxIq7HL9z0W_rMKUI$>

> _______________________________________________
> netmod mailing list
> netmod@ietf.org<mailto:netmod@ietf.org>
> https://www.ietf.org/mailman/listinfo/netmod<https://urldefense.com/v3/__https:/www.ietf.org/mailman/listinfo/netmod__;!!BhdT!g7SDpS9yQfVKdk2T0pTop0WrxCjpbEWsFuJ6ej42V6SkpxOFDyTA8ubwV8If1OPdjQDqkBcjX3J0$>


--
Jürgen Schönwälder              Jacobs University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
Fax:   +49 421 200 3103         <https://www.jacobs-university.de/<https://urldefense.com/v3/__https:/www.jacobs-university.de/__;!!BhdT!g7SDpS9yQfVKdk2T0pTop0WrxCjpbEWsFuJ6ej42V6SkpxOFDyTA8ubwV8If1OPdjQDqkNtNyKSv$>>