Re: [netmod] mount-point in anydata

Martin Bjorklund <mbj@tail-f.com> Thu, 19 January 2017 17:55 UTC

Return-Path: <mbj@tail-f.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 0E82E129406 for <netmod@ietfa.amsl.com>; Thu, 19 Jan 2017 09:55:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.1
X-Spam-Level:
X-Spam-Status: No, score=-5.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-3.199, SPF_PASS=-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 ZewUaqOQRrJK for <netmod@ietfa.amsl.com>; Thu, 19 Jan 2017 09:55:22 -0800 (PST)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id 79EE21293DB for <netmod@ietf.org>; Thu, 19 Jan 2017 09:55:22 -0800 (PST)
Received: from localhost (h-13-76.a165.priv.bahnhof.se [155.4.13.76]) by mail.tail-f.com (Postfix) with ESMTPSA id 764951AE018A; Thu, 19 Jan 2017 18:55:21 +0100 (CET)
Date: Thu, 19 Jan 2017 18:55:21 +0100
Message-Id: <20170119.185521.426199483109430578.mbj@tail-f.com>
To: lberger@labn.net
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <0a200394-d2c0-a20d-eae8-a41bb2fd2c18@labn.net>
References: <20170117.132913.781493366440105564.mbj@tail-f.com> <0a200394-d2c0-a20d-eae8-a41bb2fd2c18@labn.net>
X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/7kotocQbNbKZ6LmPtgg7jZBwJso>
Cc: netmod@ietf.org
Subject: Re: [netmod] mount-point in anydata
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.17
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, 19 Jan 2017 17:55:24 -0000

Lou Berger <lberger@labn.net> wrote:
> Martin,
> 
> On 1/17/2017 7:29 AM, Martin Bjorklund wrote:
> > Hi,
> >
> > Currently, the schema mount draft says that the "mount-point"
> > extension only can be defined in an "anydata" node.  However, this
> > doesn't really work, since RFC 7950 says:
> >
> >    An anydata node is treated as an opaque chunk of data.  This data
> >    can be modified in its entirety only.
> >
> > But the idea with schema mount is to build a composite model that can
> > be manipulated just like a normal model, or a model that is
> > augmented.  If we mount models in an "anydata" node, clients would
> > have to replace the enitire mounted subtree in order to change e.g. a
> > single leaf.
> >
> > For this reason, I propose that we go back to the previous model where
> > "mount-point" would be allowed in "container" and "list".  Note that a
> > client that doesn't know anything about these mounts would see some
> > nodes in some unknown namespace; just like in the case that there is
> > an augment that the client doesn't know about.
> 
> would it be better to have the  schema mount draft updates 7950 to allow
> for sub-tree changes under anydata?  It "feels" cleaner and I'd expect
> to have no real impact on servers as this would only impact servers
> supporting the draft.  I'm unsure about client impact though...

Actually, this would have bigger impact on servers, than on clients; a
client could still treat the entire thing as an opaque blob - but
that's not what we want.  I prefer a solution that doesn't change the
core YANG semantics.  The text in 7950 is pretty clear, e.g.,:

   Any "operation" attributes present on subelements of an anydata node
   are ignored by the NETCONF server.



/martin