Re: [netmod] draft-ietf-netconf-rfc7895bis-06 deviation query

Rohit R Ranade <rohitrranade@huawei.com> Wed, 30 May 2018 05:21 UTC

Return-Path: <rohitrranade@huawei.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 6B28612FA7C for <netmod@ietfa.amsl.com>; Tue, 29 May 2018 22:21:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.19
X-Spam-Level:
X-Spam-Status: No, score=-4.19 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_KAM_HTML_FONT_INVALID=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 ej8kvdj8pC04 for <netmod@ietfa.amsl.com>; Tue, 29 May 2018 22:21:44 -0700 (PDT)
Received: from huawei.com (lhrrgout.huawei.com [194.213.3.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C3A6512F4CA for <netmod@ietf.org>; Tue, 29 May 2018 22:21:43 -0700 (PDT)
Received: from lhreml706-cah.china.huawei.com (unknown [172.18.7.108]) by Forcepoint Email with ESMTP id 7C3CD74A320A4 for <netmod@ietf.org>; Wed, 30 May 2018 06:21:37 +0100 (IST)
Received: from DGGEML422-HUB.china.huawei.com (10.1.199.39) by lhreml706-cah.china.huawei.com (10.201.108.47) with Microsoft SMTP Server (TLS) id 14.3.382.0; Wed, 30 May 2018 06:21:38 +0100
Received: from DGGEML510-MBX.china.huawei.com ([169.254.2.161]) by dggeml422-hub.china.huawei.com ([10.1.199.39]) with mapi id 14.03.0382.000; Wed, 30 May 2018 13:21:29 +0800
From: Rohit R Ranade <rohitrranade@huawei.com>
To: Robert Wilton <rwilton@cisco.com>, "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] draft-ietf-netconf-rfc7895bis-06 deviation query
Thread-Index: AdP3LxM2Qa00BJMETVeCiSY+xVpFu///grGA//9vcjCAAKFHAP/+R98Q
Date: Wed, 30 May 2018 05:21:29 +0000
Message-ID: <991B70D8B4112A4699D5C00DDBBF878A6BBB2C11@dggeml510-mbx.china.huawei.com>
References: <991B70D8B4112A4699D5C00DDBBF878A6BBB23B2@dggeml510-mbx.china.huawei.com> <71e76c7e-4043-d80a-73ac-1759e85cc5d7@cisco.com> <991B70D8B4112A4699D5C00DDBBF878A6BBB241F@dggeml510-mbx.china.huawei.com> <c8d34f1f-8dcc-2915-0d77-98300ae8067e@cisco.com>
In-Reply-To: <c8d34f1f-8dcc-2915-0d77-98300ae8067e@cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.18.150.121]
Content-Type: multipart/alternative; boundary="_000_991B70D8B4112A4699D5C00DDBBF878A6BBB2C11dggeml510mbxchi_"
MIME-Version: 1.0
X-CFilter-Loop: Reflected
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/t01qjP15rFqFGQgo1adY0_UEbdY>
Subject: Re: [netmod] draft-ietf-netconf-rfc7895bis-06 deviation query
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: Wed, 30 May 2018 05:21:47 -0000

Hi Robert,

An example has been shown in the "Appendix B.  Example YANG Library Instance for a Basic Server"

     <schema>
       <name>config-schema</name>
       <module-set>config-modules</module-set>
     </schema>
     <schema>
       <name>state-schema</name>
       <module-set>config-modules</module-set>
       <module-set>state-modules</module-set>
     </schema>

     <datastore>
       <name>ds:startup</name>
       <schema>config-schema</schema>
     </datastore>
     <datastore>
       <name>ds:running</name>
       <schema>config-schema</schema>
     </datastore>
     <datastore>
       <name>ds:operational</name>
       <schema>state-schema</schema>
     </datastore>

This example shows <operational> having state-modules, but <running> has only configuration modules. This and introduction statement, convinced me the <operational> and <running> will have different schema in a Basic server.

Also what does it mean that state-modules have been "implemented" in the <running> data-store ?

With Regards,
Rohit R Ranade

From: Robert Wilton [mailto:rwilton@cisco.com]
Sent: 29 May 2018 16:28
To: Rohit R Ranade <rohitrranade@huawei.com>; netmod@ietf.org
Subject: Re: [netmod] draft-ietf-netconf-rfc7895bis-06 deviation query


Hi Rohit,

If you have a module, "mod-state-only", that only contains "config false" nodes then either of the following approaches is valid:

(1) You include the "mod-state-only" module in the schema for both conventional datastores and <operational>.  All config false leaves will be ignored anyway for the configuration datastores.

(1) You define separate schema for the conventional datastores vs operational.  "mod-state-only" isn't present in the schema for the conventional datastores, but is present in <operational>.

Either approach is valid, and I don't recall the YANG library bis draft stating any preference.

Thanks,
Rob

On 29/05/2018 11:44, Rohit R Ranade wrote:
Hi Robert,

The Introduction section has :
"
Furthermore, the operational state datastore may support non-configurable YANG modules in addition to
   the YANG modules supported by conventional configuration datastores.
"
I infer that in the new Yang-library structure,  the schema for "conventional" data-stores should not include the non-configurable YANG module. Is my inference correct ?

With Regards,
Rohit R Ranade
From: Robert Wilton [mailto:rwilton@cisco.com]
Sent: 29 May 2018 15:28
To: Rohit R Ranade <rohitrranade@huawei.com><mailto:rohitrranade@huawei.com>; netmod@ietf.org<mailto:netmod@ietf.org>
Subject: Re: [netmod] draft-ietf-netconf-rfc7895bis-06 deviation query


Hi Rohit,

On 29/05/2018 10:35, Rohit R Ranade wrote:
Hi All,

Consider the below YANG tree, which contains both "rw" and "ro" nodes.

module: ietf-interfaces
    +--rw interfaces
    |  +--rw interface* [name]
    |     +--rw name                        string
    |     +--rw description?                string
    |     +--rw type                        identityref
    |     +--rw enabled?                    boolean
    |     +--rw link-up-down-trap-enable?   enumeration {if-mib}?
    |     +--ro admin-status                enumeration {if-mib}?
    |     +--ro oper-status                 enumeration
    |     +--ro last-change?                yang:date-and-time
    |     +--ro if-index                    int32 {if-mib}?
    |     +--ro phys-address?               yang:phys-address
    |     +--ro higher-layer-if*            interface-ref

>From what I understand, in the new yang-library structure the schema for <operational> data-store will have the complete YANG tree. The schema for <running> will need to add deviations with "not-supported" for all the "ro" nodes for this module ?
No need for the deviations for <running>.  <running> only contains the "config true" parts of the schema.

So, for a normal, NMDA compliant server, the same schema can be used for all datastores.

Thanks,
Rob





With Regards,
Rohit R Ranade






_______________________________________________

netmod mailing list

netmod@ietf.org<mailto:netmod@ietf.org>

https://www.ietf.org/mailman/listinfo/netmod