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

Qin Wu <> Tue, 19 May 2020 01:01 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 9492E3A0DF1 for <>; Mon, 18 May 2020 18:01:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: 0.003
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 ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id l-krccbRcf0U for <>; Mon, 18 May 2020 18:01:07 -0700 (PDT)
Received: from ( []) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by (Postfix) with ESMTPS id E26B43A0DEF for <>; Mon, 18 May 2020 18:01:06 -0700 (PDT)
Received: from (unknown []) by Forcepoint Email with ESMTP id 8CAC0661D0A92CE5CD13 for <>; Tue, 19 May 2020 02:01:04 +0100 (IST)
Received: from ( by ( 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 ( by ( 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 ([]) by ([]) with mapi id 14.03.0487.000; Tue, 19 May 2020 09:00:58 +0800
From: Qin Wu <>
To: Dmytro Shytyi <>, netmod <>
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: <>
Accept-Language: zh-CN, en-US
Content-Language: zh-CN
x-originating-ip: []
Content-Type: multipart/alternative; boundary="_000_B8F9A780D330094D99AF023C5877DABAAD6D7869dggeml511mbschi_"
MIME-Version: 1.0
X-CFilter-Loop: Reflected
Archived-At: <>
Subject: Re: [netmod] error: "Data model 'XXX' not found" during yang validation.
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-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.
发件人: netmod [] 代表 Dmytro Shytyi
发送时间: 2020年5月18日 23:14
收件人: netmod <>
主题: [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 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!