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

Kent Watsen <kent+ietf@watsen.net> Wed, 08 January 2020 03:11 UTC

Return-Path: <0100016f83226d35-4c825571-7fe8-4074-8f6c-d9994e2ed37a-000000@amazonses.watsen.net>
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 E9C8B120041 for <netconf@ietfa.amsl.com>; Tue, 7 Jan 2020 19:11:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=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=amazonses.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 jcJ4gbBzfKNQ for <netconf@ietfa.amsl.com>; Tue, 7 Jan 2020 19:11:10 -0800 (PST)
Received: from a8-88.smtp-out.amazonses.com (a8-88.smtp-out.amazonses.com [54.240.8.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A629312002E for <netconf@ietf.org>; Tue, 7 Jan 2020 19:11:10 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1578453069; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc:Content-Transfer-Encoding:Message-Id:References:To:Feedback-ID; bh=emfxYQO2C5BcKjgUWFT/SDj1EINaeovJ+5MvGTI9GoA=; b=dBZCxuEC6TIQ6jvp5DJ/LMHJz9LqE5DdI9PTXmXcivu4v2RcIMg0UQkibvQsQMjb FkkCT8pj6S6izd9qgQnvcgy+QuMT9mvDmRzRIaBHUXZiYJ34Xg0jwcr47t0rNyG4am8 CSWe6acFHsf2Y0kik9IRNqdIPXIuqFnWHkrFeuw0=
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
From: Kent Watsen <kent+ietf@watsen.net>
In-Reply-To: <MN2PR11MB4366A782F85B41B42CE593B6B53F0@MN2PR11MB4366.namprd11.prod.outlook.com>
Date: Wed, 08 Jan 2020 03:11:09 +0000
Cc: NETCONF Working Group <netconf@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-ID: <0100016f83226d35-4c825571-7fe8-4074-8f6c-d9994e2ed37a-000000@email.amazonses.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>
To: "Rob Wilton (rwilton)" <rwilton@cisco.com>
X-Mailer: Apple Mail (2.3445.104.11)
X-SES-Outgoing: 2020.01.08-54.240.8.88
Feedback-ID: 1.us-east-1.DKmIRZFhhsBhtmFMNikgwZUWVrODEw9qVcPhqJEI2DA=:AmazonSES
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/vueapxr28yQNcsZWEc-b4KtSTkw>
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 03:11:12 -0000


> 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