Re: [I2rs-proto-dt] couple YANG details

Andy Bierman <andy@yumaworks.com> Fri, 23 October 2015 20:58 UTC

Return-Path: <andy@yumaworks.com>
X-Original-To: i2rs-proto-dt@ietfa.amsl.com
Delivered-To: i2rs-proto-dt@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F38701ABD3A for <i2rs-proto-dt@ietfa.amsl.com>; Fri, 23 Oct 2015 13:58:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.278
X-Spam-Level:
X-Spam-Status: No, score=-1.278 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=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 WcRyndBYc9a8 for <i2rs-proto-dt@ietfa.amsl.com>; Fri, 23 Oct 2015 13:58:40 -0700 (PDT)
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 1300A1A930A for <i2rs-proto-dt@ietf.org>; Fri, 23 Oct 2015 13:58:40 -0700 (PDT)
Received: by lfaz124 with SMTP id z124so96734056lfa.1 for <i2rs-proto-dt@ietf.org>; Fri, 23 Oct 2015 13:58:38 -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:date:message-id:subject:from:to :cc:content-type; bh=pin4USm4i4iBbZuDz9cJ92TOAj/CwYmnCwB3cjlUyak=; b=ueSgeyXpIEkGHMz2p3SAfmn218IsWDnG9Z4PJ3skPqgf9oWps2SW4qJ9uteVcWonNk mwECiA7Pomy4pw6ZwuTurVPclqkseczUhURKyOOWvfl3eG5WcMVPE9NzUT0TpjyMwmXB f08wb6t34bqRM81PkqW1WlfYWnxPydEzT4dSmyp+VpdXKez562CtlplrWENDBCBx7I6/ by2YVv8bEG0kUPFSNKG3fzdyCDDIrW9F+bxk3iacNyEBQRZDQYuD6rdz2bYVbWfvN4oN sLg+JKvhHPlq15DdZGBioLqW2Ir50B18ln1Wm2vcdwZBjANuANW2TPI2J5x60ptthnSi gy5Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=pin4USm4i4iBbZuDz9cJ92TOAj/CwYmnCwB3cjlUyak=; b=llGAB0EuCPbUlUacwS8K5lHeUiRiqLrWHxn9J3ulNZ8KpAPBdKmXlxKbMdSuOvAnfS eiXKxayshxOUNfxDspAvfrjQEkqOadvsKUtog5jVAXxS95+PQlTML5thpaeboHFqL0jX rivSL7gsa4qubKQbKjhfpy3Iyjq10DlfZZWyfBLPOzOCYEh6FVjMTs0odTtlHVVluEjS 0lMmsPev8QfJAI7u4N+vm0u3eBIfw4XhxdXjhl1cqOnSvP9BezFzQgKD+Z5jLvAlT8KQ v2s6du5a0zUGap24Liw7CW5Orkn9pt8wWkOrrpvO6FO6cB61tXZ3gu/cvDwskNpYNT61 7gxA==
X-Gm-Message-State: ALoCoQnuDmjGiPdXyTh32GIONzOdBjK+HDmO4xxVgo7OKTJH7UTBjbLQxZykXMWDSNURleJ4HVfd
MIME-Version: 1.0
X-Received: by 10.25.153.18 with SMTP id b18mr4102703lfe.33.1445633918164; Fri, 23 Oct 2015 13:58:38 -0700 (PDT)
Received: by 10.112.138.72 with HTTP; Fri, 23 Oct 2015 13:58:38 -0700 (PDT)
In-Reply-To: <031901d10dd2$8a65ddc0$9f319940$@ndzh.com>
References: <CABCOCHRRDZZZF1uj6UVDezmZzM3g8bEQiWTkyZKUPk6HL40fcg@mail.gmail.com> <CABCOCHSinfdgfxhg8Ly9ZDSDCvqi3xse+ZwAAQnYweEaMJ6j7w@mail.gmail.com> <031901d10dd2$8a65ddc0$9f319940$@ndzh.com>
Date: Fri, 23 Oct 2015 13:58:38 -0700
Message-ID: <CABCOCHRdfb5UDS0RPEVP4c2X65D97=wYhLMXVk9=C+QXU6NW9A@mail.gmail.com>
From: Andy Bierman <andy@yumaworks.com>
To: Susan Hares <shares@ndzh.com>
Content-Type: multipart/alternative; boundary=001a114730c02af9bb0522cbe015
Archived-At: <http://mailarchive.ietf.org/arch/msg/i2rs-proto-dt/exeC4XUvPGlHAz_4TiFRJZmFdC8>
Cc: i2rs-proto-dt@ietf.org
Subject: Re: [I2rs-proto-dt] couple YANG details
X-BeenThere: i2rs-proto-dt@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: I2RS protocol design team <i2rs-proto-dt.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/i2rs-proto-dt>, <mailto:i2rs-proto-dt-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/i2rs-proto-dt/>
List-Post: <mailto:i2rs-proto-dt@ietf.org>
List-Help: <mailto:i2rs-proto-dt-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/i2rs-proto-dt>, <mailto:i2rs-proto-dt-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 23 Oct 2015 20:58:42 -0000

On Fri, Oct 23, 2015 at 1:36 PM, Susan Hares <shares@ndzh.com>; wrote:

> Andy:
>
>
>
> Can you define Yang constraint for me?  I’m glad to work through these
> issues for all constraints.
>
>
>

https://www.ietf.org/id/draft-ietf-netmod-rfc6020bis-08.txt
sec. 8 + various statement definitions before that.

  must, when, unique, min-elements, max-elements, mandatory


> Sue
>

Andy


>
>
> *From:* I2rs-proto-dt [mailto:i2rs-proto-dt-bounces@ietf.org] *On Behalf
> Of *Andy Bierman
> *Sent:* Wednesday, October 21, 2015 5:49 PM
> *To:* Susan Hares; i2rs-proto-dt@ietf.org
> *Subject:* Re: [I2rs-proto-dt] couple YANG details
>
>
>
> Hi,
>
>
>
> We need to figure out for each YANG constraint:
>
>  1) does it apply at all?
>
>  2) is it MUST, SHOULD, or MAY enforce?
>
>  3) Does the constraint apply the same in running vs. ephemeral?
>
>  4) Does the constraint apply to the combined panes of glass or
>
>      each pane independently?
>
>
>
> Andy
>
>
>
> On Wed, Oct 21, 2015 at 2:45 PM, Andy Bierman <andy@yumaworks.com>; wrote:
>
> Hi,
>
>
>
> I would like to simplify the draft a bit further.
>
>
>
> 1) module-level "ephemeral" flag
>
> Since the data node flag applies to the entire subtree,
>
> it should be simple enough to just require each top-level
>
> data node to declare 'ephemeral true' if needed.
>
> There are usually 1 - 2 top-level data nodes per module so
>
> this is not a burden.  Checking 2 places is too complicated
>
> and they can conflict.
>
>
>
> 2) groupings wrt/ edit overlap
>
>
>
> YANG already has a way to say what sub-nodes must
>
> be present (mandatory=true, min-elements>0).
>
> Is this good enough for I2RS?  Can the requirements
>
> for the ephemeral version be different than the
>
> persistent version, wrt/ mandatory & min-elements?
>
>
>
>
>
>
>