Re: [core] ? WG adoption of draft-veillette-core-yang-cbor-mapping-00

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Fri, 22 April 2016 09:05 UTC

Return-Path: <j.schoenwaelder@jacobs-university.de>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 47D7712EA6B for <core@ietfa.amsl.com>; Fri, 22 Apr 2016 02:05:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.196
X-Spam-Level:
X-Spam-Status: No, score=-5.196 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.996] autolearn=ham autolearn_force=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 GOZXjBBpzrRf for <core@ietfa.amsl.com>; Fri, 22 Apr 2016 02:05:49 -0700 (PDT)
Received: from atlas3.jacobs-university.de (atlas3.jacobs-university.de [212.201.44.18]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CC2AB12EA77 for <core@ietf.org>; Fri, 22 Apr 2016 02:05:44 -0700 (PDT)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas3.jacobs-university.de (Postfix) with ESMTP id 902461014; Fri, 22 Apr 2016 11:05:43 +0200 (CEST)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from atlas3.jacobs-university.de ([10.70.0.220]) by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new, port 10030) with ESMTP id bagUMwUk53MK; Fri, 22 Apr 2016 11:05:21 +0200 (CEST)
Received: from hermes.jacobs-university.de (hermes.jacobs-university.de [212.201.44.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hermes.jacobs-university.de", Issuer "Jacobs University CA - G01" (verified OK)) by atlas3.jacobs-university.de (Postfix) with ESMTPS; Fri, 22 Apr 2016 11:05:42 +0200 (CEST)
Received: from localhost (demetrius3.jacobs-university.de [212.201.44.48]) by hermes.jacobs-university.de (Postfix) with ESMTP id 307C820046; Fri, 22 Apr 2016 11:05:42 +0200 (CEST)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius3.jacobs-university.de [212.201.44.32]) (amavisd-new, port 10024) with ESMTP id cH_tn2LLdg87; Fri, 22 Apr 2016 11:05:40 +0200 (CEST)
Received: from elstar.local (elstar.jacobs.jacobs-university.de [10.50.231.133]) by hermes.jacobs-university.de (Postfix) with ESMTP id 639372004A; Fri, 22 Apr 2016 11:05:39 +0200 (CEST)
Received: by elstar.local (Postfix, from userid 501) id 5D5B43AAEDCA; Fri, 22 Apr 2016 11:05:38 +0200 (CEST)
Date: Fri, 22 Apr 2016 11:05:38 +0200
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Somaraju Abhinav <abhinav.somaraju@tridonic.com>
Message-ID: <20160422090538.GA10739@elstar.local>
Mail-Followup-To: Somaraju Abhinav <abhinav.somaraju@tridonic.com>, Andy Bierman <andy@yumaworks.com>, Michel Veillette <Michel.Veillette@trilliantinc.com>, Hannes Tschofenig <hannes.tschofenig@gmx.net>, "core@ietf.org WG" <core@ietf.org>
References: <570A4583.2030100@tzi.org> <5718A09E.7040607@gmx.net> <BLUPR06MB1763F3B6BDE5240402576758FE6E0@BLUPR06MB1763.namprd06.prod.outlook.com> <20160421174806.GA8710@elstar.local> <BLUPR06MB1763C3A1543AAB909C95D20EFE6E0@BLUPR06MB1763.namprd06.prod.outlook.com> <20160421204630.GA8993@elstar.local> <BLUPR06MB17635E7755D44E34BB1FACA5FE6E0@BLUPR06MB1763.namprd06.prod.outlook.com> <20160421213738.GD8993@elstar.local> <CABCOCHTzsRiom8aMNu1YSmg_dk=mf3-5Y7SbO4OOCUZKVufgSQ@mail.gmail.com> <VI1PR06MB1839CAEC8A9D774D92F3EDB6FC6F0@VI1PR06MB1839.eurprd06.prod.outlook.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <VI1PR06MB1839CAEC8A9D774D92F3EDB6FC6F0@VI1PR06MB1839.eurprd06.prod.outlook.com>
User-Agent: Mutt/1.6.0 (2016-04-01)
Archived-At: <http://mailarchive.ietf.org/arch/msg/core/a0MCVaoyqr2EjV3qSnQjN6oOx4o>
Cc: "core@ietf.org WG" <core@ietf.org>
Subject: Re: [core] ? WG adoption of draft-veillette-core-yang-cbor-mapping-00
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 22 Apr 2016 09:05:52 -0000

We have modeled something in YANG is not the same as there is a
_simple_ translation (or I wrongly assumed 'automated translation'
while the intention was 'human translation'?).

The link you provide still requires to register my email address, but
yes this time with a bit less legalize. Anyway, I am not interested in
looking at stuff where content protection is apparently rated higher
than open access.

Concerning operations: In YANG 1.1, you can associate an operation
with a YANG container or a YANG list element (it is called an action
in YANG 1.1). But since you map so called 'objects' to modules, it
probably does not matter (and I am not sure mapping 'objects' to
modules is what I would do but then I just do not the LWM2M details).

/js

On Fri, Apr 22, 2016 at 08:46:50AM +0000, Somaraju Abhinav wrote:
> Hi,
> We have been using YANG to model objects that we use with LWM2M for about 6 months now. As far as I can tell, there is only one part of the LWM2M resource model that cannot be modelled using YANG: LWM2M has resources on which you can read, write and execute (operations). YANG distinguishes between resources that are operations vs data and therefore cannot be used to model resources in LWM2M that support the three types of operations. There are of course ways around this issue.
> 
> As an example, please find attached an IPSO object available for download at http://www.ipso-alliance.org/so-starter-pack/ which my colleague has modelled in YANG. Please note that the YANG model is just an example and is not approved/endorsed by IPSO or LWM2M.
> 
> Regards,
> Abhinav
> 
> From: core [mailto:core-bounces@ietf.org] On Behalf Of Andy Bierman
> Sent: Donnerstag, 21. April 2016 23:50
> To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>; Michel Veillette <Michel.Veillette@trilliantinc.com>; Hannes Tschofenig <hannes.tschofenig@gmx.net>; core@ietf.org WG <core@ietf.org>
> Subject: Re: [core] ? WG adoption of draft-veillette-core-yang-cbor-mapping-00
> 
> 
> 
> On Thu, Apr 21, 2016 at 2:37 PM, Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de<mailto:j.schoenwaelder@jacobs-university.de>> wrote:
> On Thu, Apr 21, 2016 at 09:00:29PM +0000, Michel Veillette wrote:
> > Hi Juergen
> >
> > The extract I have provided is from a publically available document, see:
> > https://www.iab.org/wp-content/IAB-uploads/2016/03/ipso-paper.pdf
> >
> > My remark about the LWM2M modeling language was just to highlight that such language don't necessary imply code generation.
> >
> 
> YANG does not imply code generation either. A YANG module defines a
> contract, and in the light of a protocol a programmatic interface.
> There is nothing in YANG that requires code generation.
> 
> It just happens that people often tend to automate things if they find
> themself repeatedly writing similar code. It is at the end a question
> of how much data a device exposes and what kind of developers you are
> dealing with and whether you have a product that is expected to evolve
> over years or something designed to be sold and thrown away
> afterwards. ;-)
> 
> /js
> 
> PS: I have just implemented a YANG data model 'manually' because I had
>     reasons to not depend on tool chains (the target environment are
>     OpenWrt type of devices). But still I took advantage of having
>     YANG tools available to validate test cases so that I can be
>     reasonably sure my manually written code is a good match of the
>     contract.
> 
> 
> There are commercial and open-source toolchains that handle the NETCONF/YANG
> interaction model and most of the data model details in the protocol stack, instead of pushing that
> work out to the model instrumentation.  This can save a lot of code and makes sure
> the client or server has consistent behavior.
> 
> But you are making an important point.
> The expected use CoMI/CoOL co-authors have discussed is client firmware written
> to work with specific YANG modules/revisions.  The client needs to retrieve enough
> server state to know if the server supports the same module revisions, and then just assumes
> the API contract will be followed.  It does not need any YANG parser or code automation.
> 
> 
> --
> Juergen Schoenwaelder           Jacobs University Bremen gGmbH
> Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
> Fax:   +49 421 200 3103         <http://www.jacobs-university.de/>
> 
> 
> Andy
> 
> _______________________________________________
> core mailing list
> core@ietf.org<mailto:core@ietf.org>
> https://www.ietf.org/mailman/listinfo/core
> 
> ________________________________________________________ The contents of this e-mail and any attachments are confidential to the intended recipient. They may not be disclosed to or used by or copied in any way by anyone other than the intended recipient. If this e-mail is received in error, please immediately notify the sender and delete the e-mail and attached documents. Please note that neither the sender nor the sender's company accept any responsibility for viruses and it is your responsibility to scan or otherwise check this e-mail and any attachments.



-- 
Juergen Schoenwaelder           Jacobs University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
Fax:   +49 421 200 3103         <http://www.jacobs-university.de/>