Re: [netmod] OpsState Direction Impact on Recommended IETF YANG Model Structure

Robert Wilton <rwilton@cisco.com> Tue, 26 July 2016 16:06 UTC

Return-Path: <rwilton@cisco.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 559D012D8A7 for <netmod@ietfa.amsl.com>; Tue, 26 Jul 2016 09:06:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -15.807
X-Spam-Level:
X-Spam-Status: No, score=-15.807 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.287, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.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 D5_uUwU-3VhN for <netmod@ietfa.amsl.com>; Tue, 26 Jul 2016 09:06:07 -0700 (PDT)
Received: from aer-iport-2.cisco.com (aer-iport-2.cisco.com [173.38.203.52]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B295612D890 for <netmod@ietf.org>; Tue, 26 Jul 2016 08:52:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=8757; q=dns/txt; s=iport; t=1469548379; x=1470757979; h=subject:to:references:cc:from:message-id:date: mime-version:in-reply-to; bh=MyxdzIUxE6Bg/9mlBv1GlTlJ+qVI5RczK7vtsNTps7s=; b=On7hBwKROkDI/jpTMbDq5B52mJClpqmB+oleicIdpAiE32vfJCyVl0Tm AVKWNj7Oni/mcMZw9Qtr1hyr9sA6ZSZYozJL5mVl7o8HMSrKkl+s8dE6w /HEIAJOFGc6pJ5dnPbaC7oV+vI1kAj8koXLd/9upybisswvcCwIPlqrQ2 0=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0DFCQBDhpdX/xbLJq1egnGBTrRLgnaCD4F9hh0CgXETAQEBAQEBAV0nhFwBAQQBI1YFCwsOCioCAlcGAQwIAQEXiA4IqzeNYgEBAQEBAQEBAQEBAQEBAQEBAQEBARyGKoF4glWHQYJaBZkxjnuJVIVrjC2DeCACMoN5O4h7AQEB
X-IronPort-AV: E=Sophos;i="5.28,425,1464652800"; d="scan'208,217";a="636561273"
Received: from aer-iport-nat.cisco.com (HELO aer-core-4.cisco.com) ([173.38.203.22]) by aer-iport-2.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jul 2016 15:52:57 +0000
Received: from [10.63.23.91] (dhcp-ensft1-uk-vla370-10-63-23-91.cisco.com [10.63.23.91]) by aer-core-4.cisco.com (8.14.5/8.14.5) with ESMTP id u6QFqvDe007960; Tue, 26 Jul 2016 15:52:57 GMT
To: Kent Watsen <kwatsen@juniper.net>, netmod WG <netmod@ietf.org>
References: <D3A935F0.6A4DC%acee@cisco.com> <eb15fd23-2c0a-50c4-1ebc-7c0e4867dfd8@cisco.com> <20160721174033.GB54646@elstar.local> <d18f5dd0-64d0-e223-88a9-faa4df4b7866@cisco.com> <DCB3EBBF-5EB1-4C8E-AA55-F59C4B5A8E4D@juniper.net>
From: Robert Wilton <rwilton@cisco.com>
Message-ID: <bed9398c-0e6a-450e-d2ac-b381b6bebf87@cisco.com>
Date: Tue, 26 Jul 2016 16:52:57 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0
MIME-Version: 1.0
In-Reply-To: <DCB3EBBF-5EB1-4C8E-AA55-F59C4B5A8E4D@juniper.net>
Content-Type: multipart/alternative; boundary="------------54A7FBC10514F807C7DB8CB8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/FKoBY5EKaLmV6v1Vq1U_985Zyws>
Subject: Re: [netmod] OpsState Direction Impact on Recommended IETF YANG Model Structure
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: Tue, 26 Jul 2016 16:06:08 -0000


On 25/07/2016 21:03, Kent Watsen wrote:
>
> >> Juergen writes:
>
> >> Bottom line: I think we should continue to follow the model used by
>
> >> the ietf-interfaces model and the ietf-ip model until we have a better
>
> >> solution in place (and subsequently we can deprecate objects that
>
> >> became redundant).
>
> >
>
> > Rob writes:
>
> > This is pretty much what I'm trying to say as well, but in a stronger
>
> > way.  I.e. mandating that all IETF YANG models MUST follow this
>
> > structure, and split config and state into two top level trees.
>
> I agree that a revised datastore model plus matching solutions can
>
> eliminate the need for the interfaces-state convention.  But this would
>
> only apply to client/servers that have been updated to grok the new
>
> approach - right?
>
RW: Yes.

>   If these nodes are subsequently deprecated, or new
>
> modules are created assuming the new approach from the get go, are
>
> we leaving the legacy client/servers behind with no way to get, for
>
> instance, the operational status for system-created interfaces?
>
RW: Yes.

When chatting to Chris Hopps, we had come to conclusion that this may 
not pragmatically matter, but it would still be a violation of the RFCs ...

So my thinking is that if we can't merge "foo-state" into "foo" then 
instead we should have consistent rules that explicitly state that for 
all IETF models "foo" and "foo-state" are separate trees with a 
consistent naming convention and structure.  That should hopefully allow 
tooling to programmatically relate the two separate trees together.  It 
may give a path to allow "foo-state" to be merged into "foo" in future, 
but once IETF has standardized 600+ models with separate sub-trees, I 
cannot see that they would get merged back together again.

What other alternatives are available?  As a WG we need to tell the 
other WGs how the IETF YANG models should be structured.

In short, unfortunately I think that we have probably already missed the 
opportunity to merge "foo" and "foo-state" subtrees together ...

Rob

> It seems that we need to make a hard cutover sooner or later...
>
> Kent  // as a contributor
>