Re: [netmod] error: "Data model 'XXX' not found" during yang validation.

Qin Wu <bill.wu@huawei.com> Tue, 19 May 2020 01:01 UTC

Return-Path: <bill.wu@huawei.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 9492E3A0DF1 for <netmod@ietfa.amsl.com>; Mon, 18 May 2020 18:01:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.003
X-Spam-Level:
X-Spam-Status: No, score=0.003 tagged_above=-999 required=5 tests=[HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 l-krccbRcf0U for <netmod@ietfa.amsl.com>; Mon, 18 May 2020 18:01:07 -0700 (PDT)
Received: from huawei.com (lhrrgout.huawei.com [185.176.76.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E26B43A0DEF for <netmod@ietf.org>; Mon, 18 May 2020 18:01:06 -0700 (PDT)
Received: from lhreml743-chm.china.huawei.com (unknown [172.18.7.106]) by Forcepoint Email with ESMTP id 8CAC0661D0A92CE5CD13 for <netmod@ietf.org>; Tue, 19 May 2020 02:01:04 +0100 (IST)
Received: from lhreml743-chm.china.huawei.com (10.201.108.193) by lhreml743-chm.china.huawei.com (10.201.108.193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Tue, 19 May 2020 02:01:04 +0100
Received: from DGGEML422-HUB.china.huawei.com (10.1.199.39) by lhreml743-chm.china.huawei.com (10.201.108.193) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.1.1913.5 via Frontend Transport; Tue, 19 May 2020 02:01:03 +0100
Received: from DGGEML511-MBS.china.huawei.com ([169.254.4.224]) by dggeml422-hub.china.huawei.com ([10.1.199.39]) with mapi id 14.03.0487.000; Tue, 19 May 2020 09:00:58 +0800
From: Qin Wu <bill.wu@huawei.com>
To: Dmytro Shytyi <ietf.dmytro@shytyi.net>, netmod <netmod@ietf.org>
Thread-Topic: [netmod] error: "Data model 'XXX' not found" during yang validation.
Thread-Index: AdYteAwmK7eLoIoES+OeEWFAKvNgEg==
Date: Tue, 19 May 2020 01:00:58 +0000
Message-ID: <B8F9A780D330094D99AF023C5877DABAAD6D7869@dggeml511-mbs.china.huawei.com>
Accept-Language: zh-CN, en-US
Content-Language: zh-CN
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.138.33.123]
Content-Type: multipart/alternative; boundary="_000_B8F9A780D330094D99AF023C5877DABAAD6D7869dggeml511mbschi_"
MIME-Version: 1.0
X-CFilter-Loop: Reflected
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/UHLD-ibfDP0t9Lrsh9m6iYi3Rxw>
Subject: Re: [netmod] error: "Data model 'XXX' not found" during yang validation.
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: Tue, 19 May 2020 01:01:10 -0000

I think It is the datatracker pyang tool’s bug, ieee-dot1Q-types is YANG model from other SDO and  not integrated during compilation.
If you run pyang check locally, this issue is gone.
-Qin
发件人: netmod [mailto:netmod-bounces@ietf.org] 代表 Dmytro Shytyi
发送时间: 2020年5月18日 23:14
收件人: netmod <netmod@ietf.org>
主题: [netmod] error: "Data model 'XXX' not found" during yang validation.

Hello netmod participants!

How we should address an import of modules produced by non IETF community? Was it already discussed? (If yes, I'm sorry to dublicate... Could you please send me some links?)

In the  uCPE draft https://datatracker.ietf.org/doc/draft-shytyi-opsawg-vysm/?include_text=1 we are reffering/including multiple different RFCs and drafts produced by IETF community such as:


   o  ietf-interfaces

   o  ietf-ip

   o  ietf-logical-network-element

   o  ietf-network

   o  ietf-network-instance

   o  ietf-ietf-network-topology

   o  ietf-routing-types

   o  ietf-te-topology

   o  ietf-te-topology-sf

   o  ietf-te-types

   o  ietf-yang-schema-mount
And everything went good until we imported the ieee-dot1Q-types module... (to support VLANs on the NIs)


yanglint SO 1.6.7: yanglint --verbose -p {rfclib} -p {draftlib} -p {tmplib} {model} -i:

err : Data model "ieee-dot1Q-types" not found.

err : Importing "ieee-dot1Q-types" module into "ietf-ucpe-ni-properties" failed.
Thank you!
______________
Dmytro SHYTYI