Re: [netmod] [Netconf] LC of NDMA NETCONF/RESTCONF drafts

Andy Bierman <andy@yumaworks.com> Wed, 31 January 2018 09:22 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 6D1C112EC85 for <netmod@ietfa.amsl.com>; Wed, 31 Jan 2018 01:22:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 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_LOW=-0.7, 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 Eu9jlkJ82R2u for <netmod@ietfa.amsl.com>; Wed, 31 Jan 2018 01:22:33 -0800 (PST)
Received: from mail-lf0-x235.google.com (mail-lf0-x235.google.com [IPv6:2a00:1450:4010:c07::235]) (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 9B03412D848 for <netmod@ietf.org>; Wed, 31 Jan 2018 01:22:32 -0800 (PST)
Received: by mail-lf0-x235.google.com with SMTP id t79so19626372lfe.3 for <netmod@ietf.org>; Wed, 31 Jan 2018 01:22:32 -0800 (PST)
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; bh=FRR4OMjl2fxRMGBc9J27bUlUtgT9HSi2usy3RrS5TwM=; b=i2mB1MAzzjJRpK9w6wUPYFp8DEbTgNXS74iGJc1qq/yUBQ2t19TVMv5T4NM8WF7EYQ PccTisiXQ2/yzBmWhX7LWJJwkc761LYWA7ajO3yvLgCAimWDJULstVAXnZcw/LeqCIkZ j2QjeAYIpdIAGwJp2ZUfA6iR9XJ//nutEOTU317srqvA2ez1I/GsgLxgWRK+qamanHRr 3uHWBDt7pWrwYU2l0Zdqb8tpnAGia63fXLRiIv0Dzjm2kh8BL26YvjmCD+dCJq/OVYBN CKY5n2lWWAu2NtCaal7WfN9xsOV5ef7nEoGd4eYAwRICdhYvb1zxdgpQ6d0eSEq+9FKs 8fSg==
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; bh=FRR4OMjl2fxRMGBc9J27bUlUtgT9HSi2usy3RrS5TwM=; b=kgO0xfB72mP5OG72wRBzFnT6XBEhUMNCc+N3HW6a1uRyIpfIHQqLDdENrPJGanm3E/ SKjme5QcIz1QUmqA2lF5Cey8eRDn0qScsCTgOtvt99w64U9DA2RvmVn+BZV11zb1FPON xU+xBgS7dpojYiaUDLsrEALS/Ewiz72mAD1/xyg38jM+lxPE4EL9OZIfz4DEnwEo3zaL E0mMX6bIzTNA+mqfQ1o9gmf6blmOH05CSFSYw/L7W6f+aQ5BVs/UUJs9xXpD3iPFPbXt fk7DYXxK5ZGrC7EnNb/jMuv5d30CJvI+yPh6S/TY8qEyqBmj4OKhTC6I37m9OMQD7gTC Nhqw==
X-Gm-Message-State: AKwxytfmhabXYL5532eIuIZoeE313xxDtOdIiaOjQcE20rMXVTbsO8PU EH6uCeBvC+NEJ/9QE7s+0DiBYPef6neNktU+cjVCXQ==
X-Google-Smtp-Source: AH8x227VidR3bEDiFjcnOPkx8hLQEM9bJIJqViC77o0EcWlVGMC/izgqV1Drb8hPhOC72I9XpgPn0sUdN4RCZoQBYrA=
X-Received: by 10.25.190.203 with SMTP id o194mr19604306lff.120.1517390550854; Wed, 31 Jan 2018 01:22:30 -0800 (PST)
MIME-Version: 1.0
Received: by 10.25.143.6 with HTTP; Wed, 31 Jan 2018 01:22:30 -0800 (PST)
In-Reply-To: <20180131081118.uqxivaxbkbbzzmji@elstar.local>
References: <CF60B198-564B-499A-9B17-E992569074CB@gmail.com> <D3BBAA02-AA28-4E13-A8CF-9B7925DEE2FF@gmail.com> <CABCOCHTgYWgFNZNi-x5V5uErgd331=y9j-mW=xvFnEArLdykzw@mail.gmail.com> <20180131081118.uqxivaxbkbbzzmji@elstar.local>
From: Andy Bierman <andy@yumaworks.com>
Date: Wed, 31 Jan 2018 01:22:30 -0800
Message-ID: <CABCOCHRWZPO=d4gXTEXRL4vY3MNEwMGJi3+Ug3q_GVwJcNFYWw@mail.gmail.com>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, Andy Bierman <andy@yumaworks.com>, Mahesh Jethanandani <mjethanandani@gmail.com>, netconf <netconf@ietf.org>, NETMOD Working Group <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="94eb2c1a185ec5043305640f04eb"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/G4nwa6CUB_YddIbVdphYX-akbpM>
Subject: Re: [netmod] [Netconf] LC of NDMA NETCONF/RESTCONF drafts
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: Wed, 31 Jan 2018 09:22:35 -0000

On Wed, Jan 31, 2018 at 12:11 AM, Juergen Schoenwaelder <
j.schoenwaelder@jacobs-university.de> wrote:

> On Tue, Jan 30, 2018 at 12:35:33PM -0800, Andy Bierman wrote:
> > Hi,
> >
> > I have some questions about these drafts.
> >
> > 1) what if datastore set to "conventional"?
> >     There are many places where a datastore-ref type is used.
> >     However, "conventional" is valid for base "datastore", even though
> >     it is ambiguous as a datastore selector.
>
> We can add explicit text that an identity that does not resolve to a
> datastore implemented by the server results in an invalid value error.
>
>

OK



> > 2) origin filter is limited to 1 source
> >    This filtering seems rather limited.  A client must retrieve
> > <with-origin> and check
> >     all the values in use, then make repeated requests for each source
> as a
> > different
> >     <origin-filter> leaf
>
> If the client does <with-origin>, then it has all origin information
> and it can filter locally. That said, we could make origin-filter a
> leaf-list which is logically ORed so that one can retrieve
> origin-filter=or:system or origin-filter=or:learned in one request.
>
>

OK


> > 3) with-defaults broken
> >     The operational datastore does not support with-defaults.
> >      Instead, the client must use origin-filter=or:default or with-origin
> >      and check all the origin attributes.  Since a client needs to use
> >      with-defaults for other datastores, this special handling of
> > <operational>
> >      seems unhelpful.
>
> I think the with-defaults semantics for conventional configuration
> datastores are much more complicated than necessary for the
> operational state datastore. Note that that the operational state
> datastore reports in-use values not really defaults:
>
>   <leaf or:origin='default'>foo</leaf>
>
> This reports that the value 'foo' is in use and that it originates
> from a default value. Note that this could also be
>
>   <leaf or:origin='intended'>foo</leaf>
>
> in case the intended configuration datastore configured the value
> 'foo' (despite this value matching the default). The with-defaults
> solution is pretty complex because it tries to handle how different
> systems deal with configuration defaults. The idea is to not carry
> this complexity over to in-use values in the operational state
> datastore.
>
>

Before NMDA, the client could decide if it wanted to retrieve default nodes
or not.
This client-choice has been removed from NMDA, which is a problem.




> /js
>
>
Andy


> --
> Juergen Schoenwaelder           Jacobs University Bremen gGmbH
> Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
> Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>
>