Re: [netmod] Proposal to enhance the YANG tree output

Robert Wilton <rwilton@cisco.com> Fri, 15 September 2017 13:34 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 A454B1332E3 for <netmod@ietfa.amsl.com>; Fri, 15 Sep 2017 06:34:01 -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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, 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 567FOLiwWIZW for <netmod@ietfa.amsl.com>; Fri, 15 Sep 2017 06:34:00 -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 EDEF01332CD for <netmod@ietf.org>; Fri, 15 Sep 2017 06:33:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1691; q=dns/txt; s=iport; t=1505482440; x=1506692040; h=subject:to:references:from:message-id:date:mime-version: in-reply-to:content-transfer-encoding; bh=bWlwR1OuLwlOuchfmfAkGG8RiUxwcwda4mvn5yNcL18=; b=IEiOId77uKtZegVk/2qktVatx3R7izczqbZx0g0DtMVrgeSXvJ9S1FJo ett9AcVYovUazARzHGMNfSYsQN6jUhMTY1DNjXaMVM6wqbQHkQ/V/JZdY LKRWi4izB6VCm3hk1dM0zHL9M0KYjkx/n+BF/oA3BgSaZRdU1CSAIGKXD c=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0C+AQB41rtZ/xbLJq1dGQEBAQEBAQEBA?= =?us-ascii?q?QEBBwEBAQEBhSyEHIsUkEgrmDkKhTwChG0UAQIBAQEBAQEBayiFGQEFIxVRCw4?= =?us-ascii?q?KAgImAgJXBgEMCAEBii+rf4InizIBAQEBAQEBAQEBAQEBAQEBAQEBAQEdgQ6CH?= =?us-ascii?q?YNSgg4LgnKIC4JgBZEuj1aUVYtXhyGNXYdVgTk2IYENMiEIHBWHZj+JRwEBAQ?=
X-IronPort-AV: E=Sophos;i="5.42,396,1500940800"; d="scan'208";a="657486739"
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; 15 Sep 2017 13:33:58 +0000
Received: from [10.63.23.66] (dhcp-ensft1-uk-vla370-10-63-23-66.cisco.com [10.63.23.66]) by aer-core-4.cisco.com (8.14.5/8.14.5) with ESMTP id v8FDXv5T018675; Fri, 15 Sep 2017 13:33:58 GMT
To: Martin Bjorklund <mbj@tail-f.com>, netmod@ietf.org
References: <CABCOCHQZ4zJ3p_4oB1Pu=1H60btzrccqTx7rUtsRsF0reXgrYw@mail.gmail.com> <1505470900.18681.0.camel@nic.cz> <5b512435-cebd-3534-eeb3-649154450d81@cisco.com> <20170915.134007.262763963470255554.mbj@tail-f.com> <20170915121552.7hjqodubjgkvvr7i@elstar.local>
From: Robert Wilton <rwilton@cisco.com>
Message-ID: <4f5edcd1-ed53-4877-1f1f-8c17535550e3@cisco.com>
Date: Fri, 15 Sep 2017 14:33:57 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0
MIME-Version: 1.0
In-Reply-To: <20170915121552.7hjqodubjgkvvr7i@elstar.local>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/0LN5Ez16RqXBsxauECF9hdIG8g8>
Subject: Re: [netmod] Proposal to enhance the YANG tree output
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: Fri, 15 Sep 2017 13:34:01 -0000

Perhaps "-X" could be used for "execute" instead?

Thanks,
Rob


On 15/09/2017 13:15, Juergen Schoenwaelder wrote:
> On Fri, Sep 15, 2017 at 01:40:07PM +0200, Martin Bjorklund wrote:
>> Also, what is mounted under a mount point is not defined in the
>> schema, so a tool cannot generate this from the YANG modules.
>>
> This sounds broken. Manually edited tree diagrams will be a source of
> pain.
>   
>>> I definitely think that "x" is a bit confusing since it both means
>>> "RPC" and also "status deprecated" depending on where it is.
>> Possibly.  "x" for "deprecated" comes from smidump.  "x" for "execute"
>> (rwx) is of course common.  So if we should change something it is
>> probably "x" for "deprecated".  But "x" looks better than "d"...
>>
> Yep, I am probably guilty for the deprecated 'x'. For obsolete,
> smidump creates an 'o', so you have
>
>          +--- foo
>          x--- bar
>          o--- baz
>
> and I guess I visually liked it (and there was no execute in SNMP
> land). I guess I still kind of like this. If I would start from
> scratch for YANG, I would probably not use
>
>         rw  for configuration data
>         ro  for non-configuration data
>         -x  for rpcs and actions
>         -n  for notifications
>         mp   for schema mount points
>
> but rather single letters, e.g.
>
>         c  for configuration data
>         s  for non-configuration data
>         r  for rpcs and actions
>         n  for notifications
>         m  for schema mount points
>
> but this is a significant change to what we have done so far and
> finding agreement on a new notation is likely difficult.
>
> /js
>