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

"Rob Wilton (rwilton)" <rwilton@cisco.com> Wed, 22 January 2020 14:43 UTC

Return-Path: <rwilton@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 57AEA1200F6 for <netconf@ietfa.amsl.com>; Wed, 22 Jan 2020 06:43:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.498
X-Spam-Level:
X-Spam-Status: No, score=-14.498 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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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=iVp9hLcW; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=OszUWiyV
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 pE9u4uFu5IiV for <netconf@ietfa.amsl.com>; Wed, 22 Jan 2020 06:43:02 -0800 (PST)
Received: from rcdn-iport-6.cisco.com (rcdn-iport-6.cisco.com [173.37.86.77]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 914C91200F3 for <netconf@ietf.org>; Wed, 22 Jan 2020 06:43:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=28188; q=dns/txt; s=iport; t=1579704182; x=1580913782; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=bVasJiENGn7PLIuWeol/5jnX+TSjQu94aiqygHim5lg=; b=iVp9hLcWOIqIIddDd42ObwKM31VhqocbqoOzWKtreaghF48opMTS4zwM QgjomRBM7zaa6QwGXOyuxWyt8mRrC7XTKjDUxLJkxm9+ymp7saYEQilXn U1dHdLuH1FgOiCKIxiKKPIQpfqbwGLtONig940rsMkem0CF9xGk8plJjT Q=;
IronPort-PHdr: 9a23:v0zXZRbWx+D9duZ6rDAjstn/LSx94ef9IxIV55w7irlHbqWk+dH4MVfC4el20gebRp3VvvRDjeee87vtX2AN+96giDgDa9QNMn1NksAKh0olCc+BB1f8KavwcC0+AMNEfFRk5Hq8d0NSHZW2ag==
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0CyAACjXihe/5RdJa1lGgEBAQEBAQEBAQMBAQEBEQEBAQICAQEBAYF7gSUvJCwFbFggBAsqCoQIg0YDiwiCX5gOglIDVAkBAQEMAQEtAgEBhEACF4IDJDgTAgMNAQEEAQEBAgEFBG2FNwyFXgEBAQEDEhEKEwEBNQIBDwIBCBEDAQEBIQcDAgICMBQJCAIEAQ0FCBEJgwWBfU0DLgECo2cCgTmIYXWBMoJ/AQEFhQoYggwJgTiMFhqBQT+BWIJMPoJkBIFjHhaCWjKCLJBVhVwkiU+PMgqCOY0CiUyad45emwgCBAIEBQIOAQEFgWkiKoEucBU7gmxQGA2IATiDO4pTdAIBgSaLOAGBDwEB
X-IronPort-AV: E=Sophos;i="5.70,350,1574121600"; d="scan'208,217";a="707882203"
Received: from rcdn-core-12.cisco.com ([173.37.93.148]) by rcdn-iport-6.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 22 Jan 2020 14:43:01 +0000
Received: from XCH-ALN-008.cisco.com (xch-aln-008.cisco.com [173.36.7.18]) by rcdn-core-12.cisco.com (8.15.2/8.15.2) with ESMTPS id 00MEh0gX010917 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Wed, 22 Jan 2020 14:43:01 GMT
Received: from xhs-aln-003.cisco.com (173.37.135.120) by XCH-ALN-008.cisco.com (173.36.7.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 22 Jan 2020 08:43:00 -0600
Received: from xhs-aln-002.cisco.com (173.37.135.119) by xhs-aln-003.cisco.com (173.37.135.120) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 22 Jan 2020 08:42:59 -0600
Received: from NAM12-BN8-obe.outbound.protection.outlook.com (173.37.151.57) by xhs-aln-002.cisco.com (173.37.135.119) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Wed, 22 Jan 2020 08:42:59 -0600
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WB1GL8hXBO8t8tcsH98TJ7VPE8kUnHD3IAJCLZAJRwPlFX5PRjjujgNHTMVhjDHGDR1yLg6904QCK2JOM8LNnsMAHViI2v0UcYwAwADV8fPoJxsvWQAsCH3z+NR4i/Cioqaid9TSlX5paDXbh+1Yo4wCbOD9Kw424RVlgATuDXfNAdVdvQOsRzncLYfqCplop3DS0Vn+fcQDX9yWrmcvtNfwFjfHBYiW1PO7L1UE1Ump9MKD0hu/RC0rg+7d4MAEu8zfWMyw5cn8NeRj971aJwPwOdLWBdmuL1Z3mdqGQz7LWj/NuMmT/cTtqtIG60SfjkzYNQuUnRnPTGzQ8wd9ew==
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=bVasJiENGn7PLIuWeol/5jnX+TSjQu94aiqygHim5lg=; b=f8hZsn3RX57TBj78W8iYxUcWmtPcZmX2IKFq2/yObhFgkDy1Cgwudt9CWl3pw3mxINlEUiabNQ4MatCgV7eMaoOzVbUDi5+1X5fML9tALeq7/8rLKyTduJs6Vv+uvoaoMGUGEDsDnOj0k7GTFLALYyaX1HZOcrLc5AZWWlUDF5zPLWZRJZN5dtjsvY/fjXqOlF4RP8IUGnWbBr4X2u/w/Rzk7I8wyaLGO1yRmMtexLritG7LihwyUqa3myaG6lNKNNm92/tCR886rldzDVwQlpQYj7cen1znvrVVMgSupesvdHzpHQ5xNqs932kUMdD7CGrJHvMQMVBAlERwsKcjHQ==
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=bVasJiENGn7PLIuWeol/5jnX+TSjQu94aiqygHim5lg=; b=OszUWiyVAo3mil+FigEMKPGhcNLgWiUNGDyU9hO7EJwSoscoZ4BLTVXGkv3NZ3w8zEMWJheXp1oLzru/onPxTdiO4jpQNThR2S61s2SPADrvvlvCQMwUgMzEi/0D4L3W8TiUCcBsiCx5BDFlqnDFIG9TuXD4zDnOC25YIZlxKyc=
Received: from MN2PR11MB4366.namprd11.prod.outlook.com (52.135.38.209) by MN2PR11MB3757.namprd11.prod.outlook.com (20.178.252.212) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2644.19; Wed, 22 Jan 2020 14:42:58 +0000
Received: from MN2PR11MB4366.namprd11.prod.outlook.com ([fe80::b9ce:1058:5fa6:44a1]) by MN2PR11MB4366.namprd11.prod.outlook.com ([fe80::b9ce:1058:5fa6:44a1%7]) with mapi id 15.20.2644.027; Wed, 22 Jan 2020 14:42:58 +0000
From: "Rob Wilton (rwilton)" <rwilton@cisco.com>
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>
Thread-Topic: [netconf] New Version Notification - draft-ietf-netconf-notification-capabilities-09.txt
Thread-Index: AQHVxVsSt5Mms9ZtVUqYtH0CGNIWiaffY4HQgAC0VICAANxNAIADGDWAgAAHhLCABgRagIALUPKAgAEr+lA=
Date: Wed, 22 Jan 2020 14:42:58 +0000
Message-ID: <MN2PR11MB436687635084B38EC8E579EEB50C0@MN2PR11MB4366.namprd11.prod.outlook.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>
In-Reply-To: <58F397A3-9E37-4E61-BDEE-C0DAA61B6A3B@cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=rwilton@cisco.com;
x-originating-ip: [173.38.220.39]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 9b03cf9a-caa3-4a0d-69aa-08d79f495fdc
x-ms-traffictypediagnostic: MN2PR11MB3757:
x-ms-exchange-transport-forked: True
x-microsoft-antispam-prvs: <MN2PR11MB3757AC3C4249525E3AB5884FB50C0@MN2PR11MB3757.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 029097202E
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(39860400002)(136003)(396003)(366004)(346002)(199004)(189003)(478600001)(71200400001)(5660300002)(4326008)(53546011)(316002)(8936002)(9686003)(8676002)(55016002)(81166006)(81156014)(9326002)(7696005)(6506007)(2906002)(66476007)(66446008)(66556008)(33656002)(26005)(76116006)(52536014)(186003)(64756008)(110136005)(66574012)(15650500001)(66946007)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR11MB3757; H:MN2PR11MB4366.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX: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: PyCGto0Uo9N1MqhuPizQFcdFAE0cwgn1QJ07ACgSb9w/wEbClALhgJjEAvsxKN1+AxMpGWcdKDylwu+HmsdznlqKdAF0bDdK63euFhYfhUqYQ9p/pTUkmlgE0SKtZ7JIhJ0z2xXCqb/Nk5QnJ7u+1wB19LsA9GbE6DxyF1T9kCj2Bew/M7OGGBc47gKay0eJjDcnGVXGVYjRhiNEdCbbgFwhEx2BsaETj1iFTClRK35KYKC+KVBtORugts3n9A15VRp/Yh9jOxyJWTF2Qv713PCI0xAfGp38Y0nHYXx79tgE0gRgXdjV/Gjy32jL31SwNdq+A4sxm3ctptGoS0rNRoegN4nU6lUGqx3CfV5zs7IvQScLICE1OXpMTQAdZzUkR/Y/oIiLtUZupjQWOQA/9GPi3XPqT2ESfd6D0LeLAZ7JjVxYs2ECqhDfkkaYKh/3
Content-Type: multipart/alternative; boundary="_000_MN2PR11MB436687635084B38EC8E579EEB50C0MN2PR11MB4366namp_"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 9b03cf9a-caa3-4a0d-69aa-08d79f495fdc
X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Jan 2020 14:42:58.3665 (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: Gm7xSvNLZB1OfAH2412Ma3UEME0aHDKsWhYfeuqWYVGUpXYcywgCVryqIQ/lDR64SIwUQwxI6SyiNqrL+wHDWA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB3757
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.36.7.18, xch-aln-008.cisco.com
X-Outbound-Node: rcdn-core-12.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/juT2kjL99zszd9_RtnxKdWbiqmE>
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: Wed, 22 Jan 2020 14:43:06 -0000

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