Re: [netmod] OpsState and Schema-Mount

Robert Wilton <rwilton@cisco.com> Thu, 04 August 2016 10:53 UTC

Return-Path: <rwilton@cisco.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 296AC12DD2A for <netmod@ietfa.amsl.com>; Thu, 4 Aug 2016 03:53:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -15.809
X-Spam-Level:
X-Spam-Status: No, score=-15.809 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.287, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.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 CcTO97DWOc39 for <netmod@ietfa.amsl.com>; Thu, 4 Aug 2016 03:53:08 -0700 (PDT)
Received: from aer-iport-1.cisco.com (aer-iport-1.cisco.com [173.38.203.51]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2EE9212DD3F for <netmod@ietf.org>; Thu, 4 Aug 2016 03:52:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=3041; q=dns/txt; s=iport; t=1470307976; x=1471517576; h=subject:to:references:cc:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=ashpJuv5th+KQLtLotpPtgox5zHTL/yaTEWgprYglwY=; b=LiZTHpeYuOndSKMs8O9e616YtzkZNeR6RZ6lcJPgTig5zWrVBph6tUWJ YAkt+a967KvEqZmrBew4McwM0ejwsSccrEyjGNNN0qQLxpmEEeUiTjVyA LFFG69umGTLYsGgY2qZGOmF3eV7ry0Y4ok1J1wGLA+fXmY3Jd9Sf6s66N c=;
X-IronPort-AV: E=Sophos;i="5.28,470,1464652800"; d="scan'208";a="681089848"
Received: from aer-iport-nat.cisco.com (HELO aer-core-2.cisco.com) ([173.38.203.22]) by aer-iport-1.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Aug 2016 10:52:54 +0000
Received: from [10.63.23.91] (dhcp-ensft1-uk-vla370-10-63-23-91.cisco.com [10.63.23.91]) by aer-core-2.cisco.com (8.14.5/8.14.5) with ESMTP id u74Aqs55016903; Thu, 4 Aug 2016 10:52:54 GMT
To: "Acee Lindem (acee)" <acee@cisco.com>, Ladislav Lhotka <lhotka@nic.cz>, Balazs Lengyel <balazs.lengyel@ericsson.com>
References: <bed9398c-0e6a-450e-d2ac-b381b6bebf87@cisco.com> <5296754B-8178-4B1B-B4A6-FE228ABB8E7F@juniper.net> <9367f4b1-7814-e175-32e8-d518438b841d@cisco.com> <m24m79c1ja.fsf@birdie.labs.nic.cz> <D3BF8708.72620%acee@cisco.com> <552008CB-F216-4578-A709-AE0613C2EFB9@nic.cz> <12ed1a4d-44c5-9a51-b6d4-95e1620a24ee@cisco.com> <m260roedim.fsf@birdie.labs.nic.cz> <CABCOCHRF98sTa=MA1VTkZovOufL-=yQr9Gzy+ojnncjSfK1y0Q@mail.gmail.com> <e307c2fc-e621-b5c6-4fcc-67bbcdcb87b9@cisco.com> <20160729163220.GA3579@elstar.local> <68421198-703c-bb26-0fcc-f560e6fe108d@ericsson.com> <100B5D71-C23E-4C72-9EA2-2DB6574DEB87@nic.cz> <5153eab1-8d87-6e3c-3b54-441f683695e4@cisco.com> <D3C7B1A4.7482A%acee@cisco.com>
From: Robert Wilton <rwilton@cisco.com>
Message-ID: <18066971-3353-b13f-04fa-e214a47ab9a7@cisco.com>
Date: Thu, 04 Aug 2016 11:52:53 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0
MIME-Version: 1.0
In-Reply-To: <D3C7B1A4.7482A%acee@cisco.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/02M1ZTPWUQa-JB8RCBQJ4Era-AM>
Cc: netmod WG <netmod@ietf.org>
Subject: Re: [netmod] OpsState and Schema-Mount
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.17
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: Thu, 04 Aug 2016 10:53:11 -0000


On 03/08/2016 19:37, Acee Lindem (acee) wrote:
>
> On 8/3/16, 5:02 AM, "netmod on behalf of Robert Wilton -X (rwilton -
> ENSOFT LIMITED at Cisco)" <netmod-bounces@ietf.org on behalf of
> rwilton@cisco.com> wrote:
>
>>
>> On 03/08/2016 07:49, Ladislav Lhotka wrote:
>>>> On 02 Aug 2016, at 18:35, Balazs Lengyel <balazs.lengyel@ericsson.com>
>>>> wrote:
>>>>
>>>> Hello,
>>>> If we allow foo and foo-state for opstate, mounting models atop such a
>>>> multi rooted yang module will be fun.
>>>> mount modB-config-part onto modA-config-part
>>>> mount modB-state-part onto modA-state-part
>>>> One mount becomes two and you have to maintain parallel mounts
>>>> otherwise you are mounting half modules.
>>> This is already happenning with augments. It means some work but
>>> nothing terribly complex.
>>>
>>>> Actually the problem is not caused by opstate, but rather by
>>>> multi-rooted models. but avoiding foo-state would make life easier once
>>>> more.
>>> We already agreed that some items (such as RIBs) are "true" state which
>>> don't have direct counterparts in configuration. If we don't have
>>> foo-state, where are these supposed to be placed?
>> One choice is that they could just be placed under foo, where foo is a
>> config false leaf.
> While there is a NETCONF/RESTCONF incompatibility with config-false data
> nodes under config-true data nodes, there is no problem with the reverse -
> correct?
You are allowed config false nodes under config true, but not config 
true nodes under config false.

I had assumed in the example above that there wasn't already a config 
true "foo" to put them under, so to reconsider my answer:

In draft-ietf-netmod-routing-cfg "routing" is a top level container that 
is nominally config true.  But it is also a non presence container, so 
it would be allowed to put the config false RIB nodes directly under the 
"routing" container.  Given that "routing" is an NP container, its 
existence (e.g. to report the RIB) doesn't imply that routing has been 
configured.

In fact (given the recent discussion on the NETCONF alias), it is 
questionable what a "config" true NP container actually means.  I 
suspect that really it just ends up being a filter as to what type of 
child nodes are allowed.  I.e. if the NP container is config=true, then 
child nodes can be config true or config false. Conversely, if the NP 
container is config false then any child nodes must also be config false.

Thanks,
Rob


>
> Thanks,
> Acee
>
>
>
>
>> Rob
>>
>>
>>> Lada
>>>
>>>> regards Balazs
>>>>
>>>> -- 
>>>> Balazs Lengyel                       Ericsson Hungary Ltd.
>>>> Senior Specialist
>>>> Mobile: +36-70-330-7909              email: Balazs.Lengyel@ericsson.com
>>>>
>>> --
>>> Ladislav Lhotka, CZ.NIC Labs
>>> PGP Key ID: E74E8C0C
>>>
>>>
>>>
>>>
>>> .
>>>
>> _______________________________________________
>> netmod mailing list
>> netmod@ietf.org
>> https://www.ietf.org/mailman/listinfo/netmod