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

Andy Bierman <andy@yumaworks.com> Fri, 23 October 2015 16:07 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 0AA291A6F7D for <i2rs-proto-dt@ietfa.amsl.com>; Fri, 23 Oct 2015 09:07:38 -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 S7GQIkHef6Fx for <i2rs-proto-dt@ietfa.amsl.com>; Fri, 23 Oct 2015 09:07:36 -0700 (PDT)
Received: from mail-lf0-x22f.google.com (mail-lf0-x22f.google.com [IPv6:2a00:1450:4010:c07::22f]) (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 2156D1A6F57 for <i2rs-proto-dt@ietf.org>; Fri, 23 Oct 2015 09:07:36 -0700 (PDT)
Received: by lffz202 with SMTP id z202so89055884lff.3 for <i2rs-proto-dt@ietf.org>; Fri, 23 Oct 2015 09:07:34 -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=ku+7mn01QtGxppr2WnHBIgq2hm7Zwf8+WWSvzC3cUPw=; b=USsxIFVUpKuvC/Aj/vVAe2TJnMpUUBQ77rw7IeVIOHbB3MSxvxBkYatux/CvaNuxpz xsER/iWGNkEneZHVGWpUBBmKCTMbr33liO8mPfcCjLP58KgIGEUCNQruXjgEE5FupziH NZwimuW8LEP1EwYhj2wMfJXdElAyhrfIf7H0iVUCOU/F+64v/+fVewm/Ga3FL4INUEIs +BB/IVY9/ea864Meaj+zG//Pf7vmg6cZEdb/igMwmb73CVCKJKt9m2fq8EMhDoeXMsU4 03VpHJsNz38qO+ki0gcCl6uxuxWkvx+PuTPgY3RDQGzSkH13+dteDc32EdHJJgcQ+Dtw HwuQ==
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=ku+7mn01QtGxppr2WnHBIgq2hm7Zwf8+WWSvzC3cUPw=; b=PUsf59sUlk8FxWayDawbEFSa6hs/JMs7i9ymNunEIySv9K7BmwN0jKwBKINS4j9Byn BO9P2WNoKwo+n2CW76PEg4xof9BIwYLWFIZwf+lahuod/QizkTqtK9G3NbcFKKQJFR/T OltN2pFVL6HoyBTaPr5MJEU0aXlTTpTFRzLuE7F+M7Z95wgg1XxHnBC+zNBOcuRI1vBt XVXvnxOR4hDcqnnLd1PoQwvYyr8Ccq/OcyqT6HwwAqZXPPwTiEfeOjpOhvhqptXD6Pss 4AK+8um0dHjqxG1jFsmXbUb3Gqv7H99gaUb6a7OSQ5e9f4ZGHMyPIgrAmjgoBh4CZED9 3rEA==
X-Gm-Message-State: ALoCoQlnf4Hn7B6BQ745uHWsmkpXCD8tmYUND+aWEiavH3Ewo6lK+ctN154AWUDIR9nh1z+Of6h/
MIME-Version: 1.0
X-Received: by 10.112.160.138 with SMTP id xk10mr11361439lbb.119.1445616454328; Fri, 23 Oct 2015 09:07:34 -0700 (PDT)
Received: by 10.112.138.72 with HTTP; Fri, 23 Oct 2015 09:07:34 -0700 (PDT)
In-Reply-To: <20151023154757.GH26793@pfrc.org>
References: <CABCOCHRRDZZZF1uj6UVDezmZzM3g8bEQiWTkyZKUPk6HL40fcg@mail.gmail.com> <CABCOCHSinfdgfxhg8Ly9ZDSDCvqi3xse+ZwAAQnYweEaMJ6j7w@mail.gmail.com> <20151023151945.GG26793@pfrc.org> <CABCOCHQb1MjX_8XpV1+2vOnEWO_VfNQoLi=jBizGov+Hz6saoA@mail.gmail.com> <20151023154757.GH26793@pfrc.org>
Date: Fri, 23 Oct 2015 09:07:34 -0700
Message-ID: <CABCOCHTNqQOc4t3N7uBUt2jWYskEpKHxfca0aYC1Kza+ZCSRDg@mail.gmail.com>
From: Andy Bierman <andy@yumaworks.com>
To: Jeffrey Haas <jhaas@pfrc.org>
Content-Type: multipart/alternative; boundary=001a11c38b903dfc840522c7cf0d
Archived-At: <http://mailarchive.ietf.org/arch/msg/i2rs-proto-dt/TTm1pFAsRvUMP8yWGPeQWp8dHAQ>
Cc: i2rs-proto-dt@ietf.org, Susan Hares <shares@ndzh.com>
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 16:07:38 -0000

On Fri, Oct 23, 2015 at 8:47 AM, Jeffrey Haas <jhaas@pfrc.org>; wrote:

> Andy,
>
> On Fri, Oct 23, 2015 at 08:29:25AM -0700, Andy Bierman wrote:
> > So if the YANG list has "max-elements 5",
> > and the config has 5 entries.  What happens when
> > 5 or 10 entries are added in the ephemeral datastore?
>
> I'd go for Principle of Least Astonishment and assume it works as you'd
> expect through the union of all of the data stores.
>
>
So that means constraint enforcement is on the combined intended config.
OK.  Let's say config-list[1] through [5] exist in config. An I2RS client
adds
config-list[6] in ephemeral data. This should not be rejected because
I2RS is supposed to be better priority than regular config. (T or F?)
So which config-list entry in the running config is disabled?
(Implementation-specific?)
How does the NETCONF client know an entry got disabled (opstate solution?)



-- Jeff
>

Andy