[netmod] YANG tree diagram uses

Michal Vaško <mvasko@cesnet.cz> Tue, 30 January 2018 09:35 UTC

Return-Path: <mvasko@cesnet.cz>
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 0FB69131715 for <netmod@ietfa.amsl.com>; Tue, 30 Jan 2018 01:35:10 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.01
X-Spam-Level:
X-Spam-Status: No, score=-2.01 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, T_RP_MATCHES_RCVD=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cesnet.cz
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 7pzBHFlxXW7P for <netmod@ietfa.amsl.com>; Tue, 30 Jan 2018 01:35:07 -0800 (PST)
Received: from kalendar.cesnet.cz (kalendar.cesnet.cz [78.128.211.34]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D889B1316E6 for <netmod@ietf.org>; Tue, 30 Jan 2018 01:35:03 -0800 (PST)
Received: by kalendar.cesnet.cz (Postfix, from userid 999) id 2A866602D3; Tue, 30 Jan 2018 10:35:01 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cesnet.cz; s=kalendar; t=1517304901; bh=C6ydyMukBcMRJIcT4g7YGg+4HrU5wi5/W3DWgaLTBsQ=; h=To:Date:Subject:From; b=lKsof7IVOR7bX2NDN4+SSau31J70+MyhtYPV95Y+2XFgSZnPsFT3+B+H3rfMMC/5p RDoAk4C0i8xyx+W4WjivU5HxcBslQ5ce7vJBbKbx9hC/L8xlRUp1NlbEedkCHRTSTF fLBilm+F9erT9+rVy2RPSOTv/qvdE3BFighunHo4=
Content-Type: text/plain; charset="utf-8"
To: netmod <netmod@ietf.org>
User-Agent: SOGoMail 2.3.23
MIME-Version: 1.0
Date: Tue, 30 Jan 2018 10:35:01 +0100
Message-ID: <4f1c-5a703c80-79-5fc7eb00@206654228>
X-Forward: 2001:67c:1220:80c:f5:8e35:ef0e:146c
From: Michal Vaško <mvasko@cesnet.cz>
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/E8Djt6qGechU5xOzxtT7PZlE7cU>
Subject: [netmod] YANG tree diagram uses
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, 30 Jan 2018 09:35:10 -0000

Hi,

we have encountered some problem while implementing a feature from draft-ietf-netmod-yang-tree-diagrams-05, specifically not resolving groupings and printing uses names instead (Section 2.2).

We have 2 example models, A and B. A defines a container and a grouping. B defines an augment that adds uses into the container from A and resolves to the grouping from model A.

grouping A:g;
A:c {
  B:uses A:g;
}

Now, if printing model A with the augment not resolving uses we currently print

+--rw c
   +---u B:A:g;

since the uses is foreign. We could not decide what the "correct" output should be and it is likely left to various interpretations but we were wondering what some of you think. Should it perhaps be only "B:g" since the grouping becomes local? But what if the grouping would be from a third model, are 2 prefixes okay? Thanks for your opinions.

Regards,
Michal