Re: [yang-doctors] Small modules discussion from LSR [Fwd: [Lsr] When to augment LSR base YANG modules...]

"Acee Lindem (acee)" <acee@cisco.com> Tue, 02 April 2019 12:11 UTC

Return-Path: <acee@cisco.com>
X-Original-To: yang-doctors@ietfa.amsl.com
Delivered-To: yang-doctors@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0CC46120187 for <yang-doctors@ietfa.amsl.com>; Tue, 2 Apr 2019 05:11:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.502
X-Spam-Level:
X-Spam-Status: No, score=-14.502 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com header.b=lqBSG/FT; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=BiduTv13
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 oTQoPhacUh4U for <yang-doctors@ietfa.amsl.com>; Tue, 2 Apr 2019 05:11:54 -0700 (PDT)
Received: from rcdn-iport-7.cisco.com (rcdn-iport-7.cisco.com [173.37.86.78]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C989012015D for <yang-doctors@ietf.org>; Tue, 2 Apr 2019 05:11:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=8006; q=dns/txt; s=iport; t=1554207113; x=1555416713; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=Rt7xNBOimPbIccgxp0h1VUv9mtkWeGDY0ZKVS9zp2+8=; b=lqBSG/FT30EpUIUN+sGeNn7pEbJULze71Nm9jNxeqFvokDYo+szppMyP yzfDy+mPoXlNZ+w6dhjLjHyb1fINmRGkMXr30qwQRgoTIcYxV2FM9rlLj PuNB+hOPGJsm0KPFLuMY3RLhPZ9A4r9CrZGc1WUGxnLstnszXnsOWegyr c=;
IronPort-PHdr: 9a23:YvLUiBziTau1w9bXCy+N+z0EezQntrPoPwUc9psgjfdUf7+++4j5YRGN/u1j2VnOW4iTq+lJjebbqejBYSQB+t7A+GsHbIQKUhYEjcsMmAl1CcWIBGXwLeXhaGoxG8ERHFI=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0AFAACNUKNc/4MNJK1lGQEBAQEBAQEBAQEBAQcBAQEBAQGBUgMBAQEBAQsBgT0pJwNodAQLJwqEBINHA480gld+lhOBLoEkA1QOAQEYCwmEQAIXhSUiNQgNAQEDAQEJAQMCbRwMhUoBAQEBAgEBASERDAEBLAsBCwQCAQgOAwQBAQECAh8HAgICJQsVCAgCBAENBR+DAwGBXQMNCAEOokMCigQQcYEvgnkBAQWFERiCDAMFgQskAYsyF4F/gREnH4FOSTU+gmEBAYRrMYIEIo0FmFIJApNmGoE8R4loiE2LRoEYkkQCBAIEBQIOAQEFgU8CNIFWcBU7KgGCQYIKNm0BCYJBhRSFP3KBKI4SAYEeAQE
X-IronPort-AV: E=Sophos;i="5.60,300,1549929600"; d="scan'208";a="538942238"
Received: from alln-core-1.cisco.com ([173.36.13.131]) by rcdn-iport-7.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 02 Apr 2019 12:11:50 +0000
Received: from XCH-RCD-016.cisco.com (xch-rcd-016.cisco.com [173.37.102.26]) by alln-core-1.cisco.com (8.15.2/8.15.2) with ESMTPS id x32CBo5H014530 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Tue, 2 Apr 2019 12:11:50 GMT
Received: from xhs-rcd-003.cisco.com (173.37.227.248) by XCH-RCD-016.cisco.com (173.37.102.26) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 2 Apr 2019 07:11:49 -0500
Received: from xhs-rcd-002.cisco.com (173.37.227.247) by xhs-rcd-003.cisco.com (173.37.227.248) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 2 Apr 2019 07:11:49 -0500
Received: from NAM05-DM3-obe.outbound.protection.outlook.com (72.163.14.9) by xhs-rcd-002.cisco.com (173.37.227.247) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Tue, 2 Apr 2019 07:11:49 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector1-cisco-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Rt7xNBOimPbIccgxp0h1VUv9mtkWeGDY0ZKVS9zp2+8=; b=BiduTv13xiRnVFbSqOeluu5+q+5jx5wKvrRZzPMlqECjAiBmVswYTrwfGClyV3EQH8C+Ctis276qpGCfPd4BVMl3dxKoH1N/m0ITO1QckVpZjoh/ACbVtUPXIjkV+LWJQgl3mVQ2F3j5l1SkBpHRCaFReDXAmugfbIuvOFy7iW4=
Received: from BN6PR1101MB2226.namprd11.prod.outlook.com (10.174.112.11) by BN6PR1101MB2067.namprd11.prod.outlook.com (10.174.116.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.16; Tue, 2 Apr 2019 12:11:48 +0000
Received: from BN6PR1101MB2226.namprd11.prod.outlook.com ([fe80::9c05:e282:840b:51a1]) by BN6PR1101MB2226.namprd11.prod.outlook.com ([fe80::9c05:e282:840b:51a1%8]) with mapi id 15.20.1750.017; Tue, 2 Apr 2019 12:11:48 +0000
From: "Acee Lindem (acee)" <acee@cisco.com>
To: Martin Bjorklund <mbj@tail-f.com>, "Rob Wilton (rwilton)" <rwilton@cisco.com>
CC: "yang-doctors@ietf.org" <yang-doctors@ietf.org>, "yingzhen.qu@huawei.com" <yingzhen.qu@huawei.com>
Thread-Topic: [yang-doctors] Small modules discussion from LSR [Fwd: [Lsr] When to augment LSR base YANG modules...]
Thread-Index: AQHU6IgPOIWfJz1vLkevl5hZTgNUTKYoooiAgAAK1ACAAAygAIAAA4EA///I4YA=
Date: Tue, 02 Apr 2019 12:11:48 +0000
Message-ID: <57D7FEBA-621B-4F49-B336-D6899AAA3721@cisco.com>
References: <c691b0e1a8c64b1c8a31070f0d600fc8@XCH-RCD-007.cisco.com> <6974CC7A-9CC2-4621-A0C5-FBF2C3E34E4A@chopps.org> <2ef8571460974757ae611cf3c2cd834f@XCH-RCD-007.cisco.com> <20190402.132904.1980573421805066732.mbj@tail-f.com>
In-Reply-To: <20190402.132904.1980573421805066732.mbj@tail-f.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=acee@cisco.com;
x-originating-ip: [173.38.117.82]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 81c9078d-f93f-4de5-3f8c-08d6b76461ba
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600139)(711020)(4605104)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:BN6PR1101MB2067;
x-ms-traffictypediagnostic: BN6PR1101MB2067:
x-ms-exchange-purlcount: 1
x-ld-processed: 5ae1af62-9505-4097-a69a-c1553ef7840e,ExtAddr
x-microsoft-antispam-prvs: <BN6PR1101MB20675D66A41FBB3D5CC61E2BC2560@BN6PR1101MB2067.namprd11.prod.outlook.com>
x-forefront-prvs: 0995196AA2
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(136003)(366004)(396003)(39860400002)(346002)(199004)(51444003)(189003)(13464003)(33656002)(68736007)(966005)(71190400001)(6246003)(6506007)(6306002)(26005)(53936002)(99286004)(5660300002)(14454004)(6512007)(4326008)(478600001)(105586002)(54906003)(14444005)(256004)(82746002)(6436002)(86362001)(446003)(7736002)(486006)(11346002)(476003)(106356001)(83716004)(71200400001)(8676002)(8936002)(97736004)(102836004)(2616005)(93886005)(76176011)(305945005)(110136005)(316002)(36756003)(229853002)(2906002)(3846002)(6486002)(6116002)(25786009)(81166006)(186003)(6636002)(66066001)(53546011)(81156014); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR1101MB2067; H:BN6PR1101MB2226.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: cisco.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: zRnSrgbbrseU0ENx+EaqJ0YKN1rpvU+nYbmFJidjj9DJKNXcJn4pDsGuYNioBlQ3SQzMCve4xFSOAH9W/OiWfeIT40KiHRPGp4P1OzLAA3h0OmbQVMHII+GgC13phAJZ0wWluCU3rOX3bY7HRfpYY1vZIHGXcXBaDmKO2yVVnue/d+wfZpCm25/Rb2WfopqXgu41the52E8BupLenDcPDPqNe7rl3wG7G26ZQdIILsnHeuiPOeBlCkZ2rWUSIL0v9EereOoytb6/3agQcde4M4I5mVnE6YaIozXKyhmR07/5CLY7Ot/WYtPFf+sY9lzewUItyYg6dkuz1qsZ8bqIYPpn72DEKeC7zuQHmozWP4332JwdBYUar0gehP4zAD+/UPd7MTe5SwOofnQu/I1WJSRAYauFoGop43qxtoXMR7k=
Content-Type: text/plain; charset="utf-8"
Content-ID: <F5830532CF266E488DF78EBA5879B63D@namprd11.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 81c9078d-f93f-4de5-3f8c-08d6b76461ba
X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Apr 2019 12:11:48.3242 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR1101MB2067
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.37.102.26, xch-rcd-016.cisco.com
X-Outbound-Node: alln-core-1.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/VXkqc8BB93WCX9RXVFH8HX9lLf8>
Subject: Re: [yang-doctors] Small modules discussion from LSR [Fwd: [Lsr] When to augment LSR base YANG modules...]
X-BeenThere: yang-doctors@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Email list of the yang-doctors directorate <yang-doctors.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/yang-doctors/>
List-Post: <mailto:yang-doctors@ietf.org>
List-Help: <mailto:yang-doctors-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 02 Apr 2019 12:11:59 -0000

Hi Martin, 

On 4/2/19, 7:29 AM, "yang-doctors on behalf of Martin Bjorklund" <yang-doctors-bounces@ietf.org on behalf of mbj@tail-f.com> wrote:

    "Rob Wilton (rwilton)" <rwilton@cisco.com> wrote:
    > 
    > 
    > > -----Original Message-----
    > > From: Christian Hopps <chopps@chopps.org>
    > > Sent: 02 April 2019 11:31
    > > To: Rob Wilton (rwilton) <rwilton@cisco.com>
    > > Cc: Christian Hopps <chopps@chopps.org>; YANG Doctors <yang-
    > > doctors@ietf.org>; Yingzhen Qu <yingzhen.qu@huawei.com>
    > > Subject: Re: [yang-doctors] Small modules discussion from LSR [Fwd:
    > > [Lsr]
    > > When to augment LSR base YANG modules...]
    > > 
    > > 
    > > > On Apr 2, 2019, at 5:52 AM, Rob Wilton (rwilton) <rwilton@cisco.com>
    > > wrote:
    > > >
    > > > Hi Chris,
    > > >
    > > > I don’t think that there is a one size fits all answer here.
    > > >
    > > > If the enhancement is small, and is likely to be reasonably widely
    > > > used then
    > > my view is that adding it as an optional feature to the base module is
    > > a better
    > > choice in the long term.
    > > >
    > > > If the feature is larger, or esoteric, and perhaps won’t be widely
    > > > deployed
    > > then I would think that putting it into a separate module might be a
    > > better
    > > choice.
    > > >
    > > > I actually think that it is the IETF process that is perhaps the
    > > > difficult thing
    > > here.  I.e. I think that you want to republish a new revision of the
    > > base
    > > module, but in a way that gets processed more quickly by the IESG.
    > > E.g.
    > > request that they only review/comment on the diffs between the current
    > > revision and the previous one.  Or somehow publish an updated revision
    > > of
    > > the module on github without assigning it a new RFC number every time.
    > > 
    > > Yes, although I'm trying to do a couple things:
    > > 
    > > - Get YANG management support added at the same time as the
    > > functionality, not as an after thought maybe someday, maybe never.
    > 
    > I agree that this is definitely the right thing to do.
    > 
    > 
    > > - Reduce the cost of adding the YANG support. A stand-alone document is
    > > very expensive time and effort wise, separate IESG reviews,
    > > directorate
    > > reviews, last-calls.
    > 
    > I agree.  And rev'ing the base ISIS YANG model is likely to be just as
    > expensive.
    
    My suggestion was not to rev the base model, but have _one_ model with
    these "optional features", and rev that every time.

The alternative to individual modules we had discussed is to "batch" these features in a single document. However, once published, we'd start on the next set of optional features. 

From a programmability standpoint, which is preferred option? Are they all pretty much the same level of complexity? 

Thanks,
Acee




    
    > > I had wondered if we could use errata on the base vs doing a brand new
    > > bis
    > > version of the base module; however, this seems to be trading too much
    > > process overhead with perhaps not quite enough.
    > > 
    > > To the first goal, I wrote that reverse metric module a couple days
    > > ago as an
    > > example. I have to wonder when or even if it would have gotten written
    > > (or
    > > the equivalent feature added) otherwise. Instead I suspect it would
    > > just get
    > > added into N vendors models as people move on to other things in the
    > > WG.
    > > 
    > > In a perfect world I would add a YANG section to my functionality RFC
    > > that
    > > updated (not augment) the base module, but with augment style
    > > definition
    > > (i.e., so the entire huge base module doesn't need to be
    > > re-represented in
    > > the document). This would then cause the base document to get reissued
    > > with the changes. Sort of like IANA sections are capable of updating a
    > > registry.
    > 
    > We almost want to just include a diff/patch to the base model into the
    > document.  This is actually a little bit like how IEEE 802 update
    > their documents, and then they periodically roll their updates into
    > the base model.
    > 
    > 
    > > 
    > > So maybe your github idea is like this, we create a module definition
    > > registry
    > > where the most up-to-date module definitions go, and then RFCs can
    > > update
    > > that using something like (or exactly like) augment to document the
    > > changes
    > > to the module in the individual RFCs.
    > 
    > Yes.  We want the review to only focus on the stuff that is new/added
    > rather than reviewing the whole module every time.
    > 
    > Martin's suggestion of using submodules is another way to achieve
    > this.  E.g. the actual module definition is split over multiple RFCs,
    > but I'm not that keen on submodules and I suspect that this will make
    > them hard to read in future.
    
    Note that we can "gc" the submodules and fold their contents into the
    main module, or perhaps a "top" submodule, when you have N submodules.
    
    
    > I think that the real answer here is that YANG modules should not be
    > published in RFCs.  Yes, they should go through a similar formal
    > review process for changes to the modules but without the overhead of
    > reviewing every change as a new document.
    
    Right.  This is longer term though, since it requires a process
    update!
    
    
    /martin
    _______________________________________________
    yang-doctors mailing list
    yang-doctors@ietf.org
    https://www.ietf.org/mailman/listinfo/yang-doctors