Re: [core] ? WG adoption of draft-veillette-core-yang-cbor-mapping-00
Somaraju Abhinav <abhinav.somaraju@tridonic.com> Fri, 22 April 2016 08:47 UTC
Return-Path: <abhinav.somaraju@tridonic.com>
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 529A712EA62 for <core@ietfa.amsl.com>; Fri, 22 Apr 2016 01:47:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=zgrp.onmicrosoft.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 kr6hQCNuA9Z0 for <core@ietfa.amsl.com>; Fri, 22 Apr 2016 01:47:15 -0700 (PDT)
Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3on0750.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe04::750]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4597E12EA61 for <core@ietf.org>; Fri, 22 Apr 2016 01:47:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zgrp.onmicrosoft.com; s=selector1-tridonic-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ZQnnkd9PAuy2YDHcK0aQm8ILav1ICC31eCXrcX6/4GA=; b=X+BbHdCAcx1DiDieB8MX4X+QghqSQqCWWHP+QpXzP7f/r1nYc/jvZYfdBJRm6muglprGGNFLFFAllN9v9yCXBjP5X/4/zRhh+AJbMeDRGIXq5MP82gej22Q3DHhha6EB9PJQMi7bWRDC3QV1quMbRlz3jGR1bnq/tUITPf+ntrw=
Received: from VI1PR06MB1839.eurprd06.prod.outlook.com (10.165.237.157) by VI1PR06MB1837.eurprd06.prod.outlook.com (10.165.237.155) with Microsoft SMTP Server (TLS) id 15.1.466.19; Fri, 22 Apr 2016 08:46:50 +0000
Received: from VI1PR06MB1839.eurprd06.prod.outlook.com ([10.165.237.157]) by VI1PR06MB1839.eurprd06.prod.outlook.com ([10.165.237.157]) with mapi id 15.01.0466.023; Fri, 22 Apr 2016 08:46:50 +0000
From: Somaraju Abhinav <abhinav.somaraju@tridonic.com>
To: Andy Bierman <andy@yumaworks.com>, 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>
Thread-Topic: [core] ? WG adoption of draft-veillette-core-yang-cbor-mapping-00
Thread-Index: AQHRm/X+5ubwG7D3zkGKYQfJYUlSTp+U1XaAgAAQYQCAAAPogIAACmYAgAADbQCAALSEcA==
Date: Fri, 22 Apr 2016 08:46:50 +0000
Message-ID: <VI1PR06MB1839CAEC8A9D774D92F3EDB6FC6F0@VI1PR06MB1839.eurprd06.prod.outlook.com>
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>
In-Reply-To: <CABCOCHTzsRiom8aMNu1YSmg_dk=mf3-5Y7SbO4OOCUZKVufgSQ@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
authentication-results: yumaworks.com; dkim=none (message not signed) header.d=none; yumaworks.com; dmarc=none action=none header.from=tridonic.com;
x-originating-ip: [146.108.200.10]
x-ms-office365-filtering-correlation-id: c2e39b42-c687-4469-91c8-08d36a8aa576
x-microsoft-exchange-diagnostics: 1; VI1PR06MB1837; 5:PhHisXZ0Gy35+3bMOTIWHuNR1qfH0TlW43hLD6DDdOELne3dkEyHRmUEU6QxUE9KBgLgIU5mLoXez1zF6SIUlAgloziPn3mLG3c3f1AarJoYKN6MCXKI9fCBPZz7CI2YPW7Y0XE9YJtvkLDptgEfHA9qB9V0T9d4H2yLSFxwIhKx1ts1GPSOQWM7sLRbmCwl; 24:K/MRdNdqmCWYuObS/WqOAzi335OIx2rze8jMqJbEOOlklmZwK6ukn39l4+qapNpjgjARMthpCnBEgVpAVXS6sS4Y7N13AjQeYTB1weaRRM4=; 7:QVqRYl64NxHNN2P/TOsYB0qDBz1Evm7DDzmG6cai3SWbc79wndimRW9MnLo24Y6MeBD8KAJgQrQeGGIV4f9Woi/FMcF0z7orgcDr8/0/GTAPclWcoR1v+a6PCgXo0sXFgk5MLZFrAJ8oziqBAEGms2EsC0TeBTDStwvGfV+PwGSyP6m948rkhxCy9Y3r6MCOFm2cdt+5ROwRtThN8PhAnLVpADd83HTeuTJCnDjZOFs=
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:VI1PR06MB1837;
x-microsoft-antispam-prvs: <VI1PR06MB1837F066B60F20C5BFD85D7EFC6F0@VI1PR06MB1837.eurprd06.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:;
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(102415293)(102615271)(9101521026)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001); SRVR:VI1PR06MB1837; BCL:0; PCL:0; RULEID:; SRVR:VI1PR06MB1837;
x-forefront-prvs: 0920602B08
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(24454002)(377454003)(76576001)(189998001)(5003600100002)(5890100001)(66066001)(19580405001)(19580395003)(92566002)(10400500002)(2906002)(107886002)(19617315012)(230783001)(5008740100001)(74316001)(6116002)(790700001)(33656002)(19300405004)(586003)(81166005)(2900100001)(15975445007)(3280700002)(50986999)(3846002)(102836003)(54356999)(77096005)(5001770100001)(99936001)(1220700001)(87936001)(2950100001)(76176999)(16236675004)(1096002)(5004730100002)(122556002)(106116001)(5002640100001)(9686002)(86362001)(3660700001)(93886004)(11100500001)(19625215002); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR06MB1837; H:VI1PR06MB1839.eurprd06.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en;
spamdiagnosticoutput: 1:23
spamdiagnosticmetadata: NSPM
Content-Type: multipart/mixed; boundary="_004_VI1PR06MB1839CAEC8A9D774D92F3EDB6FC6F0VI1PR06MB1839eurp_"
MIME-Version: 1.0
X-OriginatorOrg: tridonic.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Apr 2016 08:46:50.1382 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 8b206608-a593-4ace-a4b6-ef1fc83c9169
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR06MB1837
Archived-At: <http://mailarchive.ietf.org/arch/msg/core/_2sqOS9uIeCOWk5sXYYkjfLrO0g>
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
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 08:47:18 -0000
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.
- Re: [core] LWM2M spec now available for public do⦠Carsten Bormann
- [core] LWM2M spec now available for public downlo⦠Hannes Tschofenig
- Re: [core] π WG adoption of draft-veillette-core-β¦ peter van der Stok
- [core] π WG adoption of draft-veillette-core-yangβ¦ Carsten Bormann
- Re: [core] π WG adoption of draft-veillette-core-β¦ Andy Bierman
- Re: [core] π WG adoption of draft-veillette-core-β¦ Somaraju Abhinav
- Re: [core] π WG adoption of draft-veillette-core-β¦ Pascal Thubert (pthubert)
- Re: [core] π WG adoption of draft-veillette-core-β¦ Michel Veillette
- Re: [core] π WG adoption of draft-veillette-core-β¦ Turner, Randy
- Re: [core] π WG adoption of draft-veillette-core-β¦ James Nguyen
- Re: [core] π WG adoption of draft-veillette-core-β¦ Somaraju Abhinav
- Re: [core] π WG adoption of draft-veillette-core-β¦ Dijk, Esko
- Re: [core] π WG adoption of draft-veillette-core-β¦ Hannes Tschofenig
- Re: [core] π WG adoption of draft-veillette-core-β¦ Andy Bierman
- Re: [core] π WG adoption of draft-veillette-core-β¦ Michel Veillette
- Re: [core] ? WG adoption of draft-veillette-core-β¦ Juergen Schoenwaelder
- Re: [core] π WG adoption of draft-veillette-core-β¦ Paul Duffy
- Re: [core] ? WG adoption of draft-veillette-core-β¦ Michel Veillette
- Re: [core] π WG adoption of draft-veillette-core-β¦ Michel Veillette
- Re: [core] ? WG adoption of draft-veillette-core-β¦ Juergen Schoenwaelder
- Re: [core] ? WG adoption of draft-veillette-core-β¦ Michel Veillette
- Re: [core] ? WG adoption of draft-veillette-core-β¦ Andy Bierman
- Re: [core] ? WG adoption of draft-veillette-core-β¦ Juergen Schoenwaelder
- Re: [core] ? WG adoption of draft-veillette-core-β¦ Andy Bierman
- Re: [core] ? WG adoption of draft-veillette-core-β¦ Somaraju Abhinav
- Re: [core] ? WG adoption of draft-veillette-core-β¦ Juergen Schoenwaelder
- Re: [core] ? WG adoption of draft-veillette-core-β¦ Carsten Bormann
- Re: [core] ? WG adoption of draft-veillette-core-β¦ Somaraju Abhinav
- Re: [core] ? WG adoption of draft-veillette-core-β¦ Carsten Bormann
- Re: [core] ? WG adoption of draft-veillette-core-β¦ Juergen Schoenwaelder
- Re: [core] ? WG adoption of draft-veillette-core-β¦ Hannes Tschofenig
- Re: [core] ? WG adoption of draft-veillette-core-β¦ Juergen Schoenwaelder
- [core] Using Yang to describe LWM2M ... was Re: ?β¦ Hannes Tschofenig
- Re: [core] Using Yang to describe LWM2M ... was R⦠Juergen Schoenwaelder
- Re: [core] π WG adoption of draft-veillette-core-β¦ Carsten Bormann
- Re: [core] Using Yang to describe LWM2M ... was R⦠Hannes Tschofenig