Re: [netmod] datastore conformance

Andy Bierman <andy@yumaworks.com> Tue, 25 July 2017 22:43 UTC

Return-Path: <andy@yumaworks.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 F0B52131FCA for <netmod@ietfa.amsl.com>; Tue, 25 Jul 2017 15:43:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, 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 (2048-bit key) header.d=yumaworks-com.20150623.gappssmtp.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 oME5Cebrq0nX for <netmod@ietfa.amsl.com>; Tue, 25 Jul 2017 15:43:30 -0700 (PDT)
Received: from mail-wr0-x22c.google.com (mail-wr0-x22c.google.com [IPv6:2a00:1450:400c:c0c::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C1470131FC9 for <netmod@ietf.org>; Tue, 25 Jul 2017 15:43:29 -0700 (PDT)
Received: by mail-wr0-x22c.google.com with SMTP id y43so124631794wrd.3 for <netmod@ietf.org>; Tue, 25 Jul 2017 15:43:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=8R0Wi5v7eMC+Gx6n5EHtPifmJkhzswXE0b5hslmfy1E=; b=yblSAvrukSo3RzrCmYe5QynPtKPax8eB6ebh7RKTqdpeJBUnuOeGD2H8xhhz+EC+rG qwMpvQfgAjnz2zCCn1mNVSgvb12hxW8/kDZTgLlVp4L/fjQhx0HSAVrbAUwnSnwMut5q 0kCMKpgT9XD7liswQphKJ8sbhPUm2xiKG3dKWPYWEo4Gw5VR7SfxOuQIE0k8olhFdN6u EnLVTYstr93cuHDo2nigMGvQoB4+jO5IjhcBWv/QMhcfhw/NK0ia6NNDUK1DjgfNWIU5 EO+gBzKBluzosrIQU6gcLnl4164lCtiv+lMohw1nLztH1a6INAwxFUj3rW+JWeTzyjgR ml4w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=8R0Wi5v7eMC+Gx6n5EHtPifmJkhzswXE0b5hslmfy1E=; b=apIuXkH/VPkrU/UxZT73/j9/gDuvgwon7c2v9ZdPDFLT1nJHeeQoBNHwJqY7OVpSba +qy1v9Fd/inGyehTbn774Ph8n0zxWMS0dY55CdqPxfkHFiPSudRYAMXYyrptPxZa3WbT f5ahFl5N/vWEch8jxFv9VHCBhPnYV87H5uafPrTws7cpEBkVtvYZcvDk9Fno4f1btIZC UayPnhXMprW2ULVwq9H9LHO//VSps6rrSwsuyFFVK09gm6jqTLJ0NKe2ObFJexL3zsY1 wtgZJNVINdzhuLyyl9rGSV+1d3Eu8zle9WRXqn+VY1Um2MsqQlW+yAEdhWkY/ki7rn2p iIvQ==
X-Gm-Message-State: AIVw111020t3rJEmYZcLnC+tWPKVJWPKVEKbibx+tpEArNGVkxhm7Fjr NJp+PNkZpqSzdmRZpklvh7yduOGQ3921
X-Received: by 10.223.136.176 with SMTP id f45mr19119695wrf.289.1501022608181; Tue, 25 Jul 2017 15:43:28 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.223.152.196 with HTTP; Tue, 25 Jul 2017 15:43:27 -0700 (PDT)
In-Reply-To: <201707252145.v6PLix8f004810@idle.juniper.net>
References: <CABCOCHTq4CH-+kWKMxzcG0NYnNu6JP0mcaQPS7-07YKtw1Q2cg@mail.gmail.com> <201707252145.v6PLix8f004810@idle.juniper.net>
From: Andy Bierman <andy@yumaworks.com>
Date: Tue, 25 Jul 2017 15:43:27 -0700
Message-ID: <CABCOCHRX34TMkLjnZxAPbxGNU9xPDvvLKfkCADhhgEsq2yOS5A@mail.gmail.com>
To: Phil Shafer <phil@juniper.net>
Cc: "netmod@ietf.org" <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="001a11492e6c5c6db405552c0fbf"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/AN-jC4Jkx2EFJCBPG3S-i04AUsU>
Subject: Re: [netmod] datastore conformance
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.22
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: Tue, 25 Jul 2017 22:43:32 -0000

Hi,

I am aware how YANG identities work.
Let the market decide.  Good enough.


Andy


On Tue, Jul 25, 2017 at 2:44 PM, Phil Shafer <phil@juniper.net> wrote:

> Andy Bierman writes:
> >The YANG definitions defined for NETCONF and RESTCONF operations do not
> actually
> >require the "real" datastore identities to be used by a server.
>
> The identities are defined in the YANG modules contained in the
> NMDA draft (draft-ietf-netmod-revised-datastores).  The protocol-specific
> drafts (draft-dsdt-nmda-netconf and draft-dsdt-nmda-restconf)
> describe protocols operations that use these identities, such as
> the <source> parameter to <get-data>.  The YANG library draft
> (draft-ietf-netconf-yang-library) allows the server to indicate
> which datastores are supported.
>
> >The server implementor
> >has the freedom to replace all of the standard datastores with
> proprietary definitions.
>
> Yes.  The implementation can also choose not to support any
> conventional datastores, allowing only, say, some new dynamic
> datastore.  Clients can learn this via YANG Library.
>
> In the end, I've confidence that the market place will give limited
> success to servers that make funky and weird choices.  We all
> understand that most-common behaviors are most desirable, but forcing
> a limit on such things is imho counter productive.
>
> >While this provides unlimited flexibility for the server, it also
> provides unlimited
> >complexity for the client.
>
> "unlimited"?
>
> >I think the existing :candidate, :writable-running, and :startup
> capabilities cover
> >the standard conventional datastores.
>
> Yes, these capabilities allow a client to know that a server supports
> a datastore, but not what it can contain.  It's not sufficient
> information.  The client needs the YANG library information to
> have meaningful interaction with a server.
>
> >IMO the MUST be a new capability for the :operational datastore and the
> >exact identityref and semantics for this datastore MUST be supported
> >if the :operational:1.0 capability is advertised.
>
> What does a new capability give that YANG library does not?
>
> I don't follow the bit about "the exact identityref and semantics
> for this datastore".  Is your concern that I could make a follow-on
> to <operational> that derives from the operational identity?
>
> >Both NETCONF and RESTCONF can list capabilities so both protocols can
> advertise
> >this capability URI.
>
> Same for YANG Library, right?
>
> Thanks,
>  Phil
>