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

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Thu, 08 February 2018 07:36 UTC

Return-Path: <j.schoenwaelder@jacobs-university.de>
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 D769F126DC2; Wed, 7 Feb 2018 23:36:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.909
X-Spam-Level:
X-Spam-Status: No, score=-1.909 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 sxxhjWIzoJFV; Wed, 7 Feb 2018 23:36:20 -0800 (PST)
Received: from atlas5.jacobs-university.de (atlas5.jacobs-university.de [212.201.44.20]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CE77D1200E5; Wed, 7 Feb 2018 23:36:19 -0800 (PST)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas5.jacobs-university.de (Postfix) with ESMTP id 97A2EA24; Thu, 8 Feb 2018 08:36:18 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from atlas5.jacobs-university.de ([10.70.0.217]) by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new, port 10032) with ESMTP id MNYtlcXu7nRY; Thu, 8 Feb 2018 08:36:17 +0100 (CET)
Received: from hermes.jacobs-university.de (hermes.jacobs-university.de [212.201.44.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hermes.jacobs-university.de", Issuer "Jacobs University CA - G01" (verified OK)) by atlas5.jacobs-university.de (Postfix) with ESMTPS; Thu, 8 Feb 2018 08:36:18 +0100 (CET)
Received: from localhost (demetrius3.jacobs-university.de [212.201.44.48]) by hermes.jacobs-university.de (Postfix) with ESMTP id 749622014E; Thu, 8 Feb 2018 08:36:18 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius3.jacobs-university.de [212.201.44.32]) (amavisd-new, port 10024) with ESMTP id rAfq9m0-Nsqe; Thu, 8 Feb 2018 08:36:18 +0100 (CET)
Received: from elstar.local (unknown [10.50.231.133]) by hermes.jacobs-university.de (Postfix) with ESMTP id D16672014B; Thu, 8 Feb 2018 08:36:17 +0100 (CET)
Received: by elstar.local (Postfix, from userid 501) id B5548423D593; Thu, 8 Feb 2018 08:36:17 +0100 (CET)
Date: Thu, 08 Feb 2018 08:36:17 +0100
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Andy Bierman <andy@yumaworks.com>
Cc: Martin Bjorklund <mbj@tail-f.com>, Netconf <netconf@ietf.org>, NetMod WG <netmod@ietf.org>
Message-ID: <20180208073617.yico4gvfrl6xdusw@elstar.local>
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Mail-Followup-To: Andy Bierman <andy@yumaworks.com>, Martin Bjorklund <mbj@tail-f.com>, Netconf <netconf@ietf.org>, NetMod WG <netmod@ietf.org>
References: <CABCOCHSUWGKOH2JJA3TrRRJrvgwmmFRPs8cmOtPg0YKcY9=tsg@mail.gmail.com> <a0b9c4ba-a54d-f26e-3c09-1c2a92df58dd@cisco.com> <CABCOCHR34ovCHumyTKXOYzJcU3WM1kt-EnpxxtGLS2kLUPtECA@mail.gmail.com> <20180207.192803.834988416883038576.mbj@tail-f.com> <CABCOCHR95zL=AZ-LLq_1FsCff9dgUKP5_33uY7W7OMd8tdfb3w@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <CABCOCHR95zL=AZ-LLq_1FsCff9dgUKP5_33uY7W7OMd8tdfb3w@mail.gmail.com>
User-Agent: NeoMutt/20171215
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/uwef5bwYZIDIgMfVJQuEI0-Aw4o>
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: Thu, 08 Feb 2018 07:36:22 -0000

On Wed, Feb 07, 2018 at 03:03:49PM -0800, Andy Bierman wrote:
> >
> > > 2) The <get-data> operation returns all values in use.
> > >     The only way to suppress defaults is to use <origin-filter>
> > >     (e.g., request all origins except 'default')
> >
> > Or use with-defaults = trim.
> 
> Yes -- because the definition in RFC 6243 is worded to exclude nodes.
> 
> It should be clear in some draft how basic-mode applies to origin=default
> within <operational>.

Frankly, carrying the different basic modes over to <operational>
sounds like a mistake. Complexity for no real value.
 
> Applying sec 2 of 6243...
> 
> config=true:
> 
> If basic-mode=report-all then origin=default will never be present
> 
> If basic-mode=trim then origin=default is only possible if the value-in-use
> is the YANG default
> 
> If basic-mode=explicit then origin=default is only possible if the
> configured value was not
> explicitly set by a client.  Sec 2.3.1 is not clear if the YANG default
> value is relevant or not.
> It could be that if the configured value not explicitly set, then any
> value-in-use (not just the
> YANG default) could be tagged origin=default.
> 
> 
> config=false:
> 
> report-all: default ignored, no nodes treated as default
> trim: node removed if value=YANG default
> explicit: all config=false nodes are set by the server, so no nodes treated
> as default

Who needs all this to manage a network?
 
> This draft makes with-defaults mandatory-to-implement.
> It is a SHOULD implement now.  (I approve!).
>
> The with-defaults capability MUST be advertised by the NMDA server,
> including
> the basic-mode parameter. The also-supported parameter MAY be included.
> 
> Is it possible for report-all-tagged to apply to nodes that are learned
> (i.e., not origin=default)?

So here is an alternate proposal: The NMDA documents are silent about
with-defaults and if someone wants to use with-defaults with
datastores then an update of RFC 6243 needs to be written. This way,
implementations can choose to not do any of the with-defaults magic.

What we may consider, though, is to have a way to negate origin-filter
so that we can exclude specific origins - right now to emulate this
one has to (a) know all possible origins and then (b) list all origins
except the one not wanted.

/js

-- 
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/>