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

Dmytro Shytyi <> Tue, 19 May 2020 15:21 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 6D9803A0979 for <>; Tue, 19 May 2020 08:21:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -2.096
X-Spam-Status: No, score=-2.096 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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: (amavisd-new); dkim=pass (1024-bit key)
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id 2qnV-XDelMuy for <>; Tue, 19 May 2020 08:21:18 -0700 (PDT)
Received: from ( []) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by (Postfix) with ESMTPS id 88A923A095C for <>; Tue, 19 May 2020 08:21:17 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1589901655; cv=none;; s=zohoarc; b=aYglypYPbTkC98k+kzgdZFkFjMVxkb8Shldi6lm0x8P7oKBFEsmOaz0zDlP0YwuCymuupUtccmFOp9o4a2/is86Ti3GK7z/nAlwyM23hCIMhi3k/4XcBq3UEN2yowH5wNhEoVmQiXweeDhO5vTDwQidZmyRcVN9lEhiXNe3xj1A=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;; s=zohoarc; t=1589901655; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=3YcXF4O9adPu+VsS9Dk9JRLFMq138cawnEZpXiF2bwc=; b=OWZedeuKKbu8Q48+vdPCItb/qRFXbq3L3h5yTT/sFrHLdWXfMPT7V+AwT1oAEx5H1zwMZYhsN19buWmX0lHUdB7iXxuxYGe4uaP/UYKZ43Xh2CR3U0VSjW6FrPcpDIA+F0zbGU480qQFEFW3g0LNz589TaFUiPzTcK14dybVKtM=
ARC-Authentication-Results: i=1;; dkim=pass; spf=pass; dmarc=pass header.from=<> header.from=<>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1589901655; s=hs;;; h=Date:From:To:Cc:Message-Id:In-Reply-To:References:Subject:MIME-Version:Content-Type; bh=3YcXF4O9adPu+VsS9Dk9JRLFMq138cawnEZpXiF2bwc=; b=Qh+e9f1NS7DNMOlNxZwWdKVRIkSlKxbp9ViaFRk7Htu4nLopf0eRD5eOqYFoN1hU Xf6Amu2SW/IM7EvMJzmkKT5emferqOwh/QMB5SMkyO1FewG+wEe3J6KzCsEtXxBHQc9 SvOKuKdsNFmsonzr7Dsngq/UV27Ske85L/Lb8Jpc=
Received: from ( []) by with SMTPS id 1589901652641973.2958855238596; Tue, 19 May 2020 17:20:52 +0200 (CEST)
Received: from by with SMTP id 1589901652575333.67279487372286; Tue, 19 May 2020 17:20:52 +0200 (CEST)
Date: Tue, 19 May 2020 17:20:52 +0200
From: Dmytro Shytyi <>
To: "Qin Wu" <>
Cc: "netmod" <>
Message-Id: <>
In-Reply-To: <>
References: <>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_Part_968950_1725743577.1589901652573"
Importance: Medium
User-Agent: Zoho Mail
X-Mailer: Zoho Mail
X-ZohoMailClient: External
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 15:21:20 -0000

Hello Qin,

Thank you for your response!


---- On Tue, 19 May 2020 03:00:58 +0200 Qin Wu <> wrote ----

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!

 Dmytro SHYTYI