Re: [netmod] Augmentation to Groupings

"Xufeng Liu" <xufeng.liu.ietf@gmail.com> Wed, 20 December 2017 14:41 UTC

Return-Path: <xufeng.liu.ietf@gmail.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 F1C84126579 for <netmod@ietfa.amsl.com>; Wed, 20 Dec 2017 06:41:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 bWs2ePUaLGOx for <netmod@ietfa.amsl.com>; Wed, 20 Dec 2017 06:41:20 -0800 (PST)
Received: from mail-lf0-x22d.google.com (mail-lf0-x22d.google.com [IPv6:2a00:1450:4010:c07::22d]) (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 DACD5127023 for <netmod@ietf.org>; Wed, 20 Dec 2017 06:41:19 -0800 (PST)
Received: by mail-lf0-x22d.google.com with SMTP id g80so19859339lfg.0 for <netmod@ietf.org>; Wed, 20 Dec 2017 06:41:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:thread-index:content-language; bh=9kzjFXnBpYgm+4Wj33vpLPf04r7tgkpTIXFIebV+tHU=; b=IMnDqqoXr/8uKC1H1wFCjqthhxcsaxBt7JlYI4mRWGrGQhldC13snrRH2SJb3i0WEE Vyt0PEx127ZHku/uHA8+KKdZYLQViHhoLOH0ZIHDWmDTOch9ib7RQvzxugkj9KOo6deI JH+Zp40kbs1hyws81OxAezinTkdMy2Sq+TjA8dnKCmYovTSNv2Lv2p4DzyHbuwYF7uW7 PiujVOrJwOyoDzylK3rHLzB3mOxV/B/P1j1ExAe1ic9NchEfAHJjRS4fz0rKq7bHQL1F +Lx+cmZCcL9/fK5Tm8oWyqy4hwvM3l6QEmsHkhlWAASpX/37E/cXwZwr9DvXPrW+1f8u V8Dw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:references:in-reply-to:subject:date :message-id:mime-version:thread-index:content-language; bh=9kzjFXnBpYgm+4Wj33vpLPf04r7tgkpTIXFIebV+tHU=; b=YJht/Z7+yIIjBKHpOJ4llsU2fDyjRe4LlTVEZBHJPtS3NfucHXbOUvxaRVlGIDv4hj +UGMilXqzl+BcPwfRKpA6SY3n4q4VRgxoT8Jpp3+aYG1x3IkdlAvkM37AIPJS8h4tUls d0KeShMH+v/5I2MuRYL00DoaXMp5MkhV4auO/eX1wE6OV3FwAomE/BWwb41zc5xzJKRo HvTZvQCOAvEFt2kZDIy4yCWhAYsB2EpMxlenQvkrMlTgRcOtVErYMzk61ykKxk+ihnHm 01i3XVzMBtUb4x1afppOP7u4jSMIaZxevkzqFbo0cCZAPY4Y0SUOoEFCmWFNHhEVftnP 33oQ==
X-Gm-Message-State: AKGB3mLaFA9jitm2gdQT9AaDgTBa2A3oTg/vmCLvkO3CfI6Zi5Dl7YKI BAb65op+voPnLPCWjG1Bb/A=
X-Google-Smtp-Source: ACJfBovpjeIqxinNE4JsgV256WC/nAYnNjUv/i5j/Zutck7vcPNARddaGGYeFZ8cNzmlfddM/v2T8A==
X-Received: by 10.25.92.20 with SMTP id q20mr4344976lfb.48.1513780877715; Wed, 20 Dec 2017 06:41:17 -0800 (PST)
Received: from xliuus (wsip-98-191-72-170.dc.dc.cox.net. [98.191.72.170]) by smtp.gmail.com with ESMTPSA id r89sm3679459ljr.16.2017.12.20.06.41.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Dec 2017 06:41:17 -0800 (PST)
From: "Xufeng Liu" <xufeng.liu.ietf@gmail.com>
To: "'Andy Bierman'" <andy@yumaworks.com>, "'Alexander Clemm'" <alexander.clemm@huawei.com>
Cc: "'Juergen Schoenwaelder'" <j.schoenwaelder@jacobs-university.de>, "'NETMOD WG'" <netmod@ietf.org>
References: <CAEz6PPRtjHHRK_jFqCnygBN_nY4n0X2a2dUWqvSxhC2fAy+wFw@mail.gmail.com> <20171219191528.2snk3ahnipxcojtb@elstar.local> <644DA50AFA8C314EA9BDDAC83BD38A2E0EAD4D37@sjceml521-mbx.china.huawei.com> <CABCOCHRfY9ifa5cHUaJU1X=N988v-nR1kn1fyY0EF6_eAj5vzA@mail.gmail.com>
In-Reply-To: <CABCOCHRfY9ifa5cHUaJU1X=N988v-nR1kn1fyY0EF6_eAj5vzA@mail.gmail.com>
Date: Wed, 20 Dec 2017 09:41:13 -0500
Message-ID: <006001d379a0$97c58970$c7509c50$@gmail.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_0061_01D37976.AEEF8170"
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQGWYnqZMJX02CEBETxtgDrcU+RVeACxpE8TAhfCqgMCPM32C6OeSY3w
Content-Language: en-us
x-dg-ref: PG1ldGE+PGF0IG5tPSJib2R5Lmh0bWwiIHA9ImM6XHVzZXJzXHhsaXVcYXBwZGF0YVxyb2FtaW5nXDA5ZDg0OWI2LTMyZDMtNGE0MC04NWVlLTZiODRiYTI5ZTM1Ylxtc2dzXG1zZy1kMjdlNTViNC1lNTkzLTExZTctOWMzZi0xODVlMGZlM2M0NWNcYW1lLXRlc3RcZDI3ZTU1YjYtZTU5My0xMWU3LTljM2YtMTg1ZTBmZTNjNDVjYm9keS5odG1sIiBzej0iNzgyNCIgdD0iMTMxNTgyNTQ0NzMzNzA2ODkzIiBoPSJqYUJzc21nSStScFpkQnMxa29mTWJmYjFmYXM9IiBpZD0iIiBibD0iMCIgYm89IjEiLz48L21ldGE+
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/mQWK8RkM1OnH47WCtR9XTLQl73A>
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: Wed, 20 Dec 2017 14:41:23 -0000

The restrictions and scopes might be defined, hopefully. It would also be ok to add new name.

 

Thanks,

- Xufeng

 

From: Andy Bierman [mailto:andy@yumaworks.com] 
Sent: Tuesday, December 19, 2017 3:01 PM
To: Alexander Clemm <alexander.clemm@huawei.com>
Cc: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>de>; Xufeng Liu <xufeng.liu.ietf@gmail.com>om>; NETMOD WG <netmod@ietf.org>
Subject: Re: [netmod] Augmentation to Groupings

 

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 <mailto: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 <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 <mailto:xufeng.liu.ietf@gmail.com> >
> Cc: NETMOD WG <netmod@ietf.org <mailto: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 <mailto: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 <mailto:netmod@ietf.org> 
> https://www.ietf.org/mailman/listinfo/netmod
_______________________________________________
netmod mailing list
netmod@ietf.org <mailto:netmod@ietf.org> 
https://www.ietf.org/mailman/listinfo/netmod