[netmod] Generic DS concept WAS:RE: [Netconf] Decision on the Intended Status of the Revised DS Draft WAS:RE: :candidate, :writable-running and RESTCONF edits

"Mehmet Ersue" <mersue@gmail.com> Thu, 12 January 2017 22:04 UTC

Return-Path: <mersue@gmail.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 68604128824 for <netmod@ietfa.amsl.com>; Thu, 12 Jan 2017 14:04:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level:
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 HZTYEowZ13gB for <netmod@ietfa.amsl.com>; Thu, 12 Jan 2017 14:04:03 -0800 (PST)
Received: from mail-wm0-x231.google.com (mail-wm0-x231.google.com [IPv6:2a00:1450:400c:c09::231]) (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 A5AF1120727 for <netmod@ietf.org>; Thu, 12 Jan 2017 14:04:02 -0800 (PST)
Received: by mail-wm0-x231.google.com with SMTP id r144so42342538wme.1 for <netmod@ietf.org>; Thu, 12 Jan 2017 14:04:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:thread-index:content-language :disposition-notification-to; bh=/H3RFV8+Bg122lQshVrhJMke/uVoDmB4IlvYaS70WfY=; b=Pn3shqYZgioKtVYVlV8sIkxSlZUy+QJQ452efdlmNw3KizilNh7e1VUsWj+mJQed62 3/hpFA8adVgmPyNuVGMctbZWr+2lgKuV+HZ5BkxrkDe176tyUUmDsZ9FnaRHxIFm7nj4 wwQoqyCAkY4c0QDVgD6kthr0I9ypajX/JvXSMlCFKhmrTg/9MHN5uSaXNwPJ3iHXAH/1 ONyOQ+2QObvRBL/HtB1GFpjBOYPCjAQ5lfe2RQR5yK4bZzRMWer6Wj5sjnnA2Zpaix7b W2kuO8+/Q+LhtOZWwabWhg6w08PA7wlPUYRaD3+IHASOdE7oYKIjxbGXKWsk86DHBzHJ Solw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:thread-index:content-language :disposition-notification-to; bh=/H3RFV8+Bg122lQshVrhJMke/uVoDmB4IlvYaS70WfY=; b=ddLJ4ekEIUX3SV8aNzprU9+FrGGmYMk4MgErvM7+AV+qRjU1oCKjJ4u3xQFoQX29MB 222fJIAJ2HTk5+NHBLcOVhlV4oQK4Yykr/KfzGluwSYf6lVQSsZ/J7lWshFaxaw3O6Li ElTbCwAWzhKPT01OlekM40f9yU1VQwhA6Scc82LDn2OONqpvuvmotPOOesaodKWqXbAG jBM+uiVI/xXZiacy3p3sOxan9B5RKP0o+qv9EOBtJjp4sBPxcbvDYlPna6DT2gOM8SdS n+2byg1JK3m5KCeHPoe445VRKUTOrFrNctTHZFfdghWHeSk7VPpgZsV/5fMu2IB3fzUq ONjw==
X-Gm-Message-State: AIkVDXKhiDwe8DfcWTkuct8Q6tLOjORKc4RzI2+qMO1pZR3bQZSlWrZEwRKWbY6H/PbyAg==
X-Received: by 10.223.143.45 with SMTP id p42mr10129147wrb.120.1484258640970; Thu, 12 Jan 2017 14:04:00 -0800 (PST)
Received: from DESKTOPFLHJVQJ (p5B3407F9.dip0.t-ipconnect.de. [91.52.7.249]) by smtp.gmail.com with ESMTPSA id f126sm5775702wme.22.2017.01.12.14.03.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jan 2017 14:04:00 -0800 (PST)
From: Mehmet Ersue <mersue@gmail.com>
To: 'Ladislav Lhotka' <lhotka@nic.cz>, 'Robert Wilton' <rwilton@cisco.com>
Date: Thu, 12 Jan 2017 23:03:59 +0100
Message-ID: <035b01d26d1f$c79e74b0$56db5e10$@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AdJtH8bUFvUWvjPpTcCAr7hMHGuTBQ==
Content-Language: de
X-AVK-Virus-Check: AVA 25.10096;BF82DA0
X-AVK-Spam-Check: 1; str=0001.0A0C0208.5877FD50.0012,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0; AE713
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/TCJKmqJS2-QyTGwY7-nrK9LsyWE>
Cc: 'NetMod WG' <netmod@ietf.org>
Subject: [netmod] Generic DS concept WAS:RE: [Netconf] Decision on the Intended Status of the Revised DS Draft WAS:RE: :candidate, :writable-running and RESTCONF edits
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, 12 Jan 2017 22:04:05 -0000

Hi All,

I started this thread for a discussion on the Intended Status of the Revised
DS Draft.
I think the discussion on technical issues of the DS concept can be
discussed on one maillist.

I call the new thread "Generic DS concept".

Cheers,
Mehmet

-----Original Message-----
From: netmod [mailto:netmod-bounces@ietf.org] On Behalf Of Ladislav Lhotka
Sent: Wednesday, January 11, 2017 4:37 PM
To: Robert Wilton <rwilton@cisco.com>
Cc: Netconf <netconf@ietf.org>; NetMod WG <netmod@ietf.org>
Subject: Re: [netmod] [Netconf] Decision on the Intended Status of the
Revised DS Draft WAS:RE: :candidate, :writable-running and RESTCONF edits


> On 11 Jan 2017, at 16:18, Robert Wilton <rwilton@cisco.com> wrote:
> 
> 
> 
> On 11/01/2017 14:48, Ladislav Lhotka wrote:
>>> On 11 Jan 2017, at 15:18, Robert Wilton <rwilton@cisco.com> wrote:
>>> 
>>> Hi,
>>> 
>>> On 11/01/2017 13:05, Ladislav Lhotka wrote:
>>>>> On 11 Jan 2017, at 13:53, Martin Bjorklund <mbj@tail-f.com> wrote:
>>>>> 
>>>>> Ladislav Lhotka <lhotka@nic.cz> wrote:
>>> <snip>
>>>>>> Show me a single YANG data node definition that's duplicate in my 
>>>>>> concept above. But then maybe I didn't explain it properly.
>>>>> The interface's "type" leaf.  With the new operational-state 
>>>>> datastore, /interfaces/interface/type in operational-state and 
>>>>> /interfaces-state/interface/type are duplicate.
>>>> As I said, ietf-interfaces-state state would consist of augments
containing extra state nodes (i.e. those that are not in configuration). So
"type" won't be there.
>>> I think that this effectively just achieves the same thing that the
"config: true|false" statement indicates in a combined config/state tree.
>>> 
>>> Personally, I think that a file of augmentations is probably going to be
harder to read than having the config and state schema in one tree in one
file.
>> Possibly we could also use schema mount. On the other hand, it doesn't
enforce the use of operational-state datastore. A simple device like a
WiFi-controlled electric socket could easily use just ietf-interfaces-config
(and ietf-ip-config), i.e. no state data.
>> 
>> Another example I am dealing with now is OpenWRT: with some effort, it
would be possible to translate our nice configuration data into UCI files
without touching the OpenWRT system itself. On the other hand, serving state
data according to our YANG modules is a non-starter.
> Isn't the proper answer here to generate deviations to remove the state
leaves that won't be implemented.

This is of course possible but deviations are generally frowned upon, so why
not use the modularity features for making it a little more flexible? I know
some people will now say that without state data it is no proper network
management but, speaking pragmatically, automated configuration would be a
big boon by itself.

> 
>> 
>>> The models may also be slightly more inconvenient to use because the
state tree leaves would presumably be in a different namespace from the
configuration?
>>> 
>> Yes, but I don't think it is a big problem - even for human readers.
> I'm not sure.  I think that you might end up with a variation of the
OpenConfig models, and based on experience I would say that those models are
hard to read if they haven't been compiled first to expand the groupings and
reveal the actual structure.

One thing that makes modules really hard to read are augments, and we
already have them all over the place. It's a trade-off between readability
and modularity.

Lada

> 
> Rob
> 
> 
>> 
>>> If you wanted this file level split then using submodules would allow
for separate config/state files but still be managed as a single combined
module.
>> But it means you have to implement both.
>> 
>> Lada
>> 
>>> Rob
>>> 
>>> 
>>>>>> Note also that you slightly misinterpreted my statement that you
>>>>>> cited:
>>>>>> 
>>>>>> I believe both the protocols and YANG can work with any set of 
>>>>>> datastores [...]
>>>>>> 
>>>>>> I didn't say that there cannot be *modules* that are somehow 
>>>>>> designed for a particular datastore model - I meant YANG the
language.
>>>>> Ok.  Yes, you're right, but then we'd probably need some new 
>>>>> statement in each module that tells which meta-model the YANG 
>>>>> module is written for.
>>>> I would prefer to have it as state data, basically separate YANG
libraries for configuration datastores and operational-state.
>>> 
>>>> Lada
>>>> 
>>>>> /martin
>>>>> 
>>>>> 
>>>>>> Lada
>>>>>> 
>>>>>>> /martin
>>>>>>> 
>>>>>>> 
>>>>>>>> Am I completely misguided here? If not, then I don't see where 
>>>>>>>> the new modules refer to any particular datastore model. Yes, 
>>>>>>>> they do reflect that there is configuration and state data, but 
>>>>>>>> we don't want to get rid of this distinction, right?
>>>>>>>> 
>>>>>>>> Lada
>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> /martin
>>>>>>>> --
>>>>>>>> Ladislav Lhotka, CZ.NIC Labs
>>>>>>>> PGP Key ID: 0xB8F92B08A9F76C67
>>>>>> --
>>>>>> Ladislav Lhotka, CZ.NIC Labs
>>>>>> PGP Key ID: 0xB8F92B08A9F76C67
>>>> --
>>>> Ladislav Lhotka, CZ.NIC Labs
>>>> PGP Key ID: 0xB8F92B08A9F76C67
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> _______________________________________________
>>>> Netconf mailing list
>>>> Netconf@ietf.org
>>>> https://www.ietf.org/mailman/listinfo/netconf
>>>> .
>> --
>> Ladislav Lhotka, CZ.NIC Labs
>> PGP Key ID: 0xB8F92B08A9F76C67
>> 
>> 
>> 
>> 
>> 
>> .

--
Ladislav Lhotka, CZ.NIC Labs
PGP Key ID: 0xB8F92B08A9F76C67





_______________________________________________
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod