[netmod] (no subject)

Zhuzhiguo <zhuzhiguo@huawei.com> Tue, 07 November 2017 11:59 UTC

Return-Path: <zhuzhiguo@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 B70E013FE31 for <netmod@ietfa.amsl.com>; Tue, 7 Nov 2017 03:59:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.22
X-Spam-Level:
X-Spam-Status: No, score=-4.22 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-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 3UoFxkjlukn4 for <netmod@ietfa.amsl.com>; Tue, 7 Nov 2017 03:59:18 -0800 (PST)
Received: from lhrrgout.huawei.com (lhrrgout.huawei.com [194.213.3.17]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3582613FE36 for <netmod@ietf.org>; Tue, 7 Nov 2017 03:59:17 -0800 (PST)
Received: from 172.18.7.190 (EHLO LHREML710-CAH.china.huawei.com) ([172.18.7.190]) by lhrrg01-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id DZI68995; Tue, 07 Nov 2017 11:59:15 +0000 (GMT)
Received: from NKGEML414-HUB.china.huawei.com (10.98.56.75) by LHREML710-CAH.china.huawei.com (10.201.108.33) with Microsoft SMTP Server (TLS) id 14.3.361.1; Tue, 7 Nov 2017 11:59:14 +0000
Received: from NKGEML513-MBS.china.huawei.com ([169.254.2.198]) by nkgeml414-hub.china.huawei.com ([10.98.56.75]) with mapi id 14.03.0361.001; Tue, 7 Nov 2017 19:59:05 +0800
From: Zhuzhiguo <zhuzhiguo@huawei.com>
To: "netmod@ietf.org" <netmod@ietf.org>
CC: "Liubin (Nickylba)" <nickylba.liubin@huawei.com>, "Zhengguangying (Walker)" <zhengguangying@huawei.com>, "Guopeipei (Peipei Guo)" <guopeipei@huawei.com>, lianji <lianji@huawei.com>, "Liquan (Liquan, NOS CSD)" <liquan92@huawei.com>
Thread-Topic: [netmod]
Thread-Index: AdNXv7mQK9BH9+gqTUuoBnBBNmJ74A==
Date: Tue, 07 Nov 2017 11:59:05 +0000
Message-ID: <90D4AD4FAC4AD946A3593922318387CC9C2272D9@nkgeml513-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.134.175.187]
Content-Type: multipart/alternative; boundary="_000_90D4AD4FAC4AD946A3593922318387CC9C2272D9nkgeml513mbschi_"
MIME-Version: 1.0
X-CFilter-Loop: Reflected
X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020206.5A01A013.01D9, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=169.254.2.198, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32
X-Mirapoint-Loop-Id: e9878f225c8535b92cd5551542c1463f
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/CoDrtQX8lPYVsIKdJv9L0PcMZ_Q>
Subject: [netmod] (no subject)
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.22
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, 07 Nov 2017 11:59:20 -0000

Hi,

I have one question about how to implement YANG module that import other-module which is NOT be implemented?

For example, module-A import module-B, but any nodes that depend on B are not-supported

Module A {
   import module-B;
}

There are two way to mark module-B is not really in use:

Option-1: refer conformance-type in RFC 7895 (ietf-yang-library), mark module-A as "implement", module-B is "import"
This way seems work, but some teammates think it may not comply with RFC. And we also argue about what module-B should be presented in <hello>

<capabilities>
   <capability>module-A</capability>
   <capability>module-B</capability>            ===>should any "import" module MUST be sent by server to client also?
<capabilities>

Option-2: mark module-B as "implement" also, but mark all-nodes as deviated
This way seems work also, but it will cause NETCONF-client and NETCONF-server load module that have NO node that can be accessed

Thanks.