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

Michel Veillette <Michel.Veillette@trilliantinc.com> Thu, 21 April 2016 19:47 UTC

Return-Path: <Michel.Veillette@trilliantinc.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 0D3A312DF6E for <core@ietfa.amsl.com>; Thu, 21 Apr 2016 12:47:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.903
X-Spam-Level:
X-Spam-Status: No, score=-1.903 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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=trilliant.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 qP5bcEfSLiaD for <core@ietfa.amsl.com>; Thu, 21 Apr 2016 12:47:57 -0700 (PDT)
Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0137.outbound.protection.outlook.com [65.55.169.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1108012DE97 for <core@ietf.org>; Thu, 21 Apr 2016 12:47:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Trilliant.onmicrosoft.com; s=selector1-trilliantinc-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=IX4IhVMMEEOqPsdHL7Vf260hT+HX2XvRAvSQ5wL+op8=; b=JPmjCx7b2GwRM0BJg0Ua+HfdXe5uX7V0RaBOaeJVlG7BOI/F8gmRsZ1SNbWobEwCyM1XcjKxyLfIHqUHlfqcBGi9Ea4vlmzKiNoCQQkSmi1WuJTpDtd6S8LpI+FJnqxbRNju9SAKnDJbnn50JpibhPl84IrMJ+9ocBRJ3oN+A/I=
Received: from BLUPR06MB1763.namprd06.prod.outlook.com (10.162.224.149) by BLUPR06MB1764.namprd06.prod.outlook.com (10.162.224.150) with Microsoft SMTP Server (TLS) id 15.1.466.19; Thu, 21 Apr 2016 19:47:53 +0000
Received: from BLUPR06MB1763.namprd06.prod.outlook.com ([10.162.224.149]) by BLUPR06MB1763.namprd06.prod.outlook.com ([10.162.224.149]) with mapi id 15.01.0466.023; Thu, 21 Apr 2016 19:47:53 +0000
From: Michel Veillette <Michel.Veillette@trilliantinc.com>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Thread-Topic: [core] ? WG adoption of draft-veillette-core-yang-cbor-mapping-00
Thread-Index: AQHRm/X9d/034ye6rkCrz4BefXTDrJ+U0HzQ
Date: Thu, 21 Apr 2016 19:47:53 +0000
Message-ID: <BLUPR06MB1763C3A1543AAB909C95D20EFE6E0@BLUPR06MB1763.namprd06.prod.outlook.com>
References: <570A4583.2030100@tzi.org> <5718A09E.7040607@gmx.net> <BLUPR06MB1763F3B6BDE5240402576758FE6E0@BLUPR06MB1763.namprd06.prod.outlook.com> <20160421174806.GA8710@elstar.local>
In-Reply-To: <20160421174806.GA8710@elstar.local>
Accept-Language: fr-CA, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: jacobs-university.de; dkim=none (message not signed) header.d=none;jacobs-university.de; dmarc=none action=none header.from=trilliantinc.com;
x-originating-ip: [207.96.192.122]
x-ms-office365-filtering-correlation-id: cc66aefb-b514-4b73-fae0-08d36a1dd415
x-microsoft-exchange-diagnostics: 1; BLUPR06MB1764; 5:XugZ5KiCVBJaKEe2ZNGpk1xoSdzve/utdDhkXORpK7MNs0+WQqdP3e9SSjh/FcL+7uiZFyqrKS7/e5EFGj/Hv19yvve9fgTfV6fkINacYH0KPAFklzeDEGlih55qwmlwi3WgoBQ+xzos8xddnw/CFGOQ9/G7m0Fa9hF025lAC7aPhOAVfatrCS1Os/Ek5kyh; 24:aqw/gHQ6/JXVBlgLMTKi7V8J/hcCjyV2XjFg/kPLpYbeoWXsKAcEJzLom54RDkwHoDSOidhPOikVXYniiVQG2AJIcTNwjdAJY7TQmbHsKYw=; 7:JZgvV3i5zXZKOFcixxNCGVu4mGfMRe4yzrGuHpMRE/s05QENmGF0c7v9+YVRnxgD4crpfawW+lQ2ocqhOKsbBWXXZOHQsKRFukITZVwndcwWsQ1AUuW1mhBXl/DYHBsD2U5RWQE3H839c26IWMIIwyV+zdBe8oHV8yaiF5bCjWmH7NKR89JhnG3ksn2KRj1CPDL628MNzG89dZNSvzGRszrcNyaWKkeLNBbfFeUvrPo=
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR06MB1764;
x-microsoft-antispam-prvs: <BLUPR06MB1764F723966D7E76637115E5FE6E0@BLUPR06MB1764.namprd06.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:;
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(9101521026)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001); SRVR:BLUPR06MB1764; BCL:0; PCL:0; RULEID:; SRVR:BLUPR06MB1764;
x-forefront-prvs: 091949432C
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(377454003)(13464003)(24454002)(93886004)(92566002)(81166005)(66066001)(19580405001)(5008740100001)(9686002)(19580395003)(5004730100002)(10400500002)(86362001)(87936001)(11100500001)(5002640100001)(106116001)(99286002)(33656002)(5003600100002)(74316001)(76176999)(54356999)(50986999)(3660700001)(4326007)(102836003)(230783001)(6116002)(122556002)(586003)(2900100001)(1720100001)(77096005)(15975445007)(2950100001)(1220700001)(3280700002)(189998001)(110136002)(76576001); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR06MB1764; H:BLUPR06MB1763.namprd06.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en;
spamdiagnosticoutput: 1:23
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: trilliantinc.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Apr 2016 19:47:53.1605 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 4f6fbd13-0dfb-4150-85c3-d43260c04309
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR06MB1764
Archived-At: <http://mailarchive.ietf.org/arch/msg/core/cR7asbcjRIQXZgqNxdIO0ImmSHM>
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
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: Thu, 21 Apr 2016 19:47:59 -0000

Hi Juergen

I'm not sure I can share a LWM2M definition files since peoples need fill a form to get access to them, see the following link.

http://technical.openmobilealliance.org/Technical/technical-information/release-program/current-releases/oma-lightweightm2m-v1-0

I didn't go through a formal mapping between these two modeling languages but following is what this mapping might look like:

LWM2M                | YANG
---------------------+---------------
<Object>             | module
<Name>               | module name
<Description1>       | description
<MultipleInstances>  | list if true, container if false
<Mandatory>          | mandatory
<Item>               | leaf if <MultipleInstances> is true, leaf-list if false
 <Name>              | leaf name
 <Operations>        | config
 <MultipleInstances> | See <Item>
 <Mandatory>         | mandatory
 <Type>              | type
 <RangeEnumeration>  | range or enum
 <Units>             | units
 <Description>       | description

Regards,
Michel

-----Original Message-----
From: Juergen Schoenwaelder [mailto:j.schoenwaelder@jacobs-university.de] 
Sent: April-21-16 1:48 PM
To: Michel Veillette <Michel.Veillette@trilliantinc.com>
Cc: 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 05:34:50PM +0000, Michel Veillette wrote:
> 
> First, LWM2M have its own modeling language encoded in xml.
> A file like "OMA-SUP-XML_LWM2M_Security-V1_0-20131210-C" is not fundamentally different than something than can be named security.yang.
> A simple xml transform can probably do the conversion between the two without any lost.
> LWM2M just have a simpler (subset) modeling language.
>

These are pretty bold statements. Claiming something is simple and knowing something is simple are sometimes different things. Have you worked throught the details? Is there a decent public definition of the 'simpler (subset) modeling language'? And with public I mean public, not hidden behind all sorts of registration walls.

/js

-- 
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/>