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

Robert Wilton <rwilton@cisco.com> Tue, 29 May 2018 09:57 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 6A71A126FDC for <netmod@ietfa.amsl.com>; Tue, 29 May 2018 02:57:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.509
X-Spam-Level:
X-Spam-Status: No, score=-14.509 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, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01, 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 kQ4E-twd-5qy for <netmod@ietfa.amsl.com>; Tue, 29 May 2018 02:57:43 -0700 (PDT)
Received: from aer-iport-4.cisco.com (aer-iport-4.cisco.com [173.38.203.54]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0F742126579 for <netmod@ietf.org>; Tue, 29 May 2018 02:57:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=7985; q=dns/txt; s=iport; t=1527587863; x=1528797463; h=subject:to:references:from:message-id:date:mime-version: in-reply-to; bh=cxRWopPI3mbvRkVZPAEX0lTsrJeSsFWSjxUDGSWedG0=; b=HkMRJ8wWJoogtiJfgf+/twrj7zT7Bo81yDnF86jY5yk/pcCSk448bgsb gYRmA0mxXG4BHoKPbxKTSZteZAGZq6dGLhX2010dgr/kEAr6DysBS5qLh eZr3PT/Iei455QvacpN3puVyIn3GDdhbhZ+L3XycvoLauUL9QCXRx6nBQ 4=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0CNAQCgIw1b/xbLJq1bGQEBAQEBAQEBAQEBAQcBAQEBAYJOgVhtEiiMWo1jIYEPjkSGbwsYAQqEA0YCgjY4FAECAQEBAQEBAmwcDIUoAQEBAwEBAStBEAsLGC4nMAYBDAYCAQGDHgKBdwgPpi4fhDmDZYFjBYoKP4EPJAyCXYMRAQGBSoVqAowqjDgJjloGh2eFH4tahTGBWCGBUjMaCBsVO4JDixCFPz4wkCQBAQ
X-IronPort-AV: E=Sophos;i="5.49,455,1520899200"; d="scan'208,217";a="4103827"
Received: from aer-iport-nat.cisco.com (HELO aer-core-4.cisco.com) ([173.38.203.22]) by aer-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 May 2018 09:57:39 +0000
Received: from [10.63.23.83] (dhcp-ensft1-uk-vla370-10-63-23-83.cisco.com [10.63.23.83]) by aer-core-4.cisco.com (8.14.5/8.14.5) with ESMTP id w4T9vdf1001254; Tue, 29 May 2018 09:57:39 GMT
To: Rohit R Ranade <rohitrranade@huawei.com>, "netmod@ietf.org" <netmod@ietf.org>
References: <991B70D8B4112A4699D5C00DDBBF878A6BBB23B2@dggeml510-mbx.china.huawei.com>
From: Robert Wilton <rwilton@cisco.com>
Message-ID: <71e76c7e-4043-d80a-73ac-1759e85cc5d7@cisco.com>
Date: Tue, 29 May 2018 10:57:39 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0
MIME-Version: 1.0
In-Reply-To: <991B70D8B4112A4699D5C00DDBBF878A6BBB23B2@dggeml510-mbx.china.huawei.com>
Content-Type: multipart/alternative; boundary="------------EA8ABC75FD130CE5DC3AAEA2"
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/bdkhdz4lgXh4jmeb5yMsc262Wcg>
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: Tue, 29 May 2018 09:57:46 -0000

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
> https://www.ietf.org/mailman/listinfo/netmod