Re: [Rtg-yang-coord] naive question ??
Dean Bogdanovic <deanb@juniper.net> Wed, 11 February 2015 13:20 UTC
Return-Path: <deanb@juniper.net>
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 CAA481A8889
for <rtg-yang-coord@ietfa.amsl.com>; Wed, 11 Feb 2015 05:20:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.302
X-Spam-Level:
X-Spam-Status: No, score=-1.302 tagged_above=-999 required=5
tests=[BAYES_00=-1.9, J_CHICKENPOX_15=0.6, SPF_HELO_PASS=-0.001,
SPF_PASS=-0.001] autolearn=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 YjUBGN9Jz8R3 for <rtg-yang-coord@ietfa.amsl.com>;
Wed, 11 Feb 2015 05:20:47 -0800 (PST)
Received: from na01-bn1-obe.outbound.protection.outlook.com
(mail-bn1bon0727.outbound.protection.outlook.com
[IPv6:2a01:111:f400:fc10::1:727])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits))
(No client certificate requested)
by ietfa.amsl.com (Postfix) with ESMTPS id D7C321A8899
for <Rtg-yang-coord@ietf.org>; Wed, 11 Feb 2015 05:20:43 -0800 (PST)
Received: from BN1PR05MB424.namprd05.prod.outlook.com (10.141.58.148) by
BN1PR05MB424.namprd05.prod.outlook.com (10.141.58.148) with Microsoft SMTP
Server (TLS) id 15.1.75.20; Wed, 11 Feb 2015 13:20:20 +0000
Received: from BN1PR05MB424.namprd05.prod.outlook.com ([169.254.8.245]) by
BN1PR05MB424.namprd05.prod.outlook.com ([169.254.8.245]) with mapi id
15.01.0075.002; Wed, 11 Feb 2015 13:20:20 +0000
From: Dean Bogdanovic <deanb@juniper.net>
To: t.petch <ietfc@btconnect.com>
Thread-Topic: [Rtg-yang-coord] naive question ??
Thread-Index: AQHQQTHL+ah4Tmhuxk6HqEDGhBwUyZzh+7aAgAl02IKAAAgCgA==
Date: Wed, 11 Feb 2015 13:20:20 +0000
Message-ID: <609F074B-1B65-4E04-8696-BCF50CBCAC96@juniper.net>
References: <54D34B47.1050507@pi.nu>
<D907FC42-80C2-48EB-B756-8F19195ECF39@lucidvision.com>
<01d201d045f8$82b5c1a0$4001a8c0@gateway.2wire.net>
In-Reply-To: <01d201d045f8$82b5c1a0$4001a8c0@gateway.2wire.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-mailer: Apple Mail (2.1510)
x-originating-ip: [66.129.241.12]
authentication-results: btconnect.com; dkim=none (message not signed)
header.d=none;
x-microsoft-antispam: BCL:0;PCL:0;RULEID:;SRVR:BN1PR05MB424;
x-exchange-antispam-report-test: UriScan:;
x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:;SRVR:BN1PR05MB424;
x-forefront-prvs: 0484063412
x-forefront-antispam-report: SFV:NSPM;
SFS:(10019020)(6009001)(13464003)(24454002)(51704005)(377454003)(252514010)(66066001)(2656002)(77156002)(62966003)(92566002)(2900100001)(2950100001)(33656002)(110136001)(46102003)(87936001)(15975445007)(19580395003)(230783001)(19580405001)(57306001)(36756003)(122556002)(83716003)(50226001)(82746002)(102836002)(40100003)(50986999)(106116001)(76176999)(86362001)(99286002)(7059030)(104396002);
DIR:OUT; SFP:1102; SCL:1; SRVR:BN1PR05MB424;
H:BN1PR05MB424.namprd05.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en;
Content-Type: text/plain; charset="us-ascii"
Content-ID: <5012D5EACEF7FE47AE2DF8A9EF40302A@namprd05.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: juniper.net
X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Feb 2015 13:20:20.2395 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: bea78b3c-4cdb-4130-854a-1d193232e5f4
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR05MB424
Archived-At: <http://mailarchive.ietf.org/arch/msg/rtg-yang-coord/bA6GSc_UiH9IhWY5aszNbHpVIRY>
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: Wed, 11 Feb 2015 13:20:50 -0000
On Feb 11, 2015, at 7:44 AM, t.petch <ietfc@btconnect.com> wrote: > ---- Original Message ----- > From: "Thomas D. Nadeau" <tnadeau@lucidvision.com> > To: "Loa Andersson" <loa@pi.nu> > Cc: <Rtg-yang-coord@ietf.org> > Sent: Thursday, February 05, 2015 12:27 PM >> >>> On Feb 5, 2015:5:51 AM, at 5:51 AM, Loa Andersson <loa@pi.nu> wrote: >>> >>> I have what might be a naive question. >>> >>> People have told me that in Yang we want to separate functionality > from >>> technology, i.e. we will look at OAM, management, routing, signaling >>> and traffic engineering as aggregate functions and build our tree > based >>> on that. >>> >>> Now if we are to model thing that are closely related e.g. MPLS OAM, >>> signaling, routing and traffic engineering, does that mean that we > have >>> to work at separate pieces of the yang tree and repeat this for > every >>> piece of the technology? >> >> I think you can do a model dedicated to MPLS OAM. The analogy is >> pretty much similar to how MIBs are created. You can import bits or >> objects from all over the place to create things, or you can recreate > them >> in place. There is a trade-off about modularity versus > time-to-completion >> here and I very much am not in favor of being zealous one way or the > other. >> >> We also need to very much take an iterative process around these > models: >> they are not set in stone, and we should iterate on them to modify, > adapt >> and update them as necessary. With that in mind, we've been > encouraging people to >> just starting writing them as best as possible and implementing either > prototype >> code or actually putting them into products so that we can see how > they actually >> operate in the wild. > > Loa > > I do not think the question naive, but I do think it a management > question, rather than a technical one. And as a wise consultant kept > reminding me (the consumate technician:-), there are management > solutions to technical problems but never technical solutions to > management ones. > > Like structuring and restructuring IETF working groups, there are many > ways to make it work but it is about management, not technology (or > functionality). So I would prefer a YANG module that matches the skills > of a Working Group, not needing cross-WG review. Matching YANG models with WG is nice to have, but not always possible, as some models (e.g. access control list) don't have a WG to fit in. I believe some other models will come up as well. As long there is an active WG, the modeling work should be done within that group. > > 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 > > Tom Petch > >> --Tom >> >> >>> First, is this correctly understood or do I have to go back and > discuss >>> this again with the people proposing it? >>> >>> If it is correct why is it superior to what we did for SNMP, one > MIB-module for each protocol? >>> >>> Are the decisions taken or is the jury still out? >>> >>> /Loa >>> -- >>> >>> >>> Loa Andersson email: loa@mail01.huawei.com >>> Senior MPLS Expert loa@pi.nu >>> Huawei Technologies (consultant) phone: +46 739 81 21 64 >>> >>> _______________________________________________ >>> Rtg-yang-coord mailing list >>> Rtg-yang-coord@ietf.org >>> https://www.ietf.org/mailman/listinfo/rtg-yang-coord >>> >> >> _______________________________________________ >> Rtg-yang-coord mailing list >> Rtg-yang-coord@ietf.org >> https://www.ietf.org/mailman/listinfo/rtg-yang-coord >> > > _______________________________________________ > Rtg-yang-coord mailing list > Rtg-yang-coord@ietf.org > https://www.ietf.org/mailman/listinfo/rtg-yang-coord
- 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