Re: [netconf] New Version Notification - draft-ietf-netconf-notification-capabilities-09.txt

"Reshad Rahman (rrahman)" <rrahman@cisco.com> Fri, 24 January 2020 21:31 UTC

Return-Path: <rrahman@cisco.com>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 531B91209AC for <netconf@ietfa.amsl.com>; Fri, 24 Jan 2020 13:31:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.5
X-Spam-Level:
X-Spam-Status: No, score=-14.5 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com header.b=ElkeXUS5; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=n4zngKxf
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 ep9cFo0YvZJL for <netconf@ietfa.amsl.com>; Fri, 24 Jan 2020 13:31:53 -0800 (PST)
Received: from alln-iport-4.cisco.com (alln-iport-4.cisco.com [173.37.142.91]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2FBC8120884 for <netconf@ietf.org>; Fri, 24 Jan 2020 13:31:53 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=27793; q=dns/txt; s=iport; t=1579901513; x=1581111113; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=78mzCN+qhR8tIbbVj7W4sLQozA8UeJRiuk8nGpXEjEY=; b=ElkeXUS54YURF8LZAroWuuOdT2aEaYKW7PvJcOU3r/cv7mB0Rufm7o/z BPbUCnPMVYDorGcdYOagr01KM2nYlisBI5jWaVzdqDmhiM0WKQKB2U29V Fy09p7gAgW+uu9wEsy62D++QmldW4rFkTNu0ATcZYaNqGjwU0dkWG777l c=;
IronPort-PHdr: 9a23:NQV1ZBf0j3t19B8t76yicwFFlGMj4e+mNxMJ6pchl7NFe7ii+JKnJkHE+PFxlwGRD57D5adCjOzb++D7VGoM7IzJkUhKcYcEFnpnwd4TgxRmBceEDUPhK/u/dTYzHMFLUndu/mqwNg5eH8OtL1A=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0C6AAB7YSte/5pdJa1lGgEBAQEBAQEBAQMBAQEBEQEBAQICAQEBAYF7gSUvJCwFbFggBAsqhBODRgOLEYI6JZgPglIDVAkBAQEMAQEtAgEBhEACF4ILJDgTAgMNAQEEAQEBAgEFBG2FNwyFXgEBAQEDEhEdAQE1AgEPAgEIEQMBAQEoAwICAjAUCQgCBAENBRkJgwQBgX1NAy4BomACgTmIYXWBMoJ/AQEFhRgYggwJgTiMFxqBQT+BOAwUgkw+gmQEggEWgloygiyQVYVeJIlRjzQKgjmNBokxG5p8jmCbDQIEAgQFAg4BAQWBaSIqgS5wFTsqAYJBUBgNiAE4gzuKU3QCAYEmjA8BAQ
X-IronPort-AV: E=Sophos;i="5.70,358,1574121600"; d="scan'208,217";a="412936011"
Received: from rcdn-core-3.cisco.com ([173.37.93.154]) by alln-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 24 Jan 2020 21:31:51 +0000
Received: from XCH-ALN-010.cisco.com (xch-aln-010.cisco.com [173.36.7.20]) by rcdn-core-3.cisco.com (8.15.2/8.15.2) with ESMTPS id 00OLVpnl004383 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Fri, 24 Jan 2020 21:31:51 GMT
Received: from xhs-rcd-002.cisco.com (173.37.227.247) by XCH-ALN-010.cisco.com (173.36.7.20) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 24 Jan 2020 15:31:50 -0600
Received: from xhs-aln-001.cisco.com (173.37.135.118) by xhs-rcd-002.cisco.com (173.37.227.247) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 24 Jan 2020 15:31:49 -0600
Received: from NAM04-SN1-obe.outbound.protection.outlook.com (173.37.151.57) by xhs-aln-001.cisco.com (173.37.135.118) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Fri, 24 Jan 2020 15:31:49 -0600
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NnprIkCh721kuLDG70GUcdjeNOXHWEnFEwGGAI7jSsJlimlqpCKTDv6CV+wmwAiOgdKmlzYtDdlNKmf1x+lwotUF6niIX3gcaBusMqlCXtmum7mobUB+Z2le4fp9Et2+PwgumD2ExKvIvi+IMppI03z8mQ5Rqonq+FJV06pNFk8GWT+bviBD423RXZgp8S6AD2ODkGKq3sngtDncWW1VXrbB9Qwe8bw4wdhk7syb2U1Z27YnvFvdsPCrj0l+q3f3pFVek1jd/xZ76+wXoOXBGt9xJgGy4mDDXZjGPjwJcqAQzKEp7Mc8ltTfy1C2IJKXcWbjKzgim5zatrICEISZRg==
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=78mzCN+qhR8tIbbVj7W4sLQozA8UeJRiuk8nGpXEjEY=; b=V8yumZXQ3tw309E/w/6L95idEisg11bWJ3TwWliy8v04Ff/WF5X93aC+oLw5n/H7pTXfClWUFHDJkNI7QO+6twSruukJr0GkVKqs0ZOo0ebSprn4CIiEMC0xF66HSQocVjb7WCW5SoLykXiv+nevWQlA7AJlr/7bxipI2GR7FtilnAUObABJ7i4zrzAI9c6fxVcBTV9fp7xl0GDS3WzFyB/Eh4zF4mSVg99BH5nbMKtMVPNvp0K1h+ReUzQDSymt0NS2RmTQe07ZgBcbvfEcchqPavNxJ29syQginSzCdLMkmazZG/j2ISIQADVWYtoGTeQHuxEC/euTWIKecAhVlg==
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=78mzCN+qhR8tIbbVj7W4sLQozA8UeJRiuk8nGpXEjEY=; b=n4zngKxfYgwz2pGDmgryWGUKbWnebl4y6OQ7lyLIL43Dtnr0xqSPfVJ0dvvdmLSGmwyD/TgovjVyn/1Pb2/zOO0KM1AfBGflKZnLLttOg9Van6dJ4Ey1ZifVH098ymEziL3IxleKoDmUynFs8koAz3RbBDXDvaKtlszi1sgeQ2U=
Received: from DM5PR11MB1355.namprd11.prod.outlook.com (10.168.103.145) by DM5PR11MB1452.namprd11.prod.outlook.com (10.172.36.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2665.20; Fri, 24 Jan 2020 21:31:48 +0000
Received: from DM5PR11MB1355.namprd11.prod.outlook.com ([fe80::3d45:700d:3f44:243]) by DM5PR11MB1355.namprd11.prod.outlook.com ([fe80::3d45:700d:3f44:243%6]) with mapi id 15.20.2665.017; Fri, 24 Jan 2020 21:31:48 +0000
From: "Reshad Rahman (rrahman)" <rrahman@cisco.com>
To: "Rob Wilton (rwilton)" <rwilton@cisco.com>, Balázs Lengyel <balazs.lengyel=40ericsson.com@dmarc.ietf.org>, Kent Watsen <kent+ietf@watsen.net>
CC: "netconf@ietf.org" <netconf@ietf.org>
Thread-Topic: [netconf] New Version Notification - draft-ietf-netconf-notification-capabilities-09.txt
Thread-Index: AQHVxVsT75iyiSEfckqVICMZWQcw1KffZvCAgACw5YCAANxNAIADGDWAgAAJEoCABgLMgIAK/R8AgAHEbwCAA0L5gA==
Date: Fri, 24 Jan 2020 21:31:28 +0000
Message-ID: <84FD378C-CF5A-4F0F-9911-8FE9A385095B@cisco.com>
References: <157838571918.20942.9897465405126184637.idtracker@ietfa.amsl.com> <0100016f801b8360-00636b39-8317-4e78-a233-dba17073fc39-000000@email.amazonses.com> <MN2PR11MB4366A782F85B41B42CE593B6B53F0@MN2PR11MB4366.namprd11.prod.outlook.com> <0100016f83226d35-4c825571-7fe8-4074-8f6c-d9994e2ed37a-000000@email.amazonses.com> <VI1PR07MB40473B7B0406D4B93E3BC76DF03E0@VI1PR07MB4047.eurprd07.prod.outlook.com> <0100016f901833d0-c822306b-9f2f-4c7b-9444-34742ec35a53-000000@email.amazonses.com> <MN2PR11MB43663A607C6739B6B2501C70B5380@MN2PR11MB4366.namprd11.prod.outlook.com> <VI1PR07MB40472F455C5A431E5DB39F6BF0340@VI1PR07MB4047.eurprd07.prod.outlook.com> <58F397A3-9E37-4E61-BDEE-C0DAA61B6A3B@cisco.com> <MN2PR11MB436687635084B38EC8E579EEB50C0@MN2PR11MB4366.namprd11.prod.outlook.com>
In-Reply-To: <MN2PR11MB436687635084B38EC8E579EEB50C0@MN2PR11MB4366.namprd11.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/10.21.0.200113
authentication-results: spf=none (sender IP is ) smtp.mailfrom=rrahman@cisco.com;
x-originating-ip: [2001:420:c0c4:1008::491]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 50640adf-3095-4e32-fecc-08d7a114d192
x-ms-traffictypediagnostic: DM5PR11MB1452:
x-ms-exchange-transport-forked: True
x-microsoft-antispam-prvs: <DM5PR11MB14525C4FC60599DC11E3A636AB0E0@DM5PR11MB1452.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 02929ECF07
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(396003)(39860400002)(376002)(136003)(366004)(346002)(189003)(199004)(53546011)(33656002)(6506007)(2906002)(2616005)(36756003)(478600001)(8936002)(81166006)(8676002)(6666004)(86362001)(81156014)(5660300002)(4326008)(66476007)(316002)(110136005)(76116006)(64756008)(66946007)(66446008)(66574012)(66556008)(91956017)(186003)(6486002)(6512007)(71200400001)(15650500001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR11MB1452; H:DM5PR11MB1355.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: cisco.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: EnH/oSQ2KKwN96kIfgD2WngEvYLN8BfawdEBPWk2crG5//wanYpzMn56s0CyLBmA37v0k1qbIkJAQb70aR1C8vMONYhYr6IrL3IO/mUUxdNViXl9b+wudocabswqvmdjpq4y9tPq7TTQxFM5JGSONtZ7UVtDst2QE1qfvovAI3kNjZykZNq9mu81t3HAUn80aNv5XDDcGTTZPMOdWA1x69nq2fZnONkHl7pn9eBHO3L3uOyO5H6RV7bp1T8AjolpQb7gaTEsnfqzj4zUx9DkpdhKkvmBXdVnt/QeRINOlWItj47TZ9RICQZjDOnjj24V8hQVw2Jwzk5huam19hAfCa51STLil1LLgTLF3i3Aej25INaAchjQgJ+1699nNMPwz4Uj3BYOVpWjT3oUE+9kzQscK+NC+AN+J/ktYxpVDqtVvtqH+ssQGzX94XVptn7u
x-ms-exchange-antispam-messagedata: uPGEoqqeaAc9yYeRoGe1dfeOxVQrHYuyvYnZuiWfRLrmYMTlSJIjGcItPxEFqGNk5Za2n9DKuRT/qNuBlfL2YB8wX0qvhd7gp/OZmqyzkSU28JtrBlamZNfqaGgQlsc0mvyKAY9f9PXs5LHMCYujC9YuR5sHNVdpd0f1gVbqVJ8=
Content-Type: multipart/alternative; boundary="_000_84FD378CCF5A4F0F99118FE9A385095Bciscocom_"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 50640adf-3095-4e32-fecc-08d7a114d192
X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jan 2020 21:31:28.9986 (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: tJ7Zriz37a0Zq1MWRguEns+yGiK9g59ZhK7nU7s3FjOlJCplupPaJL+veHpGV8KXc6yNf4K+Ab+Id5GFv4eDLg==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR11MB1452
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.36.7.20, xch-aln-010.cisco.com
X-Outbound-Node: rcdn-core-3.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/i7JDbL6z1enf_5vy5M9uqjDGN0Q>
Subject: Re: [netconf] New Version Notification - draft-ietf-netconf-notification-capabilities-09.txt
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETCONF WG list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 24 Jan 2020 21:31:55 -0000

Hi Rob and Balazs,

I agree that the previous mechanism was error prone in that different client implementations could come to different results depending on their interpretation/implementation of the criteria below.

It is a moot point now, but I believe the criteria should have been best-match and not longest-match. Now the publisher can be more explicit about this.

Regards,
Reshad.

From: "Rob Wilton (rwilton)" <rwilton@cisco.com>
Date: Wednesday, January 22, 2020 at 9:42 AM
To: "Reshad Rahman (rrahman)" <rrahman@cisco.com>, Balázs Lengyel <balazs.lengyel=40ericsson.com@dmarc.ietf.org>, Kent Watsen <kent+ietf@watsen.net>
Cc: "netconf@ietf.org" <netconf@ietf.org>
Subject: RE: [netconf] New Version Notification - draft-ietf-netconf-notification-capabilities-09.txt

Hi Reshad,

In rev-9, in the YANG module description, there is a hierarchy of which capabilities apply, basically the longest match wins:

      If a capability is specified on multiple levels, the
      specification on a more specific level overrides more
      generic capability specifications; thus
      - a system level specification is overridden by any
      other specification
      - a datastore level specification (with a node-selector '/') is
      overridden by a specification with a more specific node-selector.
      - a specification for a specific datastore and node-selector
      is overridden by a specification for the same datastore with
      a node-selector that describes more levels of containing lists
      and containers.
      It is not allowed to have multiple node selectors which
      - are defined for the same datastore AND
      - have the same number of containment levels AND
      - select an overlapping set of nodes.

But as soon as you allow more complex specifications (e.g. perhaps Xpath to select the set of nodes that a capability applies to) then working out which entry is the longest match is very hard, if not impossible.  Hence moving to an ordered list (as per the -10 draft) ensures that the capabilities are always deterministic.

Thanks,
Rob


From: Reshad Rahman (rrahman) <rrahman@cisco.com>
Sent: 21 January 2020 16:44
To: Balázs Lengyel <balazs.lengyel=40ericsson.com@dmarc.ietf.org>; Rob Wilton (rwilton) <rwilton@cisco.com>; Kent Watsen <kent+ietf@watsen.net>
Cc: netconf@ietf.org
Subject: Re: [netconf] New Version Notification - draft-ietf-netconf-notification-capabilities-09.txt

Hi,

Regarding the change below (which was added in rev-10) to match by order, was this done just to make life easier for the client (the publisher is deciding what’s the best match) or is there another motivation? I think this is a good change, but curious as to the reason.

Regards,
Reshad.

From: netconf <netconf-bounces@ietf.org> on behalf of Balázs Lengyel <balazs.lengyel=40ericsson.com@dmarc.ietf.org>
Date: Tuesday, January 14, 2020 at 6:55 AM
To: "Rob Wilton (rwilton)" <rwilton@cisco.com>, Kent Watsen <kent+ietf@watsen.net>
Cc: "netconf@ietf.org" <netconf@ietf.org>
Subject: Re: [netconf] New Version Notification - draft-ietf-netconf-notification-capabilities-09.txt

OK. For both.
Regards Balazs

From: Rob Wilton (rwilton) <rwilton@cisco.com>
Sent: 2020. január 10., péntek 17:08
To: Kent Watsen <kent+ietf@watsen.net>; Balázs Lengyel <balazs.lengyel@ericsson.com>
Cc: netconf@ietf.org
Subject: RE: [netconf] New Version Notification - draft-ietf-netconf-notification-capabilities-09.txt

Hi Kent, Balazs,

Yes, I think that this would work, but might also need to change the rule from matching the capabilities from the longest node path, to the order that the entries are in the list.  E.g. the capabilities are decided by the first entry in the list that matches the given path.  The existing longest node path behaviour can effectively be implemented by ordering the more specific node paths before the less specific node paths.

Would that be acceptable?

I would also suggest giving the choice and the leaf a separate name below.

Thanks,
Rob


From: Kent Watsen <kent+ietf@watsen.net<mailto:kent+ietf@watsen.net>>
Sent: 10 January 2020 15:35
To: Balázs Lengyel <balazs.lengyel@ericsson.com<mailto:balazs.lengyel@ericsson.com>>
Cc: Rob Wilton (rwilton) <rwilton@cisco.com<mailto:rwilton@cisco.com>>; netconf@ietf.org<mailto:netconf@ietf.org>
Subject: Re: [netconf] New Version Notification - draft-ietf-netconf-notification-capabilities-09.txt


Hi Balazs,




Would the following be acceptable?
OLD:
     list per-node-capabilities {
       key "node-selector";
       leaf node-selector {
         type nacm:node-instance-identifier;
NEW:
     list per-node-capabilities {
       choice node-selector {
             leaf node-selector {   type nacm:node-instance-identifier;  }
     }

Later you can augment in an Xpath filter or a string with '*' and '?' wildcards or whatever you want.
(The list does not need a key as it is config=false)


Yes, this is inline with what I had in mind but, since this was my suggestion, I was hoping that Rob or others would reply.

Kent // contributor