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

Andy Bierman <andy@yumaworks.com> Fri, 23 October 2015 20:55 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 3BC901A90B2 for <i2rs-proto-dt@ietfa.amsl.com>; Fri, 23 Oct 2015 13:55:32 -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 1DWKFm5BSIQ6 for <i2rs-proto-dt@ietfa.amsl.com>; Fri, 23 Oct 2015 13:55:31 -0700 (PDT)
Received: from mail-lf0-x233.google.com (mail-lf0-x233.google.com [IPv6:2a00:1450:4010:c07::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 5D55A1A90A8 for <i2rs-proto-dt@ietf.org>; Fri, 23 Oct 2015 13:55:30 -0700 (PDT)
Received: by lfbn126 with SMTP id n126so61974210lfb.2 for <i2rs-proto-dt@ietf.org>; Fri, 23 Oct 2015 13:55:28 -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=P9Bj5GX4ssevzcmM6+gsQnJuqd/SR48JKwmwyAcph+E=; b=oRF9cSWgfK2VbU8Ebo8ydKKTQbh0cWkw+5e3RZEY10ubtHQuARYWgj6LKKd22ReWyl MS6O893/MdRkKTQZKNKxGuDv85EycZXCw4KGlXCHLtXTe4zMqiykrQPdlpyalo5tpYBz iRc+J2V0MSFxMx2HnBv1GJF5RYO4///BcHplfspg6VJOW/iu9m0or0D6YziZqn2uXLzx BiXi6GzrHpV0UWvbOrnq4qUVNZuvP2dhXfXGylWxdSgea0yYRZRJJUirzy3Iar6ANGYO 1zHIEzbgd/UcnCMMQtyv9fpgHKvYGyAJLloc4KMcjA08SRZS2MGXKxg2y5RYtzMa4k2B lRWg==
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=P9Bj5GX4ssevzcmM6+gsQnJuqd/SR48JKwmwyAcph+E=; b=Gx+wc4PYyuezp/op21uJX3kb7uiXnlTgR9igz+8aIvRE19UanX0nCJTM3Rta+O3Veg /NtAukJXPqWB4IP7DuIuDe78Jji4lbhvOo8VhxLDLG+pfGszEmjewGn+gFLhC8Y7Ewpu fjh/QN/HUcrQ/Xl0Kl5ur3wJD+XzfcHWTN6byBfXex8gmgslWvt3Le6pXgyPU7alYNlO yV+Rkh8RiexbeorCa8Mn9JFtjdBUMSFKwMDWuWusOW7RA/LXrqbm2gIUecHpljcNeNkp KcV9nmoQ/bDoK/cqgmOk/DIay/JI8t0aAuSEH2dLXnh2GOXWRRjx6kVT5ODY3AEZzfOT rJZQ==
X-Gm-Message-State: ALoCoQmD8f/Mp5AhF5YFYi+NoK/OtilQ9oY77ugyEMaOW7rsnq4TrrEjOiOWoRQ1n2ZqGgzi9/ZE
MIME-Version: 1.0
X-Received: by 10.112.199.231 with SMTP id jn7mr633359lbc.37.1445633728189; Fri, 23 Oct 2015 13:55:28 -0700 (PDT)
Received: by 10.112.138.72 with HTTP; Fri, 23 Oct 2015 13:55:28 -0700 (PDT)
In-Reply-To: <030c01d10dd2$6fd3cda0$4f7b68e0$@ndzh.com>
References: <CABCOCHRRDZZZF1uj6UVDezmZzM3g8bEQiWTkyZKUPk6HL40fcg@mail.gmail.com> <030c01d10dd2$6fd3cda0$4f7b68e0$@ndzh.com>
Date: Fri, 23 Oct 2015 13:55:28 -0700
Message-ID: <CABCOCHQ7EnbabQOet3QGQmnFPU2o5p9Nf2PvpHD7qiHK2dd5xA@mail.gmail.com>
From: Andy Bierman <andy@yumaworks.com>
To: Susan Hares <shares@ndzh.com>
Content-Type: multipart/alternative; boundary=001a11c26696d830bc0522cbd422
Archived-At: <http://mailarchive.ietf.org/arch/msg/i2rs-proto-dt/Ucv8232r_juc5472arGtV1DzNoQ>
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:55:32 -0000

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

> Andy:
>
>
>
> Sorry for the delay in responding.
>
>
>
> Declaring module-level “ephemeral” by declaring the top-node as ephemeral
> is fine.  However,   do you think people will want to query by the module
> library whether a module is ephemeral.
>

no - YANG does not need to make rules about what subset of statements
exist in a module. e.g., deviation-stmt is put in a regular YANG module.



>
>
> Sue
>
>
>


Andy


> *From:* I2rs-proto-dt [mailto:i2rs-proto-dt-bounces@ietf.org] *On Behalf
> Of *Andy Bierman
> *Sent:* Wednesday, October 21, 2015 5:46 PM
> *To:* Susan Hares; i2rs-proto-dt@ietf.org
> *Subject:* [I2rs-proto-dt] couple YANG details
>
>
>
> 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?
>
>
>
>
>