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

Balázs Lengyel <balazs.lengyel@ericsson.com> Wed, 08 January 2020 16:19 UTC

Return-Path: <balazs.lengyel@ericsson.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 9FB9C120877 for <netconf@ietfa.amsl.com>; Wed, 8 Jan 2020 08:19:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.001
X-Spam-Level:
X-Spam-Status: No, score=-2.001 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.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 2dKDK6Wq2VRk for <netconf@ietfa.amsl.com>; Wed, 8 Jan 2020 08:19:43 -0800 (PST)
Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-eopbgr130075.outbound.protection.outlook.com [40.107.13.75]) (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 9FDFE120868 for <netconf@ietf.org>; Wed, 8 Jan 2020 08:19:41 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i3SXKw4IEs0M3Ednx+4FC3jSpFIsC0iSgWV7zwPlbnsgzlg83KKWSa/mSriXEsu8idLBAY1Kj9swekR48HgG3UTUchDp98HmPhsrZwyAyIDvYId4i34O4ELcmtXGhSBnrzPRcExd7feJ441DhZLWTzBUXDrRwDfDrHPK7b5vPtfEiBRPwv2SZwQFsB/uJwyElaaHEE1gjaeTpH5udzLlPTkJhWgzqnqLfIx5JlHUP+7wXJv4lPJ2W25+QkFCWOCTOwM4mkGDiIfqDbjGZdzPfxw72O2j141EWTeNhY5FVWeB/Cx8CX+eWoOzp6cXtfGZdXyqWRygdcEJQ/EVyoBJUw==
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=VRg79MF4yBjy9CjjcD7YNjacoBzA+NnVZ5zq2fdsFqI=; b=Og4zGqCrsuNd4J14wahuNfGxKtXwZBx29M+4keUEOIkzX7w0Lpha6EcSsrkUdWAJ15SQPCMbkZu28XT/u+Qhva8CtZt5xDoBsmz7q7dAq8reO7VzSWB+gdnuodaCmr2yQr8Gc+PiFfkKWVlqzjl6vAKLeSDSXDyYsW0MJUIjokhmXbFJ7WGQLEcRqvZa5TgRHfSO1JHxz3ZHTW7pt+Mn5E/9JhfntP+z+54LEEBjiLL8NGXuv+EK6tuTkUvNiyXhgO/yXfn/PaTfgP44Pf9cVjmldZiT7v/yrh3Q7wVUNInyKWTl+YAnFfGPIda8kbUK50iN7vU5lMiaI0uMC4BM0g==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ericsson.com; dmarc=pass action=none header.from=ericsson.com; dkim=pass header.d=ericsson.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VRg79MF4yBjy9CjjcD7YNjacoBzA+NnVZ5zq2fdsFqI=; b=KiHdcQT7dv6QIt/3DQsYLNJMd1I9X+YHRAEl2641/8B7s2++wX0v+ilGyj2iMs6GnHMoeV18RGj5yel6Gm9fNYkh1Y4scmT49kux6ysSGrMKEb8JtH9MPJCqo5MYM99uBLRwsDZc7PH6ZmFkYnbS1aSJxD4/fpt20T6ifbFT7ac=
Received: from VI1PR07MB4047.eurprd07.prod.outlook.com (52.134.20.154) by VI1PR07MB5568.eurprd07.prod.outlook.com (20.178.14.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2623.5; Wed, 8 Jan 2020 16:19:38 +0000
Received: from VI1PR07MB4047.eurprd07.prod.outlook.com ([fe80::819:a879:8fe2:1686]) by VI1PR07MB4047.eurprd07.prod.outlook.com ([fe80::819:a879:8fe2:1686%5]) with mapi id 15.20.2644.006; Wed, 8 Jan 2020 16:19:38 +0000
From: Balázs Lengyel <balazs.lengyel@ericsson.com>
To: Kent Watsen <kent+ietf@watsen.net>, "Rob Wilton (rwilton)" <rwilton@cisco.com>
CC: NETCONF Working Group <netconf@ietf.org>
Thread-Topic: [netconf] New Version Notification - draft-ietf-netconf-notification-capabilities-09.txt
Thread-Index: AQHVxVsUq6ljVkP3y0ecYCN5b7iLjKffZvCAgACw5YCAANp+cA==
Date: Wed, 08 Jan 2020 16:19:38 +0000
Message-ID: <VI1PR07MB40473B7B0406D4B93E3BC76DF03E0@VI1PR07MB4047.eurprd07.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>
In-Reply-To: <0100016f83226d35-4c825571-7fe8-4074-8f6c-d9994e2ed37a-000000@email.amazonses.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=balazs.lengyel@ericsson.com;
x-originating-ip: [89.135.192.225]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 73404266-b743-4d06-67fa-08d794568f36
x-ms-traffictypediagnostic: VI1PR07MB5568:
x-microsoft-antispam-prvs: <VI1PR07MB5568B49FD4CCA3CAB8973277F03E0@VI1PR07MB5568.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-forefront-prvs: 02760F0D1C
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(136003)(346002)(396003)(39860400002)(376002)(189003)(199004)(13464003)(478600001)(110136005)(8676002)(15650500001)(81156014)(86362001)(81166006)(8936002)(33656002)(316002)(71200400001)(52536014)(2906002)(4326008)(66574012)(55016002)(9686003)(85182001)(5660300002)(85202003)(76116006)(186003)(53546011)(66616009)(26005)(6506007)(66556008)(66946007)(66446008)(966005)(7696005)(66476007)(64756008); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR07MB5568; H:VI1PR07MB4047.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: jujpxOTbjP1T6jW3vPrpQB6W94WAaZdw29vSTuOJpS721dDJNIcRqYpIOWdY6r3FQE7gdGPNz2u8zjFVrisI2HBlJcfV48/w/kU4db9hON7vr/e7yNLSVUHm3BkYBCeeXV0tvzQjK9mLrw8bnV1kLgNiPMdSG0o76Crd843fYFja3LrXxV9fkYm2bwhCzBCPINGiqrVJvL0rQqTWDVORkm4X0qnOdtJ5Pa/fZCiekhx/Wyb+IM7NT6KwSKSRoS/N1iqfPiF2gyz2ZNEa+2O6bpLUGKZdwz3nmx3bWDOgN+3wU5GNn9PhWhKrQEIYRv85VycfmXnWmNHuZYKvHgArIwqGqiFR1Qx9ywcI8ynx2FNUDFuaHDtQ2GEesbUpNmj7zv0uePi9SmTliyWeFETLV2OrSa+iq5XAbO48+5r40cjsVF8CVyNbHhTU8SUXEHUrekzuYJYIYAQW2YBxuHvxKTBa/tjU8EXuB2ToKt9C5vGeBgDyuolD0vvqIXkiNZTWpq1RL8CYNgLxVWxjmTs2ukh2ZzT5e/+7PYib9DHtbTlETCRhryW4l5DO/4K9SHO6
x-ms-exchange-transport-forked: True
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg="SHA1"; boundary="----=_NextPart_000_0061_01D5C647.CDBA1640"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 73404266-b743-4d06-67fa-08d794568f36
X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jan 2020 16:19:38.5051 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: ivrzat5qNUN/IaVOoOQ47bz894+Ip+XDvS/IprGLld3GCMAdqW0Z134eRE0t1x/xmv1WKZegoBZJA/g0gUnqxM6uhEzfcKWOMJvS6MgdIqU=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB5568
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/mmN5aAMTUHlyG7p_9Z6Ktw1TBtY>
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, 08 Jan 2020 16:19:53 -0000

Hello Rob, Kent,
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)
Regards Balazs

-----Original Message-----
From: netconf <netconf-bounces@ietf.org> On Behalf Of Kent Watsen
Sent: 2020. január 8., szerda 4:11
To: Rob Wilton (rwilton) <rwilton@cisco.com>
Cc: NETCONF Working Group <netconf@ietf.org>
Subject: Re: [netconf] New Version Notification - draft-ietf-netconf-notification-capabilities-09.txt



> On Jan 7, 2020, at 11:38 AM, Rob Wilton (rwilton) <rwilton@cisco.com> wrote:
> 
> Hi Kent, all,
> 
> My main concern with this more general model is whether this model has the right structure to generically model device capabilities.
> 
> It is often the case that hardware capabilities might differ by the linecard type that has been inserted (which can change dynamically), and/or the type of interface.

The base “system-capabilities” is augmentable.   An augment can be defined someday to provide that behavior?


> As it stands, I don't think that the current model can describe capabilities for this class of devices:
> - per datastore capabilities are not granular enough

How so?


> - per datanode capabilities are too granular (e.g. you would end up with separate capabilities for each interface, and even then they can only describe the interfaces that exist, or might exist).

Your xpath selector would resolve this, as would a templates (I think).  Maybe we could view this copy/paste-based approach as good enough for the short term?


> Possibly, having a xpath selector to identify the set of nodes that the capabilities apply to might be flexible enough, but this would greatly increase complexity.  Perhaps something like a union of a node selector and xpath selector could work?

Perhaps the “node-selector” could be put into a ‘choice’ with it being the only descendent, for now, thus enabling a future extension to define a fancier selector?


> I don't want to slow work down, but I do question whether we are rushing to a generic capability solution that won't be sufficient for many devices out there.  Hence part of me wonders whether it might be better to get the original notification capabilities draft finished (as a time to market solution), and then look at the generic capabilities requirements/solution with a bit less time pressure.

The response from previous WGLC was that folks wanted the more generic solution now.


FWIW, when I did this in a past life, I had a get-hardware-inventory RPC, an offline a hardware-catalog, and an ability to set (either relative or absolute) capabilities (we called them “features”) based on the hardware present.  Key to the solution was being able to pull the inventory from a live device and, in lieu of that, to model/simulate the inventory a device might have (for pre-provisioning).

Kent // contributor


_______________________________________________
netconf mailing list
netconf@ietf.org
https://www.ietf.org/mailman/listinfo/netconf