Re: [netmod] RFC 8342 : Query about NMDA Origin for Non-presence containers

Robert Wilton <rwilton@cisco.com> Thu, 27 September 2018 09:49 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 6494C130DD0 for <netmod@ietfa.amsl.com>; Thu, 27 Sep 2018 02:49:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.501
X-Spam-Level:
X-Spam-Status: No, score=-14.501 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, 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 xI1TLX5rrrUZ for <netmod@ietfa.amsl.com>; Thu, 27 Sep 2018 02:49:15 -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 2836C130DC2 for <netmod@ietf.org>; Thu, 27 Sep 2018 02:49:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=4032; q=dns/txt; s=iport; t=1538041755; x=1539251355; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=aUAq0M9M2Bp264ENjHfb02STJX20VillsAOqcQGF6zk=; b=V0gBs6Vk+XyfEf0mJRtrnciZYYYT3TyCAIzLtjiavBbYfEo3i5dZulXd 361kBl35RTTPdvklyq9uuCOVM5N14cH3wbsS3ujhVuLkPliJ6Cf+DxW57 vACAIYH06Cfv+xen7ibrytQ/U+OIQQa72bQfP6uMmjHBW3jzsoc62To5d E=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0AFAABIpqxb/xbLJq1aGQEBAQEBAQEBAQEBAQcBAQEBAQGBUYNzKIN0iBVfjTklllKBeguEbAKEHzQYAQMBAQIBAQJtKIU4AQEBAQMjFS8SDAQLEAEEAQEBAgIjAwICRgkIBgEMBgIBAYMdggKjA4EuhHeFGoELigqBQT+BEicMgjEugUGDJ4MXglcCjkSOTQmQKAYXgUeEVoJhJoYWjwqGEIFCOIFVMxoIGxWDJ4IxjiQ+MI4rAQE
X-IronPort-AV: E=Sophos;i="5.54,310,1534809600"; d="scan'208";a="6830163"
Received: from aer-iport-nat.cisco.com (HELO aer-core-2.cisco.com) ([173.38.203.22]) by aer-iport-2.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Sep 2018 09:49:13 +0000
Received: from [10.63.23.158] (dhcp-ensft1-uk-vla370-10-63-23-158.cisco.com [10.63.23.158]) by aer-core-2.cisco.com (8.15.2/8.15.2) with ESMTP id w8R9nAfe031735; Thu, 27 Sep 2018 09:49:11 GMT
To: Rohit R Ranade <rohitrranade@huawei.com>, Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Cc: "netmod@ietf.org" <netmod@ietf.org>
References: <991B70D8B4112A4699D5C00DDBBF878A6BC4CAFF@dggeml510-mbx.china.huawei.com> <20180927085156.vhfp6pcvpm35r6fb@anna.jacobs.jacobs-university.de> <991B70D8B4112A4699D5C00DDBBF878A6BC4D37B@dggeml510-mbx.china.huawei.com>
From: Robert Wilton <rwilton@cisco.com>
Message-ID: <284d7c28-5112-5a12-abcd-e2ab824924c9@cisco.com>
Date: Thu, 27 Sep 2018 10:49:10 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
MIME-Version: 1.0
In-Reply-To: <991B70D8B4112A4699D5C00DDBBF878A6BC4D37B@dggeml510-mbx.china.huawei.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Content-Language: en-US
X-Outbound-SMTP-Client: 10.63.23.158, dhcp-ensft1-uk-vla370-10-63-23-158.cisco.com
X-Outbound-Node: aer-core-2.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/DEtk07sftOR27R70HqUHrOGOgKw>
Subject: Re: [netmod] RFC 8342 : Query about NMDA Origin for Non-presence containers
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
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, 27 Sep 2018 09:49:17 -0000

Hi Rohit,

Please see inline ...


On 27/09/2018 10:11, Rohit R Ranade wrote:
> Please find inline.
>
> Rohit R Ranade
>
>
> -----Original Message-----
> From: Juergen Schoenwaelder [mailto:j.schoenwaelder@jacobs-university.de]
> Sent: 27 September 2018 14:22
> To: Rohit R Ranade <rohitrranade@huawei.com>
> Cc: netmod@ietf.org
> Subject: Re: [netmod] RFC 8342 : Query about NMDA Origin for Non-presence containers
>
> On Thu, Sep 27, 2018 at 08:40:10AM +0000, Rohit R Ranade wrote:
>> Hi All,
>>
>> Section 5.3.4:
>> "The
>>     origin applies to all configuration nodes except non-presence
>>     containers.  "
>>
>> In ietf-origin YANG module:
>>       md:annotation origin {
>>         type origin-ref;
>>         description
>>           "The 'origin' annotation can be present on any configuration
>>            data node in the operational state datastore.  It specifies
>>            from where the node originated.  If not specified for a given
>>            configuration data node, then the origin is the same as the
>>            origin of its parent node in the data tree.  The origin for
>>            any top-level configuration data nodes must be specified.";
>>       }
>>
>>
>> C.1.  System Example:
>> The root node "system", is config-true and a non-presence container,
>> and in the example, does not have the  "origin" meta-data attribute
>>
>>
>> Keeping all the above points in mind, which is the correct way ? Whether the top-level configuration node should contain the "origin" attribute for Non-presence containers ?
>>
> Let me first clarify the difference between 'a node carrying an origin annotation' and 'an origin annotation applying to a node':
>
> - Any node can 'carry an origin annotation' (but it may not apply to
>    the node). If a node does not 'carry an origin annotation', then the
>    parent node is inspected whether it carries an origin annotation.
>
> - An origin annotation applys to a node if it is a node to which an
>    origin annotation can be applied. Since non-presence containers have
>    meaning by themself, the origin annotation does not apply to
>    non-presence containers (but they may still 'carry an origin
>    annotation'.
>
> Given the requirement stated in the definition md:annotation origin, it seems that the "system" top-level container should have an origin annotation. (One can debate whether this requirement is too strict since in the example an origin annotation of the "system" top-level container would not apply to anything since all the nodes below "system" have explicit origin annotations.)
Give the two statements above from Juergen then for a top level np 
container, the server may return any origin value that it wishes, as 
long as the correct origin is returned (either implicitly or explicitly) 
for all descendant nodes that are not np-containers.

One choice would to always set all top level np containers to origin 
"unknown".

An alternative choice is, if there are no configured (with presence) 
children then set it to "default", but as soon as there is at least one 
configured (with presence) child set it to "intended".

The specification allows any value, and neither choice impart any 
additional useful information to the client, so choose whichever is most 
convenient to implement ...

Thanks,
Rob


> [Rohit R Ranade] So how to decide the origin annotation for top-level non-presence container. Consider the case of "nacm" root node of ietf-netconf-acm module which is a container.
> Consider that "enable-nacm" came via "intended" origin, and "read-default" came via "default" origin.
>        +--rw nacm
>           +--rw enable-nacm?            boolean
>           +--rw read-default?           action-type
>           +--rw write-default?          action-type
>           +--rw exec-default?           action-type
> [Rohit R Ranade] So how to decide the origin for the container, when its child may have mixed origin ?
> /js
>