[netmod] Hi all, one issue about YANG deviate's Substatements

"Zhengguangying (Walker)" <zhengguangying@huawei.com> Tue, 21 February 2017 08:33 UTC

Return-Path: <zhengguangying@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 6CFB1129893 for <netmod@ietfa.amsl.com>; Tue, 21 Feb 2017 00:33:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.221
X-Spam-Level:
X-Spam-Status: No, score=-4.221 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, RP_MATCHES_RCVD=-0.001, 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 7Zp4AVSoyCAP for <netmod@ietfa.amsl.com>; Tue, 21 Feb 2017 00:33:06 -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 C3A99129892 for <netmod@ietf.org>; Tue, 21 Feb 2017 00:33:05 -0800 (PST)
Received: from 172.18.7.190 (EHLO lhreml709-cah.china.huawei.com) ([172.18.7.190]) by lhrrg01-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id DHM10828; Tue, 21 Feb 2017 08:33:03 +0000 (GMT)
Received: from NKGEML411-HUB.china.huawei.com (10.98.56.70) by lhreml709-cah.china.huawei.com (10.201.108.32) with Microsoft SMTP Server (TLS) id 14.3.301.0; Tue, 21 Feb 2017 08:32:52 +0000
Received: from NKGEML513-MBS.china.huawei.com ([169.254.2.43]) by nkgeml411-hub.china.huawei.com ([10.98.56.70]) with mapi id 14.03.0235.001; Tue, 21 Feb 2017 16:32:41 +0800
From: "Zhengguangying (Walker)" <zhengguangying@huawei.com>
To: "netmod@ietf.org" <netmod@ietf.org>, "Qudan (Beijing-NOS)" <qudan.qudan@huawei.com>, "Guopeipei (Peipei Guo)" <guopeipei@huawei.com>, Yangang <yangang@huawei.com>
Thread-Topic: Hi all, one issue about YANG deviate's Substatements
Thread-Index: AdKMHQ/ctY80IV+HTn2lT6clGq6QXA==
Date: Tue, 21 Feb 2017 08:32:41 +0000
Message-ID: <381D7D55085B1E4D8B581BD652E1E140B2A1B7A3@nkgeml513-mbs.china.huawei.com>
Accept-Language: zh-CN, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.135.34.88]
Content-Type: multipart/alternative; boundary="_000_381D7D55085B1E4D8B581BD652E1E140B2A1B7A3nkgeml513mbschi_"
MIME-Version: 1.0
X-CFilter-Loop: Reflected
X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020205.58ABFB40.0017, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=169.254.2.43, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32
X-Mirapoint-Loop-Id: 2bb2b1a5aae10944a0bdda888b3dba41
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/IDqVNJooXNBZnwbeiMMwHf7Os8Y>
Subject: [netmod] Hi all, one issue about YANG deviate's Substatements
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.17
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, 21 Feb 2017 08:33:08 -0000

Hi all,

  When we define YANG models, there has one issue about "deviate's Substatements"

  In section 7.20.3.2.  The "deviate" Statement given the Substatements supported, but "when" not there.
config       | 7.21.1       | 0..1        |
               | default      | 7.6.4, 7.7.4 | 0..n        |
               | mandatory    | 7.6.5        | 0..1        |
               | max-elements | 7.7.6        | 0..1        |
               | min-elements | 7.7.5        | 0..1        |
               | must         | 7.5.3        | 0..n        |
               | type         | 7.4          | 0..1        |
               | unique       | 7.8.3        | 0..n        |
               | units        | 7.3.3        | 0..1        |
               +--------------+--------------+-------------+
 Now, we have the scenario to add "when" constrains when deviate the existed YANG module, how I can do it?

 May be it need extend the Substatements of "devite" to add "when", what's yours opinion, please help to share, thanks.

Thanks & regards

Walker (Guangying zheng)