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

Andy Bierman <andy@yumaworks.com> Wed, 21 October 2015 21:49 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 D6E761B31E4 for <i2rs-proto-dt@ietfa.amsl.com>; Wed, 21 Oct 2015 14:49:15 -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 2hTrsoRXOXlu for <i2rs-proto-dt@ietfa.amsl.com>; Wed, 21 Oct 2015 14:49:15 -0700 (PDT)
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 8583C1B31E0 for <i2rs-proto-dt@ietf.org>; Wed, 21 Oct 2015 14:49:14 -0700 (PDT)
Received: by lffy185 with SMTP id y185so27527680lff.2 for <i2rs-proto-dt@ietf.org>; Wed, 21 Oct 2015 14:49:12 -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 :content-type; bh=+zVZj0AdAALcNymMG8mcImR3yEbO4FV3Nb89DGvTk5M=; b=niDCHLNWBZ5s4pqGG3Vmj5yZo9mlc0/dmnZQ2D4eu01fRteQTh5pCDTthS8LxwCjRq 56jyyABjYsjb4tNoQSeMoiG6/LiTeymUhmBRpF792iWOKKvEdLBltfU1tEcskU9G5n5g EKh0pLwWOCxQYs412Amz36kxvXvPbZXv/ERLnW8SF+xn35AEBYjIz9TCBN1+a+FQDgfx Laquvw3AOfDj2s+0QzDl8Q5bxifkjWRvYtK+MTpwTJfeOWlBXpP/1eA0+bVIcu5mJwrt z0/WHz6PGQz+bwA36yB6v5BDaz5nZP6JVJEOPgKzq+wJW6srv9o2HbTPkVplLOtZo+Cm LFPQ==
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:content-type; bh=+zVZj0AdAALcNymMG8mcImR3yEbO4FV3Nb89DGvTk5M=; b=EEdkwxL+b9R8POdMlSzEYa75lJZjgTWbf6DQXD0Ug1/uyB5RLSfH1sTQaVcVTKed5F Gqagyr1uw2Rsibye9AUebl3fK0LGheKjk2CWMQ0XWbzNQfTe08jS1p+6v1JNdL472BCl 1EFdxt/ocCDGIJpsoN5GFD2dBrv1g1gFMrexdILlbMHAk2z1y6oPYarwCc8oBVbYLpZE 1OBZk1mi0NsummCUTzTecP/g7kqqnr/UWyyo5Pg5TFYYpwGHQdGC3zA2v91INujr3dPS 60/aXTvB1VA+oPQosTN3kTGz6jBi+m3huOFAc0DfVZ0WFrW1QzIEZzkyiS/9y8+i8FHX BYlQ==
X-Gm-Message-State: ALoCoQlNEC5rCs2kC9AR44VpKfaJ2r+OVg3Slm1LJAjvg3VX3iX5EEfMNons8GPXG78eoY+Tlg1c
MIME-Version: 1.0
X-Received: by 10.25.218.135 with SMTP id r129mr1877683lfg.82.1445464152611; Wed, 21 Oct 2015 14:49:12 -0700 (PDT)
Received: by 10.112.138.72 with HTTP; Wed, 21 Oct 2015 14:49:12 -0700 (PDT)
In-Reply-To: <CABCOCHRRDZZZF1uj6UVDezmZzM3g8bEQiWTkyZKUPk6HL40fcg@mail.gmail.com>
References: <CABCOCHRRDZZZF1uj6UVDezmZzM3g8bEQiWTkyZKUPk6HL40fcg@mail.gmail.com>
Date: Wed, 21 Oct 2015 14:49:12 -0700
Message-ID: <CABCOCHSinfdgfxhg8Ly9ZDSDCvqi3xse+ZwAAQnYweEaMJ6j7w@mail.gmail.com>
From: Andy Bierman <andy@yumaworks.com>
To: Susan Hares <shares@ndzh.com>, i2rs-proto-dt@ietf.org
Content-Type: multipart/alternative; boundary="001a114037e45a3d990522a4595a"
Archived-At: <http://mailarchive.ietf.org/arch/msg/i2rs-proto-dt/USHZO5ad210UjEJxjeTjG1H7wpY>
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: Wed, 21 Oct 2015 21:49:16 -0000

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?
>
>
>