Re: [netmod] yang-instance-file-format - do we need a special file extension ?

Balázs Lengyel <balazs.lengyel@ericsson.com> Fri, 30 November 2018 15:55 UTC

Return-Path: <balazs.lengyel@ericsson.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 66A8C1294D0 for <netmod@ietfa.amsl.com>; Fri, 30 Nov 2018 07:55:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.781
X-Spam-Level:
X-Spam-Status: No, score=-4.781 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-1.46, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FROM_EXCESS_BASE64=0.979, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.com header.b=EPpCRsjE; dkim=pass (1024-bit key) header.d=ericsson.com header.b=jMSS0EUd
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 B5RpjqMOr2yF for <netmod@ietfa.amsl.com>; Fri, 30 Nov 2018 07:55:01 -0800 (PST)
Received: from sessmg22.ericsson.net (sessmg22.ericsson.net [193.180.251.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 237591277BB for <netmod@ietf.org>; Fri, 30 Nov 2018 07:55:00 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; d=ericsson.com; s=mailgw201801; c=relaxed/simple; q=dns/txt; i=@ericsson.com; t=1543593299; x=1546185299; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=KxmtzFoW9QbF4HBnCDSJhnSdVEVXmNSs8ilAsWGhpF0=; b=EPpCRsjElIUIqGiGmZ4Gjf50XhLGRE2S+RJz1KrCIa3f3GNpyFCSJnCYhh7HkVEh Xs763mhLWa3vyibJy+Nj0sY4CvSb3yCRd/jzciy85pZkWmGeArAM3TKL871tVFjt 9Gqvfyrd79nU/o3CySIWpXVkbsNpgxMCxkOmCp6vYbk=;
X-AuditID: c1b4fb3a-45fff70000002747-ac-5c015d53facb
Received: from ESESSMB501.ericsson.se (Unknown_Domain [153.88.183.119]) by sessmg22.ericsson.net (Symantec Mail Security) with SMTP id A6.2D.10055.35D510C5; Fri, 30 Nov 2018 16:54:59 +0100 (CET)
Received: from ESESSMB505.ericsson.se (153.88.183.166) by ESESSMB501.ericsson.se (153.88.183.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Fri, 30 Nov 2018 16:54:58 +0100
Received: from EUR02-VE1-obe.outbound.protection.outlook.com (153.88.183.157) by ESESSMB505.ericsson.se (153.88.183.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3 via Frontend Transport; Fri, 30 Nov 2018 16:54:58 +0100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=z4QVMIS+WsjwICJ71YuFqL45xNq9OkRVSMSPKju2ojE=; b=jMSS0EUdrlbHcOXU8rWnWowcjIDam8n/gf2f351K26lN0zLnnfBAeKuJC/z2gnAv4qMpy6/mIQbP8Af8bxgVnaU/GoilAEFSC0W7Zl1c3sR4pBSFkmBPU7tMI0jIHEjfuQ9Vi/aDWZC/U4iVTZI4Xt1TTWaWCkbKKB4N96bhBmg=
Received: from DB7PR07MB4935.eurprd07.prod.outlook.com (20.177.192.212) by DB7PR07MB4732.eurprd07.prod.outlook.com (52.135.136.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1382.6; Fri, 30 Nov 2018 15:54:58 +0000
Received: from DB7PR07MB4935.eurprd07.prod.outlook.com ([fe80::c8ee:97bb:db28:7003]) by DB7PR07MB4935.eurprd07.prod.outlook.com ([fe80::c8ee:97bb:db28:7003%2]) with mapi id 15.20.1361.015; Fri, 30 Nov 2018 15:54:58 +0000
From: =?utf-8?B?QmFsw6F6cyBMZW5neWVs?= <balazs.lengyel@ericsson.com>
To: Joe Clarke <jclarke@cisco.com>, "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] yang-instance-file-format - do we need a special file extension ?
Thread-Index: AQHUiKsJHYhlKOcwMkaepessXCePfKVobl4AgAAKWwA=
Date: Fri, 30 Nov 2018 15:54:57 +0000
Message-ID: <ab055718-8c17-e35d-9338-960ef3018cb3@ericsson.com>
References: <154147032474.4217.10743411700898817061.idtracker@ietfa.amsl.com> <07b9bcea-72e3-9986-7d42-303c4797f13a@ericsson.com> <2a796f78-41b7-376c-8f51-215d14cc4e2c@cisco.com> <d871f90c-c13c-f938-b545-3afedcc6406c@ericsson.com> <1727baad-06a5-d3e8-dce5-48f211b45644@cisco.com> <20181128144808.s3cbepy6rw7sqoce@anna.jacobs.jacobs-university.de> <9a6f2fd2-9f25-aa99-4681-912d34eecc87@ericsson.com> <20181130151748.flgj7u2ifmxtp2ov@anna.jacobs.jacobs-university.de>
In-Reply-To: <20181130151748.flgj7u2ifmxtp2ov@anna.jacobs.jacobs-university.de>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
x-originating-ip: [89.135.192.225]
user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1
x-clientproxiedby: HE1PR07CA0004.eurprd07.prod.outlook.com (2603:10a6:7:67::14) To DB7PR07MB4935.eurprd07.prod.outlook.com (2603:10a6:10:5b::20)
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; DB7PR07MB4732; 6:3bL6nGnAQKLC+UD5CH8NNamKPI+moHsS8MZJuqXdq4csExdF6GA5YtODObDHqWSAutid6SORH9XD0/kumOchAUAT6VQLkJo1gV7OGDWCoohtP0Xkx5086a2BywehCTZ19uAAZ3NWK1t9mMoHL7HVjMuhSWBbLEVKeLcq6Gnes1CXk/ojCkPFneT7aYef1yP4Z+deoabkf0oTfgcIqTvtajuNbti6O/Nv2xEhMU0UmmY6UAFH2MNnwSy58u82ZPFOctJKUZeNXrUkMtNCJBuKRnJTxpSgXCOhYSYpAOS2AD91L+3baIMXwhjZGX9S+NpGf/bJiDdR1teurq0kBGeG83oPZSX9k+i3z9EYaFh93NVCTah8z3Xvjz708BnSBigNNU+RVb+sEex3J2Gpqw81UYc0bdQBiyzjOJVG+5mDLrhKcTfxdmzCDroR0huuiXuWp7OBavJqqL80YuuJiwWhGg==; 5:E2Q7opm7JoBt0+XoBLT60jANn8ygaYZ7bM4coQlzvHXR7b5LV9aG+Hz7HXtbwuJ2Q3ga+JMzmr/QqFpgcMJEq0EzsoRSJJjI6SUhJl1s3LjTB5eB7GtdMNCmtAXBA5rApDP+A9g/ZVDhfB0bxRCke1ZpSJHq4CDvWE63FdBfB2k=; 7:a/VsTqkLUuO5DDn870td/KVfJnq3F4ErXMpK5OMlUiY4dpJzIki8Qoge5khZ5FLO1g+0KqZRn+k/5auC0SS1c/SSCZyz9bVuYpCBZ+jK7QQN61OFs5cY+BZtbGHSkLoABlVOaEPFGKpGtbOOiNPvzw==
x-ms-office365-filtering-correlation-id: a591d427-a186-4e53-93c2-08d656dc2c77
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(49563074)(7193020); SRVR:DB7PR07MB4732;
x-ms-traffictypediagnostic: DB7PR07MB4732:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=balazs.lengyel@ericsson.com;
x-microsoft-antispam-prvs: <DB7PR07MB47323AF013B03FACBE537F5FF0D30@DB7PR07MB4732.eurprd07.prod.outlook.com>
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(102415395)(6040522)(2401047)(5005006)(8121501046)(3231453)(999002)(944501466)(4983020)(52105112)(93006095)(93001095)(10201501046)(3002001)(148016)(149066)(150057)(6041310)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(201708071742011)(7699051)(76991095); SRVR:DB7PR07MB4732; BCL:0; PCL:0; RULEID:; SRVR:DB7PR07MB4732;
x-forefront-prvs: 087223B4DA
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(376002)(366004)(346002)(136003)(396003)(252514010)(189003)(199004)(2906002)(8676002)(81156014)(186003)(58126008)(81166006)(14454004)(8936002)(6486002)(26005)(65806001)(102836004)(386003)(6506007)(36756003)(476003)(64126003)(486006)(2616005)(71190400001)(71200400001)(446003)(11346002)(6436002)(229853002)(66066001)(65956001)(2501003)(256004)(68736007)(76176011)(97736004)(65826007)(53936002)(31696002)(25786009)(99936001)(5660300001)(305945005)(99286004)(478600001)(52116002)(6246003)(7736002)(106356001)(85202003)(316002)(85182001)(86362001)(6116002)(31686004)(3846002)(105586002)(93886005)(110136005)(6512007)(23603002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR07MB4732; H:DB7PR07MB4935.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts)
x-microsoft-antispam-message-info: bLhzRh6y4YsjXbZOUzKC3NTYb6xEMlQUqtIf8GKPfosYqS0OdTo4dyGbTVKryevqH391Z/FDE6zZVZm/igntP4exaPMAG044kSZJjph4R3e9D84qUutWoNxGu9fDfBThMyT1GGTcKgqmb9GqQL/VZPxqhfmxT4SYSes28IT3lf9LxG2L6RLZ1XG2c8DiCvVrPCJhXG/ipbUckBGyQaCAUYTzIcCOGxpikG2DghwOjSVymuyLG0dUdGFinisw43WVTQs/SL2hjxdfOsQjPN3CGp7RPLxTQog2UtbKioP+00JOOA1jnIeViNOV+pI8xAznPU4H7V3DPFUUYV0ukSyCfxnKXfSB++EBLT/6WYqlwyc=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="------------ms020905030103070303010301"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: a591d427-a186-4e53-93c2-08d656dc2c77
X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Nov 2018 15:54:57.8865 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR07MB4732
X-OriginatorOrg: ericsson.com
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrDKsWRmVeSWpSXmKPExsUyM2J7uW5wLGOMwZtF/Bb7rv5htJh/sZHV gcljyu+NrB5LlvxkCmCK4rJJSc3JLEst0rdL4Mp4+Gg/Y8Flm4p18+eyNTB2WXQxcnJICJhI XHqygLmLkYtDSOAIo8SXrjZWCOcbo8TGyd3sEM4SJomFG7aDlbEITGCWOL1qLhtEZjKTxP93 H5kgnEeMEtM/9zKBTGYTcJFof7cfzBYRcJdo2LuYDcQWFoiU+PJgMhtEPEpiw60brBC2lUR7 7x8gmwNoharE07XsIGFeAXuJM0/mQ910n1mi6ctDZpAEp4C/xN4LM8DmMAqISXw/tQZsF7OA uMStJ/OZIL4TkXh48TQbhC0q8fLxP1YIW0lixqtbYLaoQKzE9CU9jCALJASmMEp8nvIbqkFH 4uz1J4wQtqzEpfndUEXX2CQ2rj/NApHwlTiwdA5U4hajxJnDb9ghEloS7Z8+QZ0XJ7HnXgfU 1GyJK7MmQE2Vk1jV+5BlAqPBLCSXQ9idjBLzJpjOAgeBoMTJmU9YIOJmEvM2P2SGsLUlli18 zYyp11pixq+DbBC2osSU7ofsELapxOujHxkhbGOJZev+si1g5FrFKFqcWlycm25kpJdalJlc XJyfp5eXWrKJEZjODm75bbWD8eBzx0OMAhyMSjy8bMGMMUKsiWXFlbmHGFWA5jzasPoCoxRL Xn5eqpII77k2hhgh3pTEyqrUovz4otKc1OJDjNIcLErivE5pFlFCAumJJanZqakFqUUwWSYO TqkGxloNvegH3kFS/tsi1vGsbTe4L/j+6zruZx97+fj6316Qe9W8+MNE5Q3zxe0XsMefOLT+ /L61j41st3x2P7Fj69usyJVW4v+en7xyfn+umNHeSLe/kWHcqzv5dqspb3bQu/JGg/ej0NVb LsVXt5arfmvlT/hpxvdXyMwtcpOv5/SX7C83beC53qPEUpyRaKjFXFScCABB3YsYbwMAAA==
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/KwMiWoK2_IubAufglAgzvG0o2qk>
Subject: Re: [netmod] yang-instance-file-format - do we need a special file extension ?
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
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: Fri, 30 Nov 2018 15:55:03 -0000

OK, so lets go with option 3.
balazs

On 2018. 11. 30. 16:17, Juergen Schoenwaelder wrote:
> On Fri, Nov 30, 2018 at 12:48:48PM +0000, Balázs Lengyel wrote:
>>     Hello, Joe, Jurgen,
>>
>>     RFC6020 doesn't really register� file extensions, but rather media types.
>>     I don't feel we need a new mediatype for this as we really use json and
>>     xml. However I see it useful to document in the file extension that this
>>     is not just any plain old XML; it is yang instance data in XML format.�
>>     Alternatives:
>>
>>      1. Use the .yid file extension (my favorite)
>>      2. Use 2 separate file extensions: .yidxml, .yidjson
>>      3. just use .xml and .json
>>
> I would have used .json or .xml; the content of the file after all is
> self-describing and tools like 'file' might learn how to recognize the
> content. Extensions like .yidxml and .yidjson looks a bit horrible to
> me and so far I never had any real problems using .json and .xml for
> arbitrary json and xml files (and .json and .xml helps generic tools
> so calling it .yid means that I have to go and teach tools that .yid
> is either .json and .xml). Try loading .json and .xml in your
> favourite editor and then load a .yid file. Big difference for my
> editor. So from my perspective, do nothing (and then people and tools
> will likely use option 3).
>
> /js
>
-- 
Balazs Lengyel                       Ericsson Hungary Ltd.
Senior Specialist
Mobile: +36-70-330-7909              email: Balazs.Lengyel@ericsson.com