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

Dmytro Shytyi <ietf.dmytro@shytyi.net> Tue, 19 May 2020 15:21 UTC

Return-Path: <ietf.dmytro@shytyi.net>
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 6D9803A0979 for <netmod@ietfa.amsl.com>; Tue, 19 May 2020 08:21:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.096
X-Spam-Level:
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: 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 2qnV-XDelMuy for <netmod@ietfa.amsl.com>; Tue, 19 May 2020 08:21: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 88A923A095C for <netmod@ietf.org>; Tue, 19 May 2020 08:21:17 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1589901655; cv=none; d=zohomail.eu; s=zohoarc; b=aYglypYPbTkC98k+kzgdZFkFjMVxkb8Shldi6lm0x8P7oKBFEsmOaz0zDlP0YwuCymuupUtccmFOp9o4a2/is86Ti3GK7z/nAlwyM23hCIMhi3k/4XcBq3UEN2yowH5wNhEoVmQiXweeDhO5vTDwQidZmyRcVN9lEhiXNe3xj1A=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; 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; 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=1589901655; 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=3YcXF4O9adPu+VsS9Dk9JRLFMq138cawnEZpXiF2bwc=; b=Qh+e9f1NS7DNMOlNxZwWdKVRIkSlKxbp9ViaFRk7Htu4nLopf0eRD5eOqYFoN1hU Xf6Amu2SW/IM7EvMJzmkKT5emferqOwh/QMB5SMkyO1FewG+wEe3J6KzCsEtXxBHQc9 SvOKuKdsNFmsonzr7Dsngq/UV27Ske85L/Lb8Jpc=
Received: from sender.zoho.eu (172.26.23.79 [172.26.23.79]) by mx.zoho.eu with SMTPS id 1589901652641973.2958855238596; Tue, 19 May 2020 17:20:52 +0200 (CEST)
Received: from mail.zoho.eu by mx.zoho.eu 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 <ietf.dmytro@shytyi.net>
To: "Qin Wu" <bill.wu@huawei.com>
Cc: "netmod" <netmod@ietf.org>
Message-Id: <1722d85f25c.f22b1d60306964.4807462108485263046@shytyi.net>
In-Reply-To: <B8F9A780D330094D99AF023C5877DABAAD6D7869@dggeml511-mbs.china.huawei.com>
References: <B8F9A780D330094D99AF023C5877DABAAD6D7869@dggeml511-mbs.china.huawei.com>
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: <https://mailarchive.ietf.org/arch/msg/netmod/7mGsAKGyzBZjgpSqCr1sW5uwYiY>
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 15:21:20 -0000

Hello Qin,



Thank you for your response!

______________
Dmytro SHYTYI





---- On Tue, 19 May 2020 03:00:58 +0200 Qin Wu <bill.wu@huawei.com> 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.

-Qin

发件人: netmod [mailto:mailto:netmod-bounces@ietf.org] 代表  Dmytro Shytyi
 发送时间: 2020年5月18日 23:14
 收件人: netmod <mailto: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