Re: [Rtg-yang-coord] naive question ??
Qin Wu <bill.wu@huawei.com> Thu, 12 February 2015 03:54 UTC
Return-Path: <bill.wu@huawei.com>
X-Original-To: rtg-yang-coord@ietfa.amsl.com
Delivered-To: rtg-yang-coord@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1])
by ietfa.amsl.com (Postfix) with ESMTP id 450AC1A8A79
for <rtg-yang-coord@ietfa.amsl.com>; Wed, 11 Feb 2015 19:54:50 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.211
X-Spam-Level:
X-Spam-Status: No, score=-4.211 tagged_above=-999 required=5
tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001,
T_RP_MATCHES_RCVD=-0.01] autolearn=ham
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 cROF0eTCFPOv for <rtg-yang-coord@ietfa.amsl.com>;
Wed, 11 Feb 2015 19:54:48 -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 4A0991A6F38
for <Rtg-yang-coord@ietf.org>; Wed, 11 Feb 2015 19:54:47 -0800 (PST)
Received: from 172.18.7.190 (EHLO lhreml403-hub.china.huawei.com)
([172.18.7.190])
by lhrrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued)
with ESMTP id BPE62610; Thu, 12 Feb 2015 03:54:45 +0000 (GMT)
Received: from NKGEML402-HUB.china.huawei.com (10.98.56.33) by
lhreml403-hub.china.huawei.com (10.201.5.217) with Microsoft SMTP Server
(TLS) id 14.3.158.1; Thu, 12 Feb 2015 03:54:44 +0000
Received: from NKGEML501-MBS.china.huawei.com ([169.254.2.146]) by
nkgeml402-hub.china.huawei.com ([10.98.56.33]) with mapi id 14.03.0158.001;
Thu, 12 Feb 2015 11:54:38 +0800
From: Qin Wu <bill.wu@huawei.com>
To: Dean Bogdanovic <deanb@juniper.net>, "t.petch" <ietfc@btconnect.com>
Thread-Topic: [Rtg-yang-coord] naive question ??
Thread-Index: AQHQQTHMPlQaeKL2N06OQXAz1Xeiu5zhdZqAgAn7gOD//4FdAIABeY4w
Date: Thu, 12 Feb 2015 03:54:37 +0000
Message-ID: <B8F9A780D330094D99AF023C5877DABA846D66BF@nkgeml501-mbs.china.huawei.com>
References: <54D34B47.1050507@pi.nu>
<D907FC42-80C2-48EB-B756-8F19195ECF39@lucidvision.com>
<01d201d045f8$82b5c1a0$4001a8c0@gateway.2wire.net>
<609F074B-1B65-4E04-8696-BCF50CBCAC96@juniper.net>
In-Reply-To: <609F074B-1B65-4E04-8696-BCF50CBCAC96@juniper.net>
Accept-Language: zh-CN, en-US
Content-Language: zh-CN
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.138.41.180]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-CFilter-Loop: Reflected
Archived-At: <http://mailarchive.ietf.org/arch/msg/rtg-yang-coord/_5FLPF9jgQLTrRPrAJArkjc7c2Y>
Cc: "Rtg-yang-coord@ietf.org" <Rtg-yang-coord@ietf.org>,
"Thomas D. Nadeau" <tnadeau@lucidvision.com>, Loa Andersson <loa@pi.nu>
Subject: Re: [Rtg-yang-coord] naive question ??
X-BeenThere: rtg-yang-coord@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "\"List to discuss coordination between the Routing related YANG
models\"" <rtg-yang-coord.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtg-yang-coord>,
<mailto:rtg-yang-coord-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/rtg-yang-coord/>
List-Post: <mailto:rtg-yang-coord@ietf.org>
List-Help: <mailto:rtg-yang-coord-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtg-yang-coord>,
<mailto:rtg-yang-coord-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 12 Feb 2015 03:54:50 -0000
> > I think that the problem with MIB Modules was and is a lack of > knowledge of management in general and of SNMP in particular, within > any working group (e.g. IDR) and that is likely to be true with YANG > but at least a WG should be familiar with the technology and have a > sense of which elements to include in a data or information model, > even if the WG lacks the skills to turn it into YANG. > > SNMP does have conformance which made it possible to create the one > MIB Module with basic, intermediate and advanced subsets. YANG lacks > that but has if-feature which I see as complicated, easy to get wrong > both in terms of getting the statement correct with respect to the > logic that has been agreed, and in choosing when to use it or not. (A > bit like novice programmers who learn that when two or three > statements appear more than once, they can be replaced by a procedure > or function, making the code shorter and harder to understand and > maintain). I suspect that if-feature is much over-used and that the > cost of that will become apparent in a few years time. One of YANG strong sides is the extensibility and augmentation. If-feature is very useful, but it should be carefully used. A much better way to design YANG models is using following base model standard extension model proprietary extension model With base model, a basic set of features is described. That model can be then imported into another model, like standard or proprietary extension model, and augmented with more features. This provides easier to read and maintenance of the code. Take a look at draft-ietf-netmod-acl-model for example. Dean [Qin]: Good point.
- Re: [Rtg-yang-coord] naive question ?? Loa Andersson
- Re: [Rtg-yang-coord] naive question ?? Thomas D. Nadeau
- Re: [Rtg-yang-coord] naive question ?? Loa Andersson
- [Rtg-yang-coord] naive question ?? Loa Andersson
- Re: [Rtg-yang-coord] naive question ?? Thomas D. Nadeau
- Re: [Rtg-yang-coord] naive question ?? t.petch
- Re: [Rtg-yang-coord] naive question ?? Dean Bogdanovic
- Re: [Rtg-yang-coord] naive question ?? Thomas D. Nadeau
- Re: [Rtg-yang-coord] naive question ?? Qin Wu