Re: [OPSAWG] Device profile in draft-shytyi-opsawg-vysm and YANG packages

Dmytro Shytyi <ietf.dmytro@shytyi.net> Mon, 18 May 2020 19:00 UTC

Return-Path: <ietf.dmytro@shytyi.net>
X-Original-To: opsawg@ietfa.amsl.com
Delivered-To: opsawg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 425563A107D; Mon, 18 May 2020 12:00:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.196
X-Spam-Level:
X-Spam-Status: No, score=-0.196 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=shytyi.net
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 XVNlSc7Mfiq2; Mon, 18 May 2020 12:00:18 -0700 (PDT)
Received: from sender11-of-o52.zoho.eu (sender11-of-o52.zoho.eu [31.186.226.238]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EAEDB3A0DE1; Mon, 18 May 2020 12:00:04 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1589828399; cv=none; d=zohomail.eu; s=zohoarc; b=JTHrEIBvkXp7YegRXL71UQC0j+Ak6QZ3265ofb6Hiea9QiFQUAGIv1BKT0rkwyqYgzQShbFoYWbFbX8GkzR20Syk/Zcx10JdJEa0MI6HCpw19adsdfuMhvvhva673f3P94G2BeK3uLr6MaQABOQi4dnesMoZNRC90g7MAGJlDzI=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1589828399; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=F+35Skb7lT5Mla64JSbJKl943xywSbD6dR5lij3jemU=; b=BMKUbF6arIOXqwPRT4C4tZjmp+H3l5LpvcNhiEl9O1xVMI9mrTmtn63QFFguQilzeG/Cg8XDUrTucerp0HejGPDVfsmvt7BIgZ4XldC7qY4QiPpK1DKuXFKtWO3c6/0rmeVqK0UMoM+EghXUTkR0/cmdWLui91vju4R7NXeXjRk=
ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=shytyi.net; spf=pass smtp.mailfrom=ietf.dmytro@shytyi.net; dmarc=pass header.from=<ietf.dmytro@shytyi.net> header.from=<ietf.dmytro@shytyi.net>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1589828399; s=hs; d=shytyi.net; i=ietf.dmytro@shytyi.net; h=Date:From:To:Cc:Message-Id:In-Reply-To:References:Subject:MIME-Version:Content-Type; bh=F+35Skb7lT5Mla64JSbJKl943xywSbD6dR5lij3jemU=; b=dYyt8U50k32DFzrlSVZlrjgQ2aIoWZzo+8enTjP2P1SVBo9tejkv9OiYPY89K1yy x0NF2Ch17NMrLfsoQsNyRkpkrMO/PZBE21b5Lai1a0c2HSodmrtiN24iSupMvJfiBT5 FVUMFsldXMuJUpe4k2QYvdt1Gt6cEV/81vNx9IEk=
Received: from sender.zoho.eu (172.26.23.31 [172.26.23.31]) by mx.zoho.eu with SMTPS id 1589828398120522.1874364396281; Mon, 18 May 2020 20:59:58 +0200 (CEST)
Received: from mail.zoho.eu by mx.zoho.eu with SMTP id 1589828397994619.7070965919812; Mon, 18 May 2020 20:59:57 +0200 (CEST)
Date: Mon, 18 May 2020 20:59:57 +0200
From: Dmytro Shytyi <ietf.dmytro@shytyi.net>
To: "Rob Wilton (rwilton)" <rwilton@cisco.com>
Cc: "draft-shytyi-opsawg-vysm@ietf.org" <draft-shytyi-opsawg-vysm@ietf.org>, "opsawg@ietf.org" <opsawg@ietf.org>, "draft-ietf-netmod-yang-packages@ietf.org" <draft-ietf-netmod-yang-packages@ietf.org>
Message-Id: <17229282ba7.e89cbf4d279790.2662904133268436346@shytyi.net>
In-Reply-To: <MN2PR11MB4366014DA047C8D6303F9E64B5D80@MN2PR11MB4366.namprd11.prod.outlook.com>
References: <MN2PR11MB4366014DA047C8D6303F9E64B5D80@MN2PR11MB4366.namprd11.prod.outlook.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_Part_874220_1965235202.1589828397992"
Importance: Medium
User-Agent: Zoho Mail
X-Mailer: Zoho Mail
X-ZohoMailClient: External
Archived-At: <https://mailarchive.ietf.org/arch/msg/opsawg/iKW-TE4bfAqsBx7F9VHZkT7W3OE>
Subject: Re: [OPSAWG] Device profile in draft-shytyi-opsawg-vysm and YANG packages
X-BeenThere: opsawg@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: OPSA Working Group Mail List <opsawg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/opsawg>, <mailto:opsawg-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/opsawg/>
List-Post: <mailto:opsawg@ietf.org>
List-Help: <mailto:opsawg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/opsawg>, <mailto:opsawg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 18 May 2020 19:00:26 -0000

Hello Rob,



Sorry for late response.
Thank you for your comment.
Indeed this document seems to be very interesting! (https://datatracker.ietf.org/doc/draft-ietf-netmod-yang-packages/)




After reading the "https://datatracker.ietf.org/doc/draft-ietf-netmod-yang-packages/", as you mentioned, it seems like current version of "netmod-yang-packages" does not describe the schema mounts.



Maybe in this case we could consider multiple points:

- If I understood correctly, one of the possible solutions is:  adding to each module in the package the "mountpoint" field.

- When we have augmentation statement in the YANG module maybe we should add it to the "mountpoint" field too.

- For import-only packages maybe it is a good idea to add an array mount point with two elements: "pakage_name-where-module-that-is-augmented-located" and "augmentation_path-to-module".

I.E. when we have:

       module m_A - initial module     

      module m_B - module augments module m_A.
      package p_A- package where module m_A is located .

      package p_B- package where is located a module m_B that augments m_A.

We will have in the package p_B for module m_B mountpoint with two elements: " p_A" and "augmentation_path-inside-module-m_A".


Indeed it could be interesting to build a package definition for a uCPE profile.



______________
Dmytro SHYTYI





---- On Thu, 16 Apr 2020 12:44:15 +0200 Rob Wilton (rwilton) <mailto:rwilton@cisco.com> wrote ----



Hi,

 

This document seems to define a device profile for a uCPE devices (e.g. section 5 lists a set of YANG modules), along with a YANG module defining some extra properties for an LNE.

 

I didn’t know whether you are aware of the work in NETMOD for defining YANG packages (https://datatracker.ietf.org/doc/draft-ietf-netmod-yang-packages/), but
 it might be interesting to see what a package definition for a uCPE profile looks like.

 

One area that would need to be investigated is the use of schema mounts.  I.e. for the package definition to be useful and correct it, the package definition may need to be extended to specify that some modules are mounted at particular
 points in the schema (rather than at the root).

 

Regards,
 Rob
 

[As an individual contributor]