Re: [netmod] Augmentation to Groupings

Andy Bierman <andy@yumaworks.com> Tue, 19 December 2017 20:00 UTC

Return-Path: <andy@yumaworks.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 F35D912E8A3 for <netmod@ietfa.amsl.com>; Tue, 19 Dec 2017 12:00:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20150623.gappssmtp.com
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 3d5VLFKN6oPy for <netmod@ietfa.amsl.com>; Tue, 19 Dec 2017 12:00:37 -0800 (PST)
Received: from mail-lf0-x22c.google.com (mail-lf0-x22c.google.com [IPv6:2a00:1450:4010:c07::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DA1AF12E87F for <netmod@ietf.org>; Tue, 19 Dec 2017 12:00:32 -0800 (PST)
Received: by mail-lf0-x22c.google.com with SMTP id w196so3574875lff.5 for <netmod@ietf.org>; Tue, 19 Dec 2017 12:00:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=w0u48oxMSzZUcgoGnJFWh6muaele0cdXy+sYUWpPYgE=; b=SvcHuI1iDVApjGbX49DI1WC7N13KnUVco7nRkhMuJ+vS6VCTYcXRAsDSerc6yKaFvz EVC4vwP9pnJx29hh16uxxLhYARUNDtK5fnI0I/d2O0P8ZUBgWSVmhgOt8n10JzM9h5zt b7aSiMrldBH4ij9P7fKW/LlGvQnWDHKuNQXUIJ+vGTT1hhBGgPiG1eHxtbwu5uSvbrjI Usdq/bjQzNXZsy2N11t4bsS0sb0SWY9bEnIHNHEtcsTNRqzmUPQyl8Np44xjy2yd5qus IYVofgewvsZLPV8aPcZH4WABvp48teoCDocxFmoo5CX6wdqrQxh16QW8VvdDamNLN6jY 2+xA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=w0u48oxMSzZUcgoGnJFWh6muaele0cdXy+sYUWpPYgE=; b=LzvQjQMR9yYLTCR3NRDjB0DsV6ycS+Wl94sWt5xdU+8KncGumrAI2Bm/zbaOKvGCSa SVHeSOzgzEousn7yJRwkVr5pzYgDK5QM9p7Pr/wVXxx9/YfdNAvcngyRm9vwEVNz6Vqq 3+bXIFaGesu4DeoeCR0PkZud9+fKRQLT0H/ePUNQN5KXQrg9T30Di5SpZn2y5kuIGKMY jPZM5SI5kWOk33hnJqTic3T8oYP88vknDBov9m0Fdakv0Sq0gsofQC0/+2PcyX0U1Sgn 9615vftRGfCwt3/HKaMcq0XA9o5zYEsPvJgFnkEBcto+XeCMocnFi7gUuHNjd8JHW2iJ L5Lg==
X-Gm-Message-State: AKGB3mJxzjDQyNqdVdwturKfXc46jaKmmcqC97hKmstDreX2ui1b70A1 SD8n33zYjac+4CoEbSsDM+TYVOGYBXgsUlpKyn6mEg==
X-Google-Smtp-Source: ACJfBouW/yat0OWpeSlfymtPTVnGMSEdiR7BOKC5qu8jpRzYzsD8TO54yrbRaNbvKBlHOWuNGYrgr0QnVKpCkuSp0iQ=
X-Received: by 10.46.99.131 with SMTP id s3mr2806141lje.143.1513713631058; Tue, 19 Dec 2017 12:00:31 -0800 (PST)
MIME-Version: 1.0
Received: by 10.25.33.81 with HTTP; Tue, 19 Dec 2017 12:00:30 -0800 (PST)
In-Reply-To: <644DA50AFA8C314EA9BDDAC83BD38A2E0EAD4D37@sjceml521-mbx.china.huawei.com>
References: <CAEz6PPRtjHHRK_jFqCnygBN_nY4n0X2a2dUWqvSxhC2fAy+wFw@mail.gmail.com> <20171219191528.2snk3ahnipxcojtb@elstar.local> <644DA50AFA8C314EA9BDDAC83BD38A2E0EAD4D37@sjceml521-mbx.china.huawei.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Tue, 19 Dec 2017 12:00:30 -0800
Message-ID: <CABCOCHRfY9ifa5cHUaJU1X=N988v-nR1kn1fyY0EF6_eAj5vzA@mail.gmail.com>
To: Alexander Clemm <alexander.clemm@huawei.com>
Cc: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, Xufeng Liu <xufeng.liu.ietf@gmail.com>, NETMOD WG <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="94eb2c0734364571350560b6eb2d"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/KUZZKpM59rIvy3gvgYPqHGJiIc0>
Subject: Re: [netmod] Augmentation to Groupings
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, 19 Dec 2017 20:00:39 -0000

Hi,

I do not want YANG to have augment for groupings because there is
no way to control all possible uses-stmts and make sure the augmentation
is only used where intended.  This seems no different than OO code.
A new class name is required for the derived class. In YANG a new grouping
is required and specific uses-stmts have to be updated to use the new
grouping.


Andy


On Tue, Dec 19, 2017 at 11:51 AM, Alexander Clemm <
alexander.clemm@huawei.com> wrote:

> IMHO it would be worth a try.  If you wanted to only augment _some_ uses
> of a grouping, you could still do the same as today.  Also, I would expect
> augmentations to only affect servers that support the module defining the
> augmentation.  If verbosity were not an issue, why were groupings
> introduced in the first place?
> --- Alex
>
> > -----Original Message-----
> > From: netmod [mailto:netmod-bounces@ietf.org] On Behalf Of Juergen
> > Schoenwaelder
> > Sent: Tuesday, December 19, 2017 11:15 AM
> > To: Xufeng Liu <xufeng.liu.ietf@gmail.com>
> > Cc: NETMOD WG <netmod@ietf.org>
> > Subject: Re: [netmod] Augmentation to Groupings
> >
> > The current approach may be verbose but it protects users of groupings
> from
> > unwanted and uncontrolled side effects. Augmenting a grouping as
> > suggested affects _all_ uses of a grouping; this can be tricky in
> situations
> > where groupings are widely used.
> >
> > /js
> >
> > On Tue, Dec 19, 2017 at 11:45:06AM -0500, Xufeng Liu wrote:
> > > During the discussions of TE tunnel and topology models, we have found
> > > that it is desirable to have the capability of augmenting a grouping.
> > >
> > > In our case, there are multiple technology specific models augmenting
> > > a base generic model. In the base model, some groupings are used
> > > multiple times, and each augmentation model needs to add more schema
> > > nodes to the grouping structure. For now, we have to specify an
> > > “augment” statement for each location where the grouping is used. Such
> > > an “augment” statement is repeated many times. It would be convenient
> > > and cleaner if we could augment the grouping.
> > >
> > > We’d like to hear opinions on the feasibility of such a capability.
> > >
> > > Thanks,
> > >
> > > - Xufeng
> >
> > > _______________________________________________
> > > netmod mailing list
> > > netmod@ietf.org
> > > https://www.ietf.org/mailman/listinfo/netmod
> >
> >
> > --
> > Juergen Schoenwaelder           Jacobs University Bremen gGmbH
> > Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
> > Fax:   +49 421 200 3103         <http://www.jacobs-university.de/>
> >
> > _______________________________________________
> > netmod mailing list
> > netmod@ietf.org
> > https://www.ietf.org/mailman/listinfo/netmod
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
>