Re: [Rtg-yang-coord] YANG leaf writing to running-datastore

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Tue, 03 March 2015 00:20 UTC

Return-Path: <j.schoenwaelder@jacobs-university.de>
X-Original-To: rtg-yang-coord@ietfa.amsl.com
Delivered-To: rtg-yang-coord@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C279E1A8AE9 for <rtg-yang-coord@ietfa.amsl.com>; Mon, 2 Mar 2015 16:20:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.86
X-Spam-Level:
X-Spam-Status: No, score=-3.86 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
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 x8qoR5REXe-7 for <rtg-yang-coord@ietfa.amsl.com>; Mon, 2 Mar 2015 16:20:04 -0800 (PST)
Received: from atlas3.jacobs-university.de (atlas3.jacobs-university.de [212.201.44.18]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 46AE81A8AE6 for <rtg-yang-coord@ietf.org>; Mon, 2 Mar 2015 16:20:03 -0800 (PST)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas3.jacobs-university.de (Postfix) with ESMTP id 4D3408E5; Tue, 3 Mar 2015 01:20:02 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from atlas3.jacobs-university.de ([10.70.0.220]) by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new, port 10030) with ESMTP id BOqM-xqs4Lc0; Tue, 3 Mar 2015 01:19:57 +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 atlas3.jacobs-university.de (Postfix) with ESMTPS; Tue, 3 Mar 2015 01:20:01 +0100 (CET)
Received: from localhost (demetrius3.jacobs-university.de [212.201.44.48]) by hermes.jacobs-university.de (Postfix) with ESMTP id 98D5020036; Tue, 3 Mar 2015 01:20:01 +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 rg5cxOtXcKvM; Tue, 3 Mar 2015 01:20:00 +0100 (CET)
Received: from elstar.local (elstar.jacobs.jacobs-university.de [10.50.231.133]) by hermes.jacobs-university.de (Postfix) with ESMTP id F206520031; Tue, 3 Mar 2015 01:19:59 +0100 (CET)
Received: by elstar.local (Postfix, from userid 501) id 23AA432591BC; Tue, 3 Mar 2015 01:19:57 +0100 (CET)
Date: Tue, 3 Mar 2015 01:19:57 +0100
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Mahesh Jethanandani <mjethanandani@gmail.com>
Message-ID: <20150303001957.GB61176@elstar.local>
Mail-Followup-To: Mahesh Jethanandani <mjethanandani@gmail.com>, "rtg-yang-coord@ietf.org" <rtg-yang-coord@ietf.org>
References: <CAAchPMsaZJE=TRKaDyyA8JRyQ4dt5nptD8o0pkUK-1tfNT9vgA@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAAchPMsaZJE=TRKaDyyA8JRyQ4dt5nptD8o0pkUK-1tfNT9vgA@mail.gmail.com>
User-Agent: Mutt/1.4.2.3i
Archived-At: <http://mailarchive.ietf.org/arch/msg/rtg-yang-coord/hPwU7lna2WomRIh8MUgS6gc5ljs>
Cc: "rtg-yang-coord@ietf.org" <rtg-yang-coord@ietf.org>
Subject: Re: [Rtg-yang-coord] YANG leaf writing to running-datastore
X-BeenThere: rtg-yang-coord@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
List-Id: "\"List to discuss coordination between the Routing related YANG models\"" <rtg-yang-coord.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtg-yang-coord>, <mailto:rtg-yang-coord-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/rtg-yang-coord/>
List-Post: <mailto:rtg-yang-coord@ietf.org>
List-Help: <mailto:rtg-yang-coord-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtg-yang-coord>, <mailto:rtg-yang-coord-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 03 Mar 2015 00:20:06 -0000

On Mon, Mar 02, 2015 at 10:42:55PM +0000, Mahesh Jethanandani wrote:
> Is there a way to restrict having a leaf be written to running datastore
> only? In other words, the leaf should never be written to startup
> datastore. Along the lines of an ephemeral datastore, except in this case
> it is a configuration parameter, and not something the device has learnt.
> 
> The particular case that comes to mind is putting an ethernet port in
> loopback mode. This is done mainly to put the port in a debug mode, and is
> meant to be temporary. But under no circumstance should it ever be written
> to a saved datastore in a way that the port comes up in loopback mode.
> 
> If there is no such capability today, can we consider adding it?

There is no such capability today.

Ephemeral datastores were discussed last year. An ephemeral datastore
would most likely provides the functionality you are looking for but I
am not sure this idea is actively pushed forward by anyone at this
point in time.

The closest you have today is a device that supports an explicit
startup datastore. After copying changes to <startup>, you can modify
<running> and the changes will not persist until to copy <running>
back to <startup>. But of course, this is brittle if there are
multiple changes and some should persist but others not. This is what
let to the notion of ephemeral datastores.

/js

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