Re: [mpls] [netmod] YANG - Intended-Config & Applied-Config & Derived-State & Operational-state...grrrr... !!

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Fri, 01 April 2016 09:02 UTC

Return-Path: <j.schoenwaelder@jacobs-university.de>
X-Original-To: mpls@ietfa.amsl.com
Delivered-To: mpls@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B468312D0EA; Fri, 1 Apr 2016 02:02:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.21
X-Spam-Level:
X-Spam-Status: No, score=-4.21 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01] 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 nus2YxZ4ILrW; Fri, 1 Apr 2016 02:02:14 -0700 (PDT)
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 E80D912D0BB; Fri, 1 Apr 2016 02:02:13 -0700 (PDT)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas3.jacobs-university.de (Postfix) with ESMTP id 8A90E764; Fri, 1 Apr 2016 11:02:12 +0200 (CEST)
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 Ef8dE2PSE8pk; Fri, 1 Apr 2016 11:01:50 +0200 (CEST)
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; Fri, 1 Apr 2016 11:02:11 +0200 (CEST)
Received: from localhost (demetrius4.jacobs-university.de [212.201.44.49]) by hermes.jacobs-university.de (Postfix) with ESMTP id 8608120050; Fri, 1 Apr 2016 11:02:11 +0200 (CEST)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius4.jacobs-university.de [212.201.44.32]) (amavisd-new, port 10024) with ESMTP id nYYlau6nEVKJ; Fri, 1 Apr 2016 11:02:10 +0200 (CEST)
Received: from elstar.local (elstar.jacobs.jacobs-university.de [10.50.231.133]) by hermes.jacobs-university.de (Postfix) with ESMTP id 44AEF20046; Fri, 1 Apr 2016 11:02:10 +0200 (CEST)
Received: by elstar.local (Postfix, from userid 501) id 5A8093A6F1CB; Fri, 1 Apr 2016 11:02:07 +0200 (CEST)
Date: Fri, 01 Apr 2016 11:02:07 +0200
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: "Rajiv Asati (rajiva)" <rajiva@cisco.com>
Message-ID: <20160401090207.GA50653@elstar.local>
Mail-Followup-To: "Rajiv Asati (rajiva)" <rajiva@cisco.com>, "netmod@ietf.org" <netmod@ietf.org>, "mpls@ietf.org" <mpls@ietf.org>
References: <6A55F6E8-8A67-459D-BAB6-CC41F8D7BF30@cisco.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
X-Clacks-Overhead: GNU Terry Pratchett
Content-Transfer-Encoding: 8bit
In-Reply-To: <6A55F6E8-8A67-459D-BAB6-CC41F8D7BF30@cisco.com>
User-Agent: Mutt/1.4.2.3i
Archived-At: <http://mailarchive.ietf.org/arch/msg/mpls/UZsFKjQNJk8OBo4yjD6SknBiUgY>
Cc: "mpls@ietf.org" <mpls@ietf.org>, "netmod@ietf.org" <netmod@ietf.org>
Subject: Re: [mpls] [netmod] YANG - Intended-Config & Applied-Config & Derived-State & Operational-state...grrrr... !!
X-BeenThere: mpls@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
List-Id: Multi-Protocol Label Switching WG <mpls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/mpls>, <mailto:mpls-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/mpls/>
List-Post: <mailto:mpls@ietf.org>
List-Help: <mailto:mpls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mpls>, <mailto:mpls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 01 Apr 2016 09:02:17 -0000

Operational state often has a different lifetime than config. Hence,
keeping config and operational state together in the same structure
(with the same naming) causes you problems down the road.

/js

On Thu, Mar 31, 2016 at 06:44:06PM +0000, Rajiv Asati (rajiva) wrote:
> 
> While working on MPLS LDP yang model (https://tools.ietf.org/html/draft-raza-mpls-ldp-mldp-yang), we noticed the possible confusion around structuring intended config, applied config and derived state *.
> 
> On one hand, one may have 'intended-config’ (RW) and ‘applied-config’ (RO) in the same construct (container), and ‘derived state’ (RO) in a separate construct (container). 
> 
> 	This keeps config together, but doesn’t help operational state, which requires
> 	Both Applied-config and derived-state.
> 
> On the other hand hand, one may have ‘intended-config’ in one construct (container), and ‘applied-config’ and ‘derived state’ in a separate construct (container). 
> 
> 	This simplifies figuring operational-state, but divides the config types.
> 
> There are pros & cons either way. It would be good to have some guidance/text around guiding one over another, so that other models can leverage. Otherwise, we are going to end up with yet one more discrepancy (among various protocols YANG models), & confusing if not inefficient modeling.
> 
> Perhaps, we ditch both of the above approaches, and settle on keeping all three of them in the same construct. It might simplify the organization a bit. Of course, that also has 2 options - have all the data types in intended-config, and then in applied-config and then in derived-state. Or have intended-config, applied-config and derived-state for each data type. Latter might be slightly better, given that not every data type will have all three.
> 
> 
> Thoughts? 
> 
> -- 
> Cheers,
> Rajiv Asati
> Distinguished Engineer, Cisco
> 
> 
> * https://tools.ietf.org/html/draft-ietf-netmod-opstate-reqs <https://tools.ietf.org/html/draft-ietf-netmod-opstate-reqs-04>
> https://tools.ietf.org/html/draft-openconfig-netmod-opstate
> 
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod

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