Re: [netmod] regarding draft-bierman-netmod-yang-data-ext-00

Andy Bierman <andy@yumaworks.com> Fri, 01 September 2017 16:39 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 501101341ED for <netmod@ietfa.amsl.com>; Fri, 1 Sep 2017 09:39:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.7
X-Spam-Level:
X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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=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 l_ioV4G0xRsk for <netmod@ietfa.amsl.com>; Fri, 1 Sep 2017 09:39:46 -0700 (PDT)
Received: from mail-wm0-x233.google.com (mail-wm0-x233.google.com [IPv6:2a00:1450:400c:c09::233]) (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 231801341E0 for <netmod@ietf.org>; Fri, 1 Sep 2017 09:39:46 -0700 (PDT)
Received: by mail-wm0-x233.google.com with SMTP id u26so4660861wma.0 for <netmod@ietf.org>; Fri, 01 Sep 2017 09:39:46 -0700 (PDT)
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=XQ3xG7zvZgrV0erG1pzvh9ofmoTZD66NO39jeNNA3W4=; b=SR3qAeKY/CdJJnubiREYRE0ypXm5c8lzn8iCz34nWX9lePcErQUfe3LAyT26kfspag 949CC2SRYACEacc+BGAZ2teDVsdRYO0ZH0MHO63P0z0BHfPOC4Ehf7sqfGH0nPUtPsMX Vs9eKX1XjCafGaAuYSdUSjxkAi7uWUZKn7oI7OmbnhmwraKByZlehBIUJh0N5iLrZuSd 2v6lHY7iysxEO48qEWTQGHEi2REmm8SOR1wiQhi+lM64wgnlrTfa5vK2YvNh6aCVW32L QXoTKgr+cKzgyNGYxHIbREYlWRFIjfYQG9eANjMkV7Rr8LiL1x7wMp6Fs597X3Ip60J9 fvdA==
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=XQ3xG7zvZgrV0erG1pzvh9ofmoTZD66NO39jeNNA3W4=; b=qd9eaF8fKBfgeBxlv4pCM9jJ6flyOrzYtANHeXb4ku/Y4+MpwtoLl7xgjxm7gNqpH/ Aj8kb23ZoVdW43x6W9bAqHMRdgLStfUn1cenm7MDWCBHGsKdsniSlRoP1gxGK9H8BWe0 gGLpldFrN0yLcgSANUP3Rh84agjydZR9iOQfsw6gSdRRmEPqDN9sltEs0fxArlMyg4BI uyqmbrhSYeQbTtLslteONCzpGhV5jmPPNhX6gwlhjTi7IS5Lr9En+DQSlm6/qvA/8dnG BbiIGb5aRn3CEld2xV55bXyl3rsa1S9cajv7h1pZOLMrWy2PgBsfZioZB3ZP8mNvLKNp S7lw==
X-Gm-Message-State: AHPjjUj6rqSdv6dv18r6Djx12qpw9aN2Hs+4ttjx6//ZptE9UW2v/VL2 RrCMwMzhIwgppnfaJ5PL++uFJLdGSPSQet8=
X-Google-Smtp-Source: ADKCNb644NtD/mxhCwYcuHzsCsP6lh+IjSW8kDPNGRX0TqVylaJ9abU0RjznnQoQo+jXhcoDN8LfnXZYU+zOOaEuIpk=
X-Received: by 10.28.147.8 with SMTP id v8mr785959wmd.153.1504283984644; Fri, 01 Sep 2017 09:39:44 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.223.171.84 with HTTP; Fri, 1 Sep 2017 09:39:43 -0700 (PDT)
In-Reply-To: <57AA997C-6E52-49D2-B6AF-7DDE8F13D7B3@juniper.net>
References: <57AA997C-6E52-49D2-B6AF-7DDE8F13D7B3@juniper.net>
From: Andy Bierman <andy@yumaworks.com>
Date: Fri, 01 Sep 2017 09:39:43 -0700
Message-ID: <CABCOCHSA_dqNwy=xj4vj8bCHKaJhisx0qCccYCyyBdLWXeW2Rw@mail.gmail.com>
To: Kent Watsen <kwatsen@juniper.net>
Cc: "netmod@ietf.org" <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="001a114733ac8be2e50558236878"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/rFEP6Nv3EV-El_4clY9qzuq9v7E>
Subject: Re: [netmod] regarding draft-bierman-netmod-yang-data-ext-00
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: Fri, 01 Sep 2017 16:39:48 -0000

On Fri, Sep 1, 2017 at 9:24 AM, Kent Watsen <kwatsen@juniper.net> wrote:

>
> I'd like to start a discussion about adopting this draft...or something
> like it (see below).
>
> The primary driver for wanting to expedite this draft is that it is being
> discussed as a required aspect of a chartered NETCONF WG effort to define a
> new encoding for YANG's 'notification' statement.
>
> But I wonder if it would be better to define something like
> yd:uses-yang-data that can have both 'augment' and 'refine' as
> substatements.  The motivation for this is because the ANIMA WG wishes to
> define a "voucher-request" yang-data artifact that is essentially a
> "voucher" yang-data artifact that has had a leaf changed from "mandatory
> true" to "mandatory false" (via refinement) while also adding some new
> fields (via augmentation).  The current ANIMA solution defines a common
> grouping used by two yang-data statements, but this approach is neither
> intuitive nor lends itself to further downstream consumption.
>
>
I am not sure any new construct is needed at all.
The current definition covers it.

module foo {
  grouping plain-old-group1 {
      ...
  }

  rc:yang-data artifact1 {
     uses plain-old-group1;
  }
}


module bar {
   import foo { ... }

     rc:yang-data artifact2 {
       uses foo:plain-old-group1 {
          refine ...
       }
     }
  }


Lastly, I wonder if it would be better to have a draft that [re-]defines a
> 'yang-data' statement outside of RFC8040.  This way drafts wanting to
> define yang-data wouldn't have to explain why they have an otherwise
> unexpected normative reference to RESTCONF.
>
>
We went through that issue at least twice before RFC 8040.
There was no concern about this extension being in the RESTCONF spec.
We really have to try to keep the documents stable, and not republish an
RFC just to move
definitions around.


Thoughts?
>
> Kent // pick a hat
>
>
>
Andy


>
>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
>