Re: [yang-doctors] [netmod] Yangdoctors last call review of draft-ietf-netmod-nmda-diff-04

"Reshad Rahman (rrahman)" <rrahman@cisco.com> Tue, 22 September 2020 13:07 UTC

Return-Path: <rrahman@cisco.com>
X-Original-To: yang-doctors@ietfa.amsl.com
Delivered-To: yang-doctors@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D56443A1695; Tue, 22 Sep 2020 06:07:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.619
X-Spam-Level:
X-Spam-Status: No, score=-9.619 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com header.b=T8TrYe1T; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=SiklCg+J
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 WHv81dAZviE5; Tue, 22 Sep 2020 06:07:49 -0700 (PDT)
Received: from rcdn-iport-1.cisco.com (rcdn-iport-1.cisco.com [173.37.86.72]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DC0EB3A1655; Tue, 22 Sep 2020 06:07:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=64003; q=dns/txt; s=iport; t=1600780068; x=1601989668; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=p2MVGPbdPY5dKvVb2iLjG2lnLcF75U4XDqrw0KimE60=; b=T8TrYe1T9s1SejPcEFRNyD+OegU7sz5QSFldV7HimUsMQMtrp3PPVj3S bnQye5HJi129Q9EEvyLnyvlwIvR1NyvD8IatXwtI1DPBTqDrfJOk++sl/ mnfeugJhqsh/9bIk3QD8nzGm/v9gG91RWCv7VQTASvQw7naYRM6yt2lhM E=;
IronPort-PHdr: =?us-ascii?q?9a23=3AD2UK3hQ9pIQswYbcsZdTKTbKY9psv++ubAcI9p?= =?us-ascii?q?oqja5Pea2//pPkeVbS/uhpkESQBNmJ4PZJju+QtLrvCiQM4peE5XYFdpEEFx?= =?us-ascii?q?oIkt4fkAFoBsmZQVb6I/jnY21ffoxCWVZp8mv9PR1TH8DzNFbWr3i3qzkIFU?= =?us-ascii?q?a3OQ98PO+gHInUgoy+3Pyz/JuGZQJOiXK9bLp+IQ/wox/Ws5wdgJBpLeA6zR?= =?us-ascii?q?6arw=3D=3D?=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0D1AABC9mlf/4ENJK1fHQEBAQEJARI?= =?us-ascii?q?BBQUBgX0GAQsBgSIvKSgHcFkvLIQ6g0YDjXmYdYEuFIERA1ULAQEBDQEBIwo?= =?us-ascii?q?CBAEBhEsCF4IOAiQ2Bw4CAwEBCwEBBQEBAQIBBgRthS8IJQyFcgEBAQECARI?= =?us-ascii?q?ICR0BATcBBAsCAQgRAwECIQEGAwICAjAUCQgCBAENBSKDBAGBfk0DDiABDqo?= =?us-ascii?q?CAoE5iGF2gTKDAQEBBYE3AoN3GIIQAwaBOAGCcIJcS0KGUhuBQT+BOByCGDU?= =?us-ascii?q?+glwBAQIBgTMBDiEQCQ0JgmEzggsikBODIoZ9i3iQC4EACoJniHeRVwMfgwy?= =?us-ascii?q?JeQaOMYVHkn6Bd4hqkG+BR4JlAgQCBAUCDgEBBYFbCSqBV3AVOyoBgj5QFwI?= =?us-ascii?q?NgzWKajduAQmCQoUUhUJ0NwIGAQkBAQMJfIsdASeCHgEB?=
X-IronPort-AV: E=Sophos;i="5.77,290,1596499200"; d="scan'208,217";a="818612567"
Received: from alln-core-9.cisco.com ([173.36.13.129]) by rcdn-iport-1.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 22 Sep 2020 13:07:46 +0000
Received: from XCH-RCD-001.cisco.com (xch-rcd-001.cisco.com [173.37.102.11]) by alln-core-9.cisco.com (8.15.2/8.15.2) with ESMTPS id 08MD7khT015876 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Tue, 22 Sep 2020 13:07:46 GMT
Received: from xhs-aln-002.cisco.com (173.37.135.119) by XCH-RCD-001.cisco.com (173.37.102.11) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 22 Sep 2020 08:07:46 -0500
Received: from xhs-aln-003.cisco.com (173.37.135.120) by xhs-aln-002.cisco.com (173.37.135.119) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 22 Sep 2020 08:07:45 -0500
Received: from NAM04-BN3-obe.outbound.protection.outlook.com (173.37.151.57) by xhs-aln-003.cisco.com (173.37.135.120) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Tue, 22 Sep 2020 08:07:45 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=arg5URwMzTWUpwEh9/ED7PT5BxdKeebSsrn6SiHmpQHXLxB8Gr6K9DAUlPef3C0vAvdDcTJ8TzId2dOsbyDiGfA6eOIr5HuRKzpvgz3/4fyBSS70XJfklAhHyri8BxJJjW1zPdlxJwG3Fg/A7x72wGyjdll0+aeNN86GmPlvg0ahE4cZq5nNmmBh7wwSm4pR/vi4g1JbiZXuvOXbjk7BuO2Cki2J5HtcxIQdXMFd1v+XTXTMPcSyKdww6r8XVSrWQ1+JFKUPQb/E2PZTvObeRSYXr56fj6u3N62nUFjeHrwjiZiHkM5WlPt8JaZzCHmYwIbLGMX2HQeXUxpzYbacMw==
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-SenderADCheck; bh=p2MVGPbdPY5dKvVb2iLjG2lnLcF75U4XDqrw0KimE60=; b=mOqpnzXMSCEmPSV3nDa1sdDkHKQRCxSToTQIJUQYtGhJCZyGiUb2OdG27vCpVzx1ec91DhXJUi/6FtkHS2sYB7iLA1s8vB7eFJjAMV6vGGXBavz0IMg9Z45NeJYa3PVAUSpnGt6zV/2hiu1eMK3sCB6duQSBUKAvVHJTkGDPNHb0wnLbmH4zg6PmSvtUHZSGTwA799W1My8wwuybFkxz5bUHDhEDrLox7Poduj9+IIpsFH+cQyL+qAQVcogjxhBE/38e41jVhSINrxPFA0q3n5Wl2PaUAr4XOLJSMXaln+FRqiqLp5uyzlDJ776VBQyJ6n8ck1WyDFMWvsGKvUqpAA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector2-cisco-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=p2MVGPbdPY5dKvVb2iLjG2lnLcF75U4XDqrw0KimE60=; b=SiklCg+JVRuTHcc7k3EoU9O8FDmSqMfTZL1r4ln1o3St+xm4lofJMN3I6+oh9LJzT1D+owtLMnxb0qdixKSc6PPBdHNRw6k3/AHFzsup2ye1hY6kPTle8C9aoes9PXAPC/Dx+nH3fMwyTZ+gRGwbR6bg8XbdDAbhqzuytPBcvyk=
Received: from BN6PR11MB3875.namprd11.prod.outlook.com (2603:10b6:405:80::37) by BN8PR11MB3585.namprd11.prod.outlook.com (2603:10b6:408:89::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.20; Tue, 22 Sep 2020 13:07:42 +0000
Received: from BN6PR11MB3875.namprd11.prod.outlook.com ([fe80::1802:6400:86ca:5b31]) by BN6PR11MB3875.namprd11.prod.outlook.com ([fe80::1802:6400:86ca:5b31%5]) with mapi id 15.20.3391.023; Tue, 22 Sep 2020 13:07:42 +0000
From: "Reshad Rahman (rrahman)" <rrahman@cisco.com>
To: Alexander L Clemm <ludwig@clemm.org>, "yang-doctors@ietf.org" <yang-doctors@ietf.org>
CC: "last-call@ietf.org" <last-call@ietf.org>, "netmod@ietf.org" <netmod@ietf.org>, "draft-ietf-netmod-nmda-diff.all@ietf.org" <draft-ietf-netmod-nmda-diff.all@ietf.org>
Thread-Topic: [yang-doctors] [netmod] Yangdoctors last call review of draft-ietf-netmod-nmda-diff-04
Thread-Index: AQHWi6XXGy8knHCfYEaSiW7jf0az2KlqDqQAgABKnACAA8LnAIAAtDiA//++cACAAENVgIAFljGA
Date: Tue, 22 Sep 2020 13:07:42 +0000
Message-ID: <246871E9-491C-4F51-85BE-31645204E89B@cisco.com>
References: <159942490640.25028.10946254095755778899@ietfa.amsl.com> <EF21460A-8689-491C-AE19-942C6FA84FFC@cisco.com> <e801c95e-078e-8438-b1a0-18aaf4be3a82@clemm.org> <8759A9BF-300C-46F7-B39F-9EF4CFA2D726@cisco.com> <22126972-0920-1bb3-a73f-f4a219a59bf6@clemm.org> <0E3A16A2-6ABA-4868-936F-AA6C9AAF3A8E@cisco.com> <7cf5120e-28c9-383a-5238-0d6749e93854@clemm.org> <100F7855-CFE2-4E04-927F-A25089D3B2BA@cisco.com> <1b722d38-af72-a96b-9368-49d678a1151a@clemm.org>
In-Reply-To: <1b722d38-af72-a96b-9368-49d678a1151a@clemm.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/16.37.20051002
authentication-results: clemm.org; dkim=none (message not signed) header.d=none;clemm.org; dmarc=none action=none header.from=cisco.com;
x-originating-ip: [2607:fea8:bee0:52e:6917:f754:a3fa:12bf]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 414577d4-b520-44dc-a03d-08d85ef87da9
x-ms-traffictypediagnostic: BN8PR11MB3585:
x-microsoft-antispam-prvs: <BN8PR11MB3585F77145A48C0639C8F05AAB3B0@BN8PR11MB3585.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: ldPM7kMyg5fG8D5NuHntfKwz9wqY1cLwREJkKpSwhhnWPIB9XqlJLvX7mpOQcwe62c7L1A359hlTvUG5ei+dLoDUbIzAroVGpvlkvcfubb98WAWmWIz4HmDLgjBJEHI+zwzQbqYEZtysKDQAIkVs1T3c7Co2ifbTCwscaB9FthiwkfyNgFrarFaoKkj18kjDlerAkQuJqg0ishXOTGJMtxtgJ7NzkREnKdkObRfiVm0c1gWvae5PcInvRA+SJOyBT8k/I0REEVRU0yK+mMvejNK4OrH/ZbHSBQiJN5nU6Jj/PRqzsPKmeXKGJSy1UzFQQvsKvd/G/j2i6ajYzKnOCgJ8vWPIGvZ1QSqHKCX0A0ql5XPuCJRSQirj05bVWI5fD5Bn6uwZHYw6gEwr5jmEZMlBjVxyCFWMifAyO3FcZoh5OaNMo250ViaFuOVz5dXIBiVk1vo16L3B6wAlDIHGEA==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN6PR11MB3875.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(396003)(39860400002)(376002)(346002)(136003)(366004)(4326008)(36756003)(5660300002)(6486002)(478600001)(86362001)(54906003)(71200400001)(966005)(66946007)(76116006)(2906002)(91956017)(66556008)(64756008)(66446008)(66476007)(316002)(83380400001)(186003)(6512007)(53546011)(6506007)(110136005)(2616005)(8676002)(166002)(9326002)(8936002)(33656002); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: 84nkQRU57coEMxIA4s8x/o5+I+aWkXhfaW6r1cfG6wC/xSMdFCfR/shiVgBjGzEaX7JqnWSsy4Qe0ukFDV4vv1som7pIOFwgl/+YMD4681phKe4kVA0Yd5IR7KoKq1FJLndRR1MHzUUtcj++Ln7iT/B6iXjWWgzmT/3CNhLkFhxGVCYrJ+aVqBrmW8W0YVQG8kV44MIrgUSL9TNv3m3HQuMB1u6CL5aq6jcnZHYzxcevL/RYHgW0vp7as9Gy1BYRATypXzlyVcgLA10solzcmU1OgSrAv1kG1m9lOo3O0nLH7kbRM7snpAoGh4hLyaWcjMdrnsrlxwM/CsfeyN1kX92KbBMeTQ+CntKGhgy0IXsq4Ms533rNIBgnI1SbjadD8DHdjrX+FpY7vg3YN6028w0c0GtCVAH0ROJugTVelGjxOcrLjVS8dFwPP6cUJFLT5/nYYdHAylvVqrfHQ7h+ebDLfuBGSN0bekQLB0MCwHpzLelL+Mb429YduFd5g36T/UgejgCInhh0rCMN0ZQ16wtBtIK9nGLTqR4iOG6eQAFiFaNonDdnk/WXuJx8nyUbnK+ObssUoW0zFzNQFJRDBIqZsABu7+j34caEWOcj98hdx0/8aXOQ4FyglRh8QoNogMasNl6wKnScYD1tLvblLkh7j8wfWO0MJ0GfjtHffDcuAuU89kK+3J1tRTOdzPbxD4c9cvEObK6GPcmI901FuQ==
x-ms-exchange-transport-forked: True
Content-Type: multipart/alternative; boundary="_000_246871E9491C4F5185BE31645204E89Bciscocom_"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: BN6PR11MB3875.namprd11.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 414577d4-b520-44dc-a03d-08d85ef87da9
X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Sep 2020 13:07:42.5194 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 3WgNkxKuNKByoQMsLebnwHeK2YMjTMm/mDRfbJWnWUDGPY8EGOSRSDp4JGoohSjEWPzo4n8QUYdegu5vjg0vrQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR11MB3585
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.37.102.11, xch-rcd-001.cisco.com
X-Outbound-Node: alln-core-9.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/VCgFpA_GPw8_Wu7aUv01PHcZgE4>
Subject: Re: [yang-doctors] [netmod] Yangdoctors last call review of draft-ietf-netmod-nmda-diff-04
X-BeenThere: yang-doctors@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Email list of the yang-doctors directorate <yang-doctors.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/yang-doctors/>
List-Post: <mailto:yang-doctors@ietf.org>
List-Help: <mailto:yang-doctors-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 22 Sep 2020 13:07:52 -0000

Hi Alex,

Thank you for addressing my comments.

I checked rev-06, and I believe the XML and JSON output in the example is broken: there is a single “edit” element with multiple “edit-id” elements. I believe there should be multiple “edit” elements.

The only “nit” is that leaf-xpath-filter references 6021 instead of 6991 (as you correctly pointed out in your response).
           leaf xpath-filter {
             if-feature nc:xpath;
             type yang:xpath1.0;
             description
               "This parameter contains an XPath expression
                identifying the portions of the target
                datastore to retrieve.";
             reference "RFC 6021: Common YANG Data Types";
           }

> Issues
>             1.            YANG model P8, for “leaf xpath-filter”, add reference to RFC6021. There should also be a normative reference to RFC6021 (as per RFC8407)
<ALEX> Thanks.  Adding reference to 6991 (as 6021 is obsoleted). </ALEX>

Regards,
Reshad.

From: Alexander L Clemm <ludwig@clemm.org>
Date: Friday, September 18, 2020 at 3:48 PM
To: "Reshad Rahman (rrahman)" <rrahman@cisco.com>om>, "yang-doctors@ietf.org" <yang-doctors@ietf.org>
Cc: "last-call@ietf.org" <last-call@ietf.org>rg>, "netmod@ietf.org" <netmod@ietf.org>rg>, "draft-ietf-netmod-nmda-diff.all@ietf.org" <draft-ietf-netmod-nmda-diff.all@ietf.org>
Subject: Re: [yang-doctors] [netmod] Yangdoctors last call review of draft-ietf-netmod-nmda-diff-04


Thank you!

I just uploaded rev -06.

--- Alex
On 9/18/2020 12:47 PM, Reshad Rahman (rrahman) wrote:
Hi Alex,

This addresses my comment/concern.

Regards,
Reshad.

From: Alexander L Clemm <ludwig@clemm.org><mailto:ludwig@clemm.org>
Date: Friday, September 18, 2020 at 3:43 PM
To: "Reshad Rahman (rrahman)" <rrahman@cisco.com><mailto:rrahman@cisco.com>, "yang-doctors@ietf.org"<mailto:yang-doctors@ietf.org> <yang-doctors@ietf.org><mailto:yang-doctors@ietf.org>
Cc: "last-call@ietf.org"<mailto:last-call@ietf.org> <last-call@ietf.org><mailto:last-call@ietf.org>, "netmod@ietf.org"<mailto:netmod@ietf.org> <netmod@ietf.org><mailto:netmod@ietf.org>, "draft-ietf-netmod-nmda-diff.all@ietf.org"<mailto:draft-ietf-netmod-nmda-diff.all@ietf.org> <draft-ietf-netmod-nmda-diff.all@ietf.org><mailto:draft-ietf-netmod-nmda-diff.all@ietf.org>
Subject: Re: [yang-doctors] [netmod] Yangdoctors last call review of draft-ietf-netmod-nmda-diff-04


Hi Reshad,

okay, so let's add the following then to section 4, in the explanation of the "differences" output parameter:

"When a datastore node in the source of the comparison is not present in the target of the comparison, this can be indicated either as a "delete" or as a "remove" in the patch as there is no differentiation between those operations for the purposes of the comparison.  "

And update the description as follows:

         container differences {
          description
           "The list of differences, encoded per RFC8072 with an
             augmentation to include source values where
             applicable.  When a datastore node in the source is
             not present in the target, this can be indicated either
             as a 'delete' or as a 'remove' as there is no difference
             between them for the purposes of the comparison.";
...

I will post this in a -06 shortly.  Please let us know if this addresses your concerns or if there is anything else.

Thanks!

--- Alex


On 9/18/2020 5:57 AM, Reshad Rahman (rrahman) wrote:
Hi Alex,

I think the only “problem” with using both “remove” and “delete” is that it could be confusing (when should one be used and not the other). Adding some text to say they’re the same for the diff operation is good enough for me.

Regards,
Reshad.

From: Alexander L Clemm <ludwig@clemm.org><mailto:ludwig@clemm.org>
Date: Tuesday, September 15, 2020 at 7:31 PM
To: "Reshad Rahman (rrahman)" <rrahman@cisco.com><mailto:rrahman@cisco.com>, "yang-doctors@ietf.org"<mailto:yang-doctors@ietf.org> <yang-doctors@ietf.org><mailto:yang-doctors@ietf.org>
Cc: "last-call@ietf.org"<mailto:last-call@ietf.org> <last-call@ietf.org><mailto:last-call@ietf.org>, "netmod@ietf.org"<mailto:netmod@ietf.org> <netmod@ietf.org><mailto:netmod@ietf.org>, "draft-ietf-netmod-nmda-diff.all@ietf.org"<mailto:draft-ietf-netmod-nmda-diff.all@ietf.org> <draft-ietf-netmod-nmda-diff.all@ietf.org><mailto:draft-ietf-netmod-nmda-diff.all@ietf.org>
Subject: Re: [yang-doctors] [netmod] Yangdoctors last call review of draft-ietf-netmod-nmda-diff-04


Hi Reshad,

re: question 1: As you indicate, there may be no distinction between indicating a "remove" or a "delete" in the patch.  Right now it would be acceptable to return either.  If we want to eliminate this freedom, which one would you prefer be used?  Shall we remove the possibility for "delete" and just cover it using "remove"?

Note that the place where this is specified in the model is as part of a condition that specifies when the source value should be included.   If we want to rule out that diff can return either "remove" or "delete" (indeed they are synonymous), we would need to add text to the container description that when a data object is present in the target of the comparison but not the source, that "remove" should be used to indicate that.

The model would be changed follows.  Please confirm if this looks good to you & we'll incorporate it.

OLD

           container differences {

             description

               "The list of differences, encoded per RFC8072<https://tools.ietf.org/html/rfc8072> with an

                augmentation to include source values where

                applicable.";

             uses ypatch:yang-patch {

               augment "yang-patch/edit" {

                 description

                   "Provide the value of the source of the patch,

                    respectively of the comparison, in addition to

                    the target value, where applicable.";

                 anydata source-value {

                   when "../operation = 'delete'"

                     + "or ../operation = 'merge'"

                     + "or ../operation = 'move'"

                     + "or ../operation = 'replace'"

                     + "or ../operation = 'remove'";

                   description

                     "The anydata 'value' is only used for 'delete',

                      'move', 'merge', 'replace', and 'remove'

                      operations.";

                 }

                 reference "RFC 8072<https://tools.ietf.org/html/rfc8072>72>: YANG Patch Media Type";

               }

             }

           }




NEW:

           container differences {

             description

               "The list of differences, encoded per RFC8072<https://tools.ietf.org/html/rfc8072> with an

                augmentation to include source values where

                applicable.  Where a difference include a data object

                in the target that is not present in the source,

                this shall be indicated as a 'remove' operation

                in the patch, not as a 'delete' operation.";

             uses ypatch:yang-patch {

               augment "yang-patch/edit" {

                 description

                   "Provide the value of the source of the patch,

                    respectively of the comparison, in addition to

                    the target value, where applicable.";

                 anydata source-value {

                   when "../operation = 'merge'"

                     + "or ../operation = 'move'"

                     + "or ../operation = 'replace'"

                     + "or ../operation = 'remove'";

                   description

                     "The anydata 'value' is only used for 'merge',

                      'move','replace', and 'remove' operations.";

                 }

                 reference "RFC 8072<https://tools.ietf.org/html/rfc8072>72>: YANG Patch Media Type";

               }

             }

           }

Thanks
--- Alex

On 9/15/2020 4:04 PM, Reshad Rahman (rrahman) wrote:

Hi Alex,



I will review the latest version.



See below for questions/responses.



On 2020-09-15, 5:19 PM, "yang-doctors on behalf of Alexander L Clemm" <yang-doctors-bounces@ietf.org on behalf of ludwig@clemm.org><mailto:yang-doctors-bounces@ietf.orgonbehalfofludwig@clemm.org> wrote:



    Hello Reshad, hello YANG Doctors,



    thank you for your review!  Please find my replies inline, <ALEX>.  We

    have also just posted -05 (thanks, Yingzhen, for doublechecking my

    updates).



    --- Alex on behalf of coauthors



    On 9/7/2020 7:06 AM, Reshad Rahman (rrahman) wrote:

    > <Here's the same message with hopefully more readable formatting>

    >

    > Review of rev -04 by Reshad Rahman

    >

    > The document is clear and well-written. While some issues have been identified, they can be resolved quickly.

    >

<snip>



    > Questions

    >    1.      YANG model: does the operation “delete” make sense for a diff operation? If it is kept, it’d be good to have some text explaining that for a diff operation, “delete” and “replace” are the same? If they’re not the same, please also add some text….

<RR> I actually meant "delete" and "remove".

    <ALEX> Here we are simply referring to the basic YANG-patch edit

    operations per https://tools.ietf.org/html/rfc8072#page-11.  Those are

    in turn derived from <edit-config> operations per

    https://tools.ietf.org/html/rfc6241#page-37.  I am not sure we need add

    to explain those, as we are directly referring to YANG-patch.



    </ALEX>

<RR> The operations are indeed well defined in RFC8072 (copied below), but they are defined from the perspective of YANG-Patch. So for YANG-Patch "delete" and "remove" are different operations, but from a diff comparison I believe they are the same (the resource must exist since it's being returned in a diff)



   +-----------+-----------------------------------------------------------------+

   | delete    | delete a data resource if it already exists; if it    |

   |                | does not exist, return an error                               |

   |                |                                                                                      |

   | remove | remove a data resource if it already exists           |

   +-----------+-----------------------------------------------------------------+



    >    3.      YANG model P9, for the “uses path:yang-patch”, why not have a  reference to RFC8072 (is it because the description above mentions RFC8072)?

    <ALEX> We are clearly referencing RFC 8072; are you suggesting to put a

    reference substatement below the uses statement?   It looks a little

    strange to me but sure, we will add it.

<RR> Not needed.



    >    4.      Section 7 mentions rate limiting requests per client. Should there be a “global” rate-limiting too, i.e not client-specific?



    <ALEX> I am not sure this is really needed as I think the number of

    management clients will in general be fairly limited to begin with, but

    we can certainly add it.  How about the following text:



    OLD:



    One possibility for an implementation to mitigate against such a

    possibility is to limit the number of requests that is served to a

    client in any one time interval, rejecting requests made at a higher

    frequency than the implementation can reasonably sustain.



    NEW:



    One possibility for an implementation to mitigate against such a

    possibility is to limit the number of requests that is served to a

    client, or to any number of clients, in any one time interval, rejecting

    requests made at a higher frequency than the implementation can

    reasonably sustain.

<RR> Good with me.



    </ALEX>



    >    5.      Wondering if section 8 should be in an Appendix (or even removed)? Also, the method suggested doesn’t seem to guarantee that the difference persisted for the “dampening” time.



    <ALEX> Personally, I do think it makes sense to include a brief

    discussion of possible further extensions.  I suggest to keep the

    section if it's okay with you, or perhaps leave it to the chair whether

    they have a preference to remove it.



    </ALEX>

<RR>Whatever the WG/chairs decide is fine with me.



Regards,

Reshad.