Re: [netmod] augment YANG 1.0 with YANG 1.1 OK?
Robert Wilton <rwilton@cisco.com> Thu, 26 October 2017 17:53 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 01DF213F5D1 for <netmod@ietfa.amsl.com>; Thu, 26 Oct 2017 10:53:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.5
X-Spam-Level:
X-Spam-Status: No, score=-14.5 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, URIBL_BLOCKED=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 OAn9DeCTItJt for <netmod@ietfa.amsl.com>; Thu, 26 Oct 2017 10:53:10 -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 025EA13F5D0 for <netmod@ietf.org>; Thu, 26 Oct 2017 10:53:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=4190; q=dns/txt; s=iport; t=1509040390; x=1510249990; h=subject:to:references:from:message-id:date:mime-version: in-reply-to:content-transfer-encoding; bh=K0IlOi6InvuFlnnYZ5Y7Wbbd9xEksxPqfsUJvDqnd8Y=; b=VBTntQSdT49zGNRCvS9xBO87ooxwqYWbEVwYarsE0ueCkVkDS3VqH9oS 8IO0DsK98pTIYF7VIEKpbQU5iXp++Z+HAMQdQAZHCOeRc8epFmNCQQTM9 Q5V9jiL699LW5hMR1dvjl+LwUE35kQb51335lwxRFqUqV8GeiIkG7fJdr s=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0COAADpH/JZ/xbLJq1cGQEBAQEBAQEBAQEBBwEBAQEBhTEng3qKH3SQF5ZAghEKhTsChQAYAQIBAQEBAQEBayiFHgEFIw8BBVELDgoCAiYCAlcGAQwGAgEBF4oFqVGCJ4p1AQEBAQEBAQMBAQEBAQEigQ+CH4NXgWkpgwGEb4MqgmEFoXuUeYtyhzmOIodogTkfOEKBJjQhCB0Vgy2CXByBaEA2jEYBAQE
X-IronPort-AV: E=Sophos;i="5.44,301,1505779200"; d="scan'208";a="655696335"
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 Oct 2017 17:53:07 +0000
Received: from [10.61.199.20] ([10.61.199.20]) by aer-core-4.cisco.com (8.14.5/8.14.5) with ESMTP id v9QHr7CZ013799; Thu, 26 Oct 2017 17:53:07 GMT
To: Martin Bjorklund <mbj@tail-f.com>, andy@yumaworks.com, j.schoenwaelder@jacobs-university.de, netmod@ietf.org
References: <CABCOCHTxrxxa0YGtXs8M3x8NGnb0yGJeGPk=6j0s=zsXqtTHNg@mail.gmail.com> <20171025.214929.480782767501855061.mbj@tail-f.com> <CABCOCHTuGGBY40UYg=Xk8Hx5tPHnu=t+pdGvpJ17cwN_0wSu4A@mail.gmail.com> <20171026.121026.1881945352164553624.mbj@tail-f.com>
From: Robert Wilton <rwilton@cisco.com>
Message-ID: <e1c9252d-9e53-ea55-c083-11066a2e64b3@cisco.com>
Date: Thu, 26 Oct 2017 18:53:07 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0
MIME-Version: 1.0
In-Reply-To: <20171026.121026.1881945352164553624.mbj@tail-f.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/mygXFGIY2s4XjHuMitFeiVYqM-I>
Subject: Re: [netmod] augment YANG 1.0 with YANG 1.1 OK?
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, 26 Oct 2017 17:53:12 -0000
Hi, A refined version of the proposed text is below (because "schema" isn't defined): On 26/10/2017 11:10, Martin Bjorklund wrote: > Andy Bierman <andy@yumaworks.com> wrote: >> On Wed, Oct 25, 2017 at 12:49 PM, Martin Bjorklund <mbj@tail-f.com> wrote: >> >>> Andy Bierman <andy@yumaworks.com> wrote: >>>> I think NMDA is creating much more complexity and disruption than is >>>> required. >>>> The original issue was the OpenConfig-style config/state trees. >>>> The WG agreed that an RPC-based solution was needed so that the >>>> YANG modules would not need to change (far too disruptive!). >>>> >>>> Then the IETF proceeds to redo all the YANG modules anyway. >>>> Now the server is allowed to implement the same module differently in >>> each >>>> datastore. >>>> Now comparing the configured and operational value is even harder than >>>> before. >>>> >>>> None of this added complexity was in the OpenConfig proposal. >>>> It was not even possible to have different features and deviations for >>> the >>>> same object in that proposal. >>> Actually, this is not correct. In both OC and the old IETF split tree >>> solutions, the configuration and operational state were modelled with >>> duplicate nodes, and you could certainly deviate these nodes >>> differently. >>> >>> This said, I share your concern about complexity. I also agree that >>> the only model that makes the client simple is that if all objects in >>> the config are also available with the same types in operational >>> state. Otherwise comparison won't work (or be complicated). >>> >>> But at the same time, the converse is not true. I.e., if an object is >>> present in operational, it doesn't have to be configurable. >>> >>> So what I think we want is that the schema for the conventional >>> datastore is a subset of the schema for operational. >>> >>> This would allow an implementation that cannot support configuration >>> of let's say the MTU, to deviate the mtu with "not-supported" in the >>> conventional datastore, but it will still be available for inspection >>> in operational. >>> >>> Does this make sense? >>> >> OK -- deviations for not-supported make sense per datastore >> to resolve the missing-object ambiguity problem. >> It is not realistic to expect every object in a module to be able >> to report its operational state in the same release. >> It is better to report not-supported than return nothing or return the >> configured value as a guess. >> >> If the admin-state and oper-state objects are different, 2 objects should >> be used instead of per-datastore deviations of the syntax of 1 object. > Agreed. > > So based on this, how about this text: > > The schema for <operational> MUST be a superset of the combined > schema used in all configuration datastores except that YANG nodes > supported in a configuration datastore MAY be omitted from > <operational> if a server is not able to accurately report them. Given that "schema" isn't defined, we propose using "datastore schema" instead: NEW: schema node - A node in the schema tree. The formal definition is in RFC 7950. datastore schema - is the combined set of schema nodes for all modules supported by a particular datastore, taking into consideration any deviations and enabled features for that datastore. The below text is changed from "schema" to "datastore schema": 5.1. Conventional Configuration Datastores The conventional configuration datastores are a set of configuration datastores that share exactly the same datastore schema, allowing data to be copied between them. The term is meant as a generic umbrella description of these datastores. The set of datastores include: The proposed new text for operational would change to: The datastore schema for <operational> MUST be a superset of the combined datastore schema used in all configuration datastores except that YANG nodes supported in a configuration datastore MAY be omitted from <operational> if a server is not able to accurately report them. Thanks, Rob > > > /martin > . >
- [netmod] augment YANG 1.0 with YANG 1.1 OK? Andy Bierman
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Martin Bjorklund
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Andy Bierman
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Juergen Schoenwaelder
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Andy Bierman
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Andy Bierman
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Juergen Schoenwaelder
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Juergen Schoenwaelder
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Andy Bierman
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Robert Wilton
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Andy Bierman
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Juergen Schoenwaelder
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Andy Bierman
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Juergen Schoenwaelder
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Andy Bierman
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Robert Wilton
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Martin Bjorklund
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Andy Bierman
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Andy Bierman
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Martin Bjorklund
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Andy Bierman
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Andy Bierman
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Martin Bjorklund
- [netmod] Action and RPC statements [was Re: augme… Robert Wilton
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Robert Wilton
- Re: [netmod] Action and RPC statements [was Re: a… Randy Presuhn
- Re: [netmod] Action and RPC statements [was Re: a… Andy Bierman
- Re: [netmod] Action and RPC statements [was Re: a… Randy Presuhn
- Re: [netmod] Action and RPC statements Martin Bjorklund
- Re: [netmod] Action and RPC statements Robert Wilton
- Re: [netmod] Action and RPC statements Juergen Schoenwaelder
- Re: [netmod] Action and RPC statements Kent Watsen
- Re: [netmod] Action and RPC statements Robert Wilton
- Re: [netmod] Action and RPC statements Juergen Schoenwaelder
- Re: [netmod] Action and RPC statements Robert Wilton
- Re: [netmod] Action and RPC statements Andy Bierman
- Re: [netmod] Action and RPC statements Randy Presuhn
- Re: [netmod] Action and RPC statements Andy Bierman
- Re: [netmod] Action and RPC statements Alexander Clemm
- Re: [netmod] Action and RPC statements Phil Shafer
- Re: [netmod] Action and RPC statements Robert Wilton
- Re: [netmod] Action and RPC statements Robert Wilton
- Re: [netmod] Action and RPC statements Juergen Schoenwaelder
- Re: [netmod] Action and RPC statements Andy Bierman
- Re: [netmod] Action and RPC statements Alexander Clemm
- Re: [netmod] Action and RPC statements Alexander Clemm
- Re: [netmod] Action and RPC statements Juergen Schoenwaelder
- Re: [netmod] Action and RPC statements Phil Shafer
- Re: [netmod] Action and RPC statements Andy Bierman
- Re: [netmod] Action and RPC statements Martin Bjorklund
- Re: [netmod] Action and RPC statements Lou Berger
- Re: [netmod] Action and RPC statements Juergen Schoenwaelder
- Re: [netmod] Action and RPC statements Martin Bjorklund
- Re: [netmod] Action and RPC statements Lou Berger
- Re: [netmod] Action and RPC statements Robert Wilton
- Re: [netmod] Action and RPC statements Lou Berger
- Re: [netmod] Action and RPC statements Robert Wilton
- Re: [netmod] Action and RPC statements Lou Berger
- Re: [netmod] Action and RPC statements Juergen Schoenwaelder
- [netmod] Reset tags RPC [was Re: Action and RPC s… Robert Wilton
- Re: [netmod] Action and RPC statements Lou Berger
- Re: [netmod] Action and RPC statements Andy Bierman
- Re: [netmod] Action and RPC statements Juergen Schoenwaelder
- Re: [netmod] Action and RPC statements Robert Wilton
- Re: [netmod] Action and RPC statements Lou Berger
- Re: [netmod] Action and RPC statements Robert Wilton
- Re: [netmod] Action and RPC statements Lou Berger
- Re: [netmod] Action and RPC statements t.petch