[netmod] AD review of draft-ietf-netmod-nmda-diff-07 (part 2)

"Rob Wilton (rwilton)" <rwilton@cisco.com> Mon, 02 November 2020 19:42 UTC

Return-Path: <rwilton@cisco.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 732493A0E3F; Mon, 2 Nov 2020 11:42:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.602
X-Spam-Level:
X-Spam-Status: No, score=-9.602 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, 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=bKO7FfU0; dkim=fail (1024-bit key) reason="fail (body has been altered)" header.d=cisco.onmicrosoft.com header.b=BfwQgapw
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 YEtgUEpNSqGy; Mon, 2 Nov 2020 11:42:18 -0800 (PST)
Received: from alln-iport-6.cisco.com (alln-iport-6.cisco.com [173.37.142.93]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6C3B43A0E29; Mon, 2 Nov 2020 11:42:18 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=16332; q=dns/txt; s=iport; t=1604346138; x=1605555738; h=from:to:subject:date:message-id:mime-version; bh=FxXa2K/crqskKZMByBW85RO7XFx5T1gbST6j7HI5xtA=; b=bKO7FfU0g3aWahsd7wpk8VXyLvJVVlYihE2RG7QezkkHZrtzqk596x9X xw3gVhCdSbGIOakoL4OWikn67qaC+ZmnioJXN79QU8HE7MAkOjtGBWD63 42Cvy8fGVvBEWlBIE43W7XbYeNx3irQ3wYqS5tQV6HFwMW1nvbINaTsDy g=;
IronPort-PHdr: =?us-ascii?q?9a23=3AyTJ4qB+DCBbfzv9uRHGN82YQeigqvan1NQcJ65?= =?us-ascii?q?0hzqhDabmn44+7ZRaN5PhxghnOR4qIo/5Hiu+DtafmVCRA5Juaq3kNfdRKUA?= =?us-ascii?q?NNksQZmQEsQavnQU32JfLndWo2ScJFUlI2/nynPw5SAsmtL1HXq2e5uDgVHB?= =?us-ascii?q?i3PAFpJ+PzT4jVicn/1+2795DJJQtSgz/oarJpJxLwpgLU5cQ=3D?=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0ChCAC6YKBf/4YNJK1YCoEJgU+BUiM?= =?us-ascii?q?uB4FJLy4Kh3wDjlSXe4FCgREDVAsBAQENAQEtAgQBAYRKAoIIAiU3Bg4CAwE?= =?us-ascii?q?BCwEBBQEBAQIBBgRxhWEMhgsuAQE4EQEaZhcPAQQBGgYNB4VQAy4BA6RXAoE?= =?us-ascii?q?7iGh0gTSDBAEBBYUyGIIJBwmBOIJyikgbgUE/gRFDghqEfAEHBAcBCRqDSII?= =?us-ascii?q?skEOKOSeBJppNgQwKgmyEUJZYgxiKEZRBk0qgPwIEAgQFAg4BAQWBaiQqPXB?= =?us-ascii?q?wFYMkUBcCDZIQilh0OAIGCgEBAwl8iwYCJgeBBgExXwEB?=
X-IronPort-AV: E=Sophos;i="5.77,445,1596499200"; d="scan'208";a="615034988"
Received: from alln-core-12.cisco.com ([173.36.13.134]) by alln-iport-6.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 02 Nov 2020 19:42:10 +0000
Received: from XCH-ALN-005.cisco.com (xch-aln-005.cisco.com [173.36.7.15]) by alln-core-12.cisco.com (8.15.2/8.15.2) with ESMTPS id 0A2Jg5tM016833 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Mon, 2 Nov 2020 19:42:09 GMT
Received: from xhs-rtp-003.cisco.com (64.101.210.230) by XCH-ALN-005.cisco.com (173.36.7.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 2 Nov 2020 13:42:06 -0600
Received: from xhs-aln-003.cisco.com (173.37.135.120) by xhs-rtp-003.cisco.com (64.101.210.230) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 2 Nov 2020 14:42:05 -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; Mon, 2 Nov 2020 13:42:04 -0600
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BF6X8N3rXx16drK+W57gsBA7LXlLZrT8V5nzUvt+CaTXTC00wBxW6Te3S7p2ndys7CR8z+XBuoSYgaVrH2yiHA+hQEIraKYXtnaCgqRdOMsQIcd5ynKjIXuM74NGBbeNfzhzB661+TZBf9GeHEpHtiS6aaMdtFnIJ0xh6UcELRuCKMjaIB7IDXIW/BwHhCuZy6eG2x3Ip1btaLiww5jd1fB8gS5yDhv2aeSDHOaHt2W4rJ8Lg9rwfPWRyMDnyhezwHqvDM/g7j0dfdCl/hmzUA15juSrKHY62MvS5s3awUhtf+6Zk4ga/ZHFB7+ww74+gEgQ9vPYbponCx9sEnOmlg==
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=1D5C1u7i75gGQUN5WIbzavSobYMWTeJimRWnzXyfo2A=; b=Gx2hPPIZuILhSALlOJgPtNWdoxb0rmyjfzQiQgx8sb0F/oyKb8roByBoSYwUvXVfuekux49mO7cWLdI/VbfVvvLVsFx8PAAFUsPT3kt2QJXd/0WcewiwFLbwccLq908l8AF8RFKBZ+HnQfe+nydxKQPGT0F2Mmc940EKNVT2z9YjGy1tF9uzUaoNk+4LtWHwAMfAFOJvcAtEwF1mDw5lYtT4owA9B/T1QRzT0bt81a4ckuAUfY2ErtK/ZRv2xLhc3ppGNsCs9xvrogjWidp7e7Ev/UhLz19Z2S8S4AeXuHMbor4luvQj0yB8cO6RhIu3jBkx6x6PsbBQYhrChU/S2w==
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=1D5C1u7i75gGQUN5WIbzavSobYMWTeJimRWnzXyfo2A=; b=BfwQgapwDFhdiCxUTYisRKArL9wLCVEO/pLjv5VsKlZuQWL8Ld8vIxf8XnTmIkok9Vjre6dYlxIWya6OVQDa2A3hEW6wXpgNNPGdy0qde/h9znI4pANVMjJ9mRloNJTQr505dLkUhDgucy01CJX1WhJIHGc0rGGWUxNh2+afoTA=
Received: from MN2PR11MB4366.namprd11.prod.outlook.com (2603:10b6:208:190::17) by MN2PR11MB4288.namprd11.prod.outlook.com (2603:10b6:208:18c::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.27; Mon, 2 Nov 2020 19:42:03 +0000
Received: from MN2PR11MB4366.namprd11.prod.outlook.com ([fe80::d84a:115:9ce0:8241]) by MN2PR11MB4366.namprd11.prod.outlook.com ([fe80::d84a:115:9ce0:8241%4]) with mapi id 15.20.3499.030; Mon, 2 Nov 2020 19:42:03 +0000
From: "Rob Wilton (rwilton)" <rwilton@cisco.com>
To: "draft-ietf-netmod-nmda-diff.all@ietf.org" <draft-ietf-netmod-nmda-diff.all@ietf.org>, "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: AD review of draft-ietf-netmod-nmda-diff-07 (part 2)
Thread-Index: AdaxT88qw47OrS+/T5CYSs6a4wlYVA==
Date: Mon, 2 Nov 2020 19:42:02 +0000
Message-ID: <MN2PR11MB4366E57606D1F201F16F0033B5100@MN2PR11MB4366.namprd11.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
authentication-results: ietf.org; dkim=none (message not signed) header.d=none;ietf.org; dmarc=none action=none header.from=cisco.com;
x-originating-ip: [82.12.233.180]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 8d330ce2-3aad-43ff-3e32-08d87f675f54
x-ms-traffictypediagnostic: MN2PR11MB4288:
x-microsoft-antispam-prvs: <MN2PR11MB4288867EE0EAC44420394E67B5100@MN2PR11MB4288.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: TW04eOl3JUxgQ6lLFB3IG4ljHXrdZgvr4gSzA52PTOD62mFP2QuVoa52w/7DF8i7lmOyemUTN5hs/HMK7C9JB9b2awkZewvTy6RRO/ASMaVTH/4rp2K4uz2YJ6M5SVizc/tLmYuTpti9l5CPp6zs/8/M5iNmdVRdYA2OYO7vCk4GOXfVylqhzl5lxyCy3/G0IQOCvrzznHUPxjg+OBW02X6Ls0z2XopJp1dEyx/4zw6kpQ62nai9tHk27LXsNvInbGjU70q27omlYhP2hDR9hd032qFbcB1kFttfX5ZEkwKGIO2vnuIWO2QwFR4oubBs
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR11MB4366.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(39860400002)(136003)(346002)(396003)(376002)(366004)(316002)(6506007)(99936003)(8676002)(478600001)(26005)(2906002)(450100002)(186003)(52536014)(5660300002)(9686003)(76116006)(86362001)(66616009)(66476007)(64756008)(66556008)(66946007)(66446008)(71200400001)(110136005)(83380400001)(55016002)(7696005)(8936002)(33656002); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: 77yJ0OCQ5eRRFVtsWzLcWjZEM4pqERUcNd9TOL/rDcbK+mQaSfh+6DmzeOvOGhDUFZuqIEXSV5dpIcwfmONGpULpaYyNfzIv2bRHE6Au+CN0tL0l0c+UOpujOXuNrm1o6Nhy0oKevMMfnBBgyJEHekiC74HqxF0+R0JdXkyLJfLGJjULgpHXM67eT2GMRrEbdDTKCLKi+lLHtFzLWaPf64JSuiLwerLKrSfiMfHkGeZ3Yyt8u1Ufw5pDD0rilpoI27EKfW38wN/w3nddJICsrCJHqRlAxi+Lk6LrDMed/NUufEgZqGVG2JW1Uc026jYOTpt1VyzQ2RuVAERxuoPKDSHIzvfLzMb52SqEz01Xs12sCGrO5zpit+3Wb4WjO541F1ycgxNcH01g92GrX4xH7z1D9xVcGJxV4rwup5WYIKwmHhT3M1CJK/jlLoFRzWlDniYhF2w0S9bV9Mix/ryEZ8tWarcamGY9XCxaqSsSDKvbIRxjIWFCNoRTrCS7WIwqEPRZrL6bvNztXkx2jMzY8fB0k7cqxyE+SljO9kRIt3DjEqaZD6k7CPQVsttHQOOpHYeuyqY7nh+0sAl6kdWlxAdb+IeqbCjDEZnvFo6uwLwKHgz84XYoIl/0xOFlh6/eptl512E+jLeFwFmIhIpGJg==
x-ms-exchange-transport-forked: True
Content-Type: multipart/mixed; boundary="_002_MN2PR11MB4366E57606D1F201F16F0033B5100MN2PR11MB4366namp_"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: MN2PR11MB4366.namprd11.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 8d330ce2-3aad-43ff-3e32-08d87f675f54
X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Nov 2020 19:42:02.9221 (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: MaT72MwMKfyf8WecOgn71SEkDjpwLA3uwavEga2fN9Z2/zLVQN8IAqXKumMMQErnDyiRrOSYyJ+ZhXUvmc3Jtw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4288
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.36.7.15, xch-aln-005.cisco.com
X-Outbound-Node: alln-core-12.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/-zeI2CgFbNVoP4LIwya8VXP0e8M>
Subject: [netmod] AD review of draft-ietf-netmod-nmda-diff-07 (part 2)
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, 02 Nov 2020 19:42:24 -0000

Part 2, unfortunately my original email (attached) was truncated somewhere along the way ...

The remainder of my comments are:


Suggest adding an example ", e.g., <operational>."

       o  filter-spec: This is a choice between different filter constructs
          to identify the portions of the datastore to be retrieved.  It
          acts as a node selector that specifies which data nodes are within
          the scope of the comparison and which nodes are outside the scope.
          This allows a comparison operation to be applied only to a
          specific portion of the datastore that is of interest, such as a
          particular subtree.  (The filter dow not contain expressions that
          would match values data nodes, as this is not required by most use
          cases and would complicate the scheme, from implementation to
          dealing with race conditions.)
          
Perhaps "parts/part" rather than "portions/portion".

Suggest rewording the last sentence to:

    Note, the filter does not allow expressions that match against data node values since that may incur implementation difficulties and is not required for normal use cases.


       o  ...  When the target datastore is <operational>, "origin"
          metadata is included as part of the patch.  Including origin
          metadata can help in some cases explain the cause of a difference,
          for example when a data node is part of <intended> but the origin
          of the same data node in <operational> is reported as "system".

I think that this test needs to refer back to the 'exclude-origin' or 'report-origin' options since the origin metadata isn't always included.



    5.  YANG Data Model

        The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL', 'SHALL
        NOT', 'SHOULD', 'SHOULD NOT', 'RECOMMENDED', 'NOT RECOMMENDED',
        'MAY', and 'OPTIONAL' in this document are to be interpreted as
        described in BCP 14 (RFC 2119) (RFC 8174) when, and only when,
        they appear in all capitals, as shown here.
        
I couldn't see that RFC 2119 language is actually used in the YANG module, so perhaps this can be deleted?

         rpc compare {
           description
             "NMDA compare operation.";

Perhaps "NMDA datastore compare operation."

                 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.";
                      
I'm not convinced how useful the when statement really is in this case, since 'source-value' isn't marked as mandatory, a server is allowed to omit it when it doesn't apply anyway.

    6.  Example

       <operational> does not contain object "description" that is contained
       in <intended>.  Another object, "enabled", has differences in values,
       being "true" in <operational> and "false" in <intended>.  A third
       object, "name", is the same in both cases.  The origin of the objects
       in <operational> is "learned", which may help explain the
       discrepancies.

I think that we should probably refrain from calling them objects, perhaps "leaf instance" would be better?  Rather than "differences in values", perhaps "different values".

E.g.,

       <operational> does not contain an instance for leaf "description" that
       is contained in <intended>.  Another leaf, "enabled", has different
       values in the two datastores, being "true" in <operational> and
       "false" in <intended>.  A third leaf, "name", has the same instance
       value in both datastores.  The origin of the leaf instances in
       <operational> is "learned", which may help explain the discrepancies.

   //OPERATIONAL
   <interfaces
       xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"
       xmlns:or="urn:ietf:params:xml:ns:yang:ietf-origin">
     <interface or:origin="or:learned">
       <name>eth0</name>
       <enabled>true</enabled>

       </interface>
   </interfaces>

There is an extra line, and dodgy indentation for "</interface>".

Nits:

"possibly for" => "possible for"
"reference for the" => "the reference data tree for the"
"is basis" => "is the basis"

Thanks,
Rob
--- Begin Message ---
Hi,

Here is my AD review for draft-ietf-netmod-nmda-diff-07.  Apologies for the delay.

Thank you for writing this document, I think that it is useful, and looks like it is in good shape.


Main comments:

1. Should there be any text about how to find out what datastores are supported by a device?  E.g., pointing them to either YANG library, or protocol specific mechanisms in the case of RESTCONF.

2. It might be helpful to add a comment about potential issues that could arise by comparing <running> to <operational>, i.e., additional differences could be reported due to inactive configuration and template processing between <running> and <operational>.

3. I would prefer if 'exclude=origin' was in the reverse sense and perhaps called 'report-origin' instead.  With the reverse sense it seems to be safer if new datastores are defined, where otherwise the behaviour could end being under specified.

4. Should there be an option to filter on origin metadata?  E.g., only include values that come from intended.  Otherwise, things like IP addresses learned from DHCP may always turn up as differences.

5. I'm not that keen on the "Possible Future Extensions" section of an RFC.  Personally, I would prefer that this section is deleted, but if you wish to retain it, then please can you move it to an appendix.


I've also included some minor comments inline below, and some nits at the end:

    Abstract

       This document defines an RPC operation to compare management
       datastores that comply with the NMDA architecture.

The abstract is perhaps somewhat terse.  Perhaps:

    This document defines a YANG RPC operation to compare the
    contents of network management datastores that comply with
    the NMDA architecture and return the differences in the
    YANG-Patch format.


    1.  Introduction

       The revised Network Management Datastore Architecture (NMDA)
       [RFC8342] introduces a set of new datastores that each hold YANG-
       defined data [RFC7950] and represent a different "viewpoint" on the
       data that is maintained by a server.  New YANG datastores that are
       introduced include <intended>, which contains validated configuration
       data that a client application intends to be in effect, and
       <operational>, which contains at least conceptually operational state
       data (such as statistics) as well as configuration data that is
       actually in effect.

I would suggest deleting "at least conceptually", since the <operational>
datastore does contain all operational state, but it may be implemented as a virtual construct that spans multiple nodes (e.g., linecards) and processes.


       NMDA introduces in effect a concept of "lifecycle" for management
       data, allowing to clearly distinguish between data that is part of a
       configuration that was supplied by a user, configuration data that
       has actually been successfully applied and that is part of the
       operational state, and overall operational state that includes both
       applied configuration data as well as status and statistics.

"allowing to clearly distinguish" => distinguishing"
"status and statistics" => "status information and statistics"


       As a result, data from the same management model can be reflected in
       multiple datastores.  Clients need to specify the target datastore to
       be specific about which viewpoint of the data they want to access.
       This way, an application can differentiate whether they are (for
       example) interested in the configuration that has been applied and is
       actually in effect, or in the configuration that was supplied by a
       client and that is supposed to be in effect.

Perhaps reword the last sentence to match the logical data flow in the server:

   For example, a client application can differentiate whether they are
   interested in the configuration supplied to a server and that is
   supposed to be in effect, or the configuration that has been applied and is
   actually in effect on the server.


       When configuration that is in effect is different from configuration
       that was applied, many issues can result.  It becomes more difficult
       to operate the network properly due to limited visibility of actual
       status which makes it more difficult to analyze and understand what
       is going on in the network.  Services may be negatively affected (for
       example, breaking a service instance resulting in service is not
       properly delivered to a customer) and network resources be
       misallocated.

Perhaps change "actual status" to "actual operational status".

I also suggest changing the last sentence to:

    Services may be negatively affected (e.g., degrading or breaking a customer service) or network resources may be misallocated.


        3. Definitions:

It should probably define that <intended>, <operational>, (and perhaps <running>) are used to indicate names of datastores.

It should also explain that <compare> is used as the name of a YANG RPC.


    4.  Data Model Overview

       At the core of the solution is a new management operation, <compare>,
       that allows to compare two datastores for the same data.

Suggest rewording this first sentence to:

  The core of the solution is a new management operation, <compare>,
  that compares the data tree contents of two datastores.

       o  target: The target identifies the datastore to compare against the
          source.

Suggest adding an example ", e.g., <operational>."

       o  filter-spec: This is a choice between different filter constructs
          to identify the portions of the datastore to be retrieved.  It
          acts as a node selector that specifies which data nodes are within
          the scope of the comparison and which nodes are outside the scope.
          This allows a comparison operation to be applied only to a
          specific portion of the datastore that is of interest, such as a
          particular subtree.  (The filter dow not contain expressions that
          would match values data nodes, as this is not required by most use
          cases and would complicate the scheme, from implementation to
          dealing with race conditions.)

Perhaps "parts/part" rather than "portions/portion".

Suggest rewording the last sentence to:

    Note, the filter does not allow expressions that match against data node values since that may incur implementation difficulties and is not required for normal use cases.


       o  ...  When the target datastore is <operational>, "origin"
          metadata is included as part of the patch.  Including origin
          metadata can help in some cases explain the cause of a difference,
          for example when a data node is part of <intended> but the origin
          of the same data node in <operational> is reported as "system".

I think that this test needs to refer back to the 'exclude-origin' or 'report-origin' options since the origin metadata isn't always included.



    5.  YANG Data Model

        The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL', 'SHALL
        NOT', 'SHOULD', 'SHOULD NOT', 'RECOMMENDED', 'NOT RECOMMENDED',
        'MAY', and 'OPTIONAL' in this document are to be interpreted as
        described in BCP 14 (RFC 2119) (RFC 8174) when, and only when,
        they appear in all capitals, as shown here.

I couldn't see that RFC 2119 language is actually used in the YANG module, so perhaps this can be deleted?

         rpc compare {
           description
             "NMDA compare operation.";

Perhaps "NMDA datastore compare operation."

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

I'm not convinced how useful the when statement really is in this case, since 'source-value' isn't marked as mandatory, a server is allowed to omit it when it doesn't apply anyway.

    6.  Example

       <operational> does not contain object "description" that is contained
       in <intended>.  Another object, "enabled", has differences in values,
       being "true" in <operational> and "false" in <intended>.  A third
       object, "name", is the same in both cases.  The origin of the objects
       in <operational> is "learned", which may help explain the
       discrepancies.

I think that we should probably refrain from calling them objects, perhaps "leaf instance" would be better?  Rather than "differences in values", perhaps "different values".

E.g.,

       <operational> does not contain an instance for leaf "description" that
       is contained in <intended>.  Another leaf, "enabled", has different
       values in the two datastores, being "true" in <operational> and
       "false" in <intended>.  A third leaf, "name", has the same instance
       value in both datastores.  The origin of the leaf instances in
       <operational> is "learned", which may help explain the discrepancies.

   //OPERATIONAL
   <interfaces
       xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"
       xmlns:or="urn:ietf:params:xml:ns:yang:ietf-origin">
     <interface or:origin="or:learned">
       <name>eth0</name>
       <enabled>true</enabled>

       </interface>
   </interfaces>

There is an extra line, and dodgy indentation for "</interface>".

Nits:

"possibly for" => "possible for"
"reference for the" => "the reference data tree for the"
"is basis" => "is the basis"

Thanks,
Rob
--- End Message ---