Re: [netmod] instance file format and etags/timestamps, xml attributes
Balázs Lengyel <balazs.lengyel@ericsson.com> Fri, 30 November 2018 12:28 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 8532D130DD1 for <netmod@ietfa.amsl.com>; Fri, 30 Nov 2018 04:28:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.057
X-Spam-Level:
X-Spam-Status: No, score=-4.057 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, HTML_MESSAGE=0.001, MIME_HTML_ONLY=0.723, 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=fghH1GnZ; dkim=pass (1024-bit key) header.d=ericsson.com header.b=Bl+GwcfD
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 qO7MxI_lUAeu for <netmod@ietfa.amsl.com>; Fri, 30 Nov 2018 04:28:21 -0800 (PST)
Received: from sessmg23.ericsson.net (sessmg23.ericsson.net [193.180.251.45]) (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 98D701294D7 for <netmod@ietf.org>; Fri, 30 Nov 2018 04:28:20 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; d=ericsson.com; s=mailgw201801; c=relaxed/simple; q=dns/txt; i=@ericsson.com; t=1543580898; x=1546172898; 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=RcvsJE1pBPc5cPrCJN9r2b8wzuuOBnr2SQz4YFneZ1g=; b=fghH1GnZO1KEgw0IBKFJsDiEmEAWczo+cxYdq0FbpvLFv7SjaqYLDPUWBjUfA1Q1 Ct11y6t60sGg51aypBjGhJp9gJ1Paz8+mwdVisUd4GOKQ+hAE90urbMh9duc48Z5 GH9hr/EBDUyr/E2zi8ElYHKkxmKbZTKBDBbFyxIrES8=;
X-AuditID: c1b4fb2d-3c7e09e000007af1-3d-5c012ce2df3b
Received: from ESESSMB501.ericsson.se (Unknown_Domain [153.88.183.119]) by sessmg23.ericsson.net (Symantec Mail Security) with SMTP id C7.92.31473.2EC210C5; Fri, 30 Nov 2018 13:28:18 +0100 (CET)
Received: from ESESSMB502.ericsson.se (153.88.183.163) 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 13:28:10 +0100
Received: from EUR02-HE1-obe.outbound.protection.outlook.com (153.88.183.157) by ESESSMB502.ericsson.se (153.88.183.163) 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 13:28:10 +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=WzEy1IomLbGRPSOSZwr/MK+km8QjCS3QrQf2zNDC40Y=; b=Bl+GwcfDaCLmvHnGHRAINBTCXHAJz+hXZoP82UW221bDn/aBSa+3l3gV7uTOaIpOsQ68hueiOMZiACL3jCrv4TeoGGJ9+jX/GKmx4L0cu08kjetz80FNzRbAKLFS8QDREc7b/v2FtnKaD3AK7jXrLXybVr0uXkeLAZy33u/l1HI=
Received: from DB7PR07MB4935.eurprd07.prod.outlook.com (20.177.192.212) by DB7PR07MB4539.eurprd07.prod.outlook.com (52.135.140.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1361.13; Fri, 30 Nov 2018 12:28:10 +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 12:28:10 +0000
From: Balázs Lengyel <balazs.lengyel@ericsson.com>
To: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] instance file format and etags/timestamps, xml attributes
Thread-Index: AQHUiKgnZbr44aNptkqAXrtpRTs80w==
Date: Fri, 30 Nov 2018 12:28:09 +0000
Message-ID: <6c329ed9-efdd-19cb-a346-f90fa1e3cfed@ericsson.com>
References: <20181128100116.c6awxlwkxnm42gfb@anna.jacobs.jacobs-university.de>
In-Reply-To: <20181128100116.c6awxlwkxnm42gfb@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: HE1PR0102CA0068.eurprd01.prod.exchangelabs.com (2603:10a6:7:7d::45) To DB7PR07MB4935.eurprd07.prod.outlook.com (2603:10a6:10:5b::20)
authentication-results: spf=none (sender IP is ) smtp.mailfrom=balazs.lengyel@ericsson.com;
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; DB7PR07MB4539; 6:rTvEzPsem1kUodUG/Lgp5gJtG/62XpL4Wkji5NYAc79hZP1UOsp1fMa4CRhykDT9Ygppe6vKzrLq7xktTymTBQ+0yEbiMQrLHR3DGNRggU99RnAQ7t/YtR2XpbO7CMZjIPJjudJBsA+E7NbBGZNzou4m4Eovnx/5undVHYJyuWCnMvgeZhLJtc1gxS6FEbuJyYBh1qdkrkPsdPIDI3j86P7M86mDqEQV8lg5CW6+5uGBinO9Xf5dr4zwXjUm37L0yC2uhVrKT9xr69PIo6M31qYbluME/AAatTkNWHEzWMRmBSq+LQwlqW9jfQOn3bC4kWh1Od/TGxIVIlzr7930P6s5Pr9HQV8E878+cgw/x9ZhYM3BcZrft69IB4xa9Yxs4lGOSLIYD4+1W3sxrYjGeV5bvbE/mB11OoqY3H7iEJ93KmdXbEdkvDMdUIy24O3GqDmBJLgHEsmyQ2ET1OqZ3A==; 5:NAze8Mju8/9uQuxnjDMv0pij9QM2ZON8uELf+6mWzjeGje55EEWV/WYnxRbvM6W/7W6UwnUlyLyIfP6HZx8tOfVTD02gJFHgnTjMhjPJPPxCdD8muF4NrqGo01B0OgdlNKrbnubGBDqRfaGnrHVLnyd3qGglr1fvYAS6WVzp31Q=; 7:Ex3oVEJXbCfBHBGwvlbyL4SqrZ0Vm/ZJuP8t8MKG7Qi2lnXk1Z9dBlrBbpQ1c7un5j5RcAZJl2v/6Vs2khbkOI6gV+O6taIrvlRfruKpvTHJ4B18XuWU6lnNgxqyP0Zw2RuwUnHdRHThXS2c5HBqYA==
x-ms-office365-filtering-correlation-id: 73938044-635e-4499-cd56-08d656bf48b0
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(49563074)(7193020); SRVR:DB7PR07MB4539;
x-ms-traffictypediagnostic: DB7PR07MB4539:
x-microsoft-antispam-prvs: <DB7PR07MB4539B53A165B943E7E60E7F8F0D30@DB7PR07MB4539.eurprd07.prod.outlook.com>
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(102415395)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231453)(999002)(944501410)(4983020)(4982022)(52105112)(3002001)(10201501046)(148016)(149066)(150057)(6041310)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(201708071742011)(7699051)(76991095); SRVR:DB7PR07MB4539; BCL:0; PCL:0; RULEID:; SRVR:DB7PR07MB4539;
x-forefront-prvs: 087223B4DA
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(366004)(39860400002)(136003)(346002)(376002)(51914003)(189003)(199004)(252514010)(11346002)(2616005)(446003)(52116002)(66066001)(65956001)(229853002)(54896002)(6916009)(5660300001)(2501003)(64126003)(256004)(14444005)(65806001)(8936002)(102836004)(6436002)(8676002)(386003)(81156014)(81166006)(1730700003)(65826007)(97736004)(186003)(85182001)(26005)(76176011)(6506007)(236005)(7736002)(5640700003)(6512007)(2906002)(478600001)(14454004)(85202003)(6486002)(3846002)(31686004)(106356001)(25786009)(6246003)(36756003)(86362001)(68736007)(105586002)(58126008)(53936002)(2351001)(99936001)(71190400001)(71200400001)(316002)(99286004)(486006)(476003)(31696002)(6116002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR07MB4539; 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: z3t/WUM2WcDVTvEDhFXaL21O1ShWL99kyvVHe/uT5Qymd4dqdRAcO0ryZQSD2rME2276OyO9VhRFx0yQtU5Rz38k9nYgttG5VctszalRJzDm7iWKud+BYvs8Nvsw390X09XjBq6wFsEMmhDM1pgjTIuUp0+3WUUKqKo97t7FfbRJ46apLdZc//pg/yfvlLoJQ9wKBlURNye9VaDCjoFdJw6RD895grRD3fqMnZEUZPZC/JVBm4YhXrk/U4LRCtLEa4awmIVHqvwJHih4JbxTAFfEiipLnetTL6/x5WVt6+f0WPlm7j5ZbPMJ5dAbHgsqHupQTVYyrvkJN6A5i72N8Mawb8RMZX5VnMs1tpZHCdc=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg="sha-256"; boundary="------------ms030201030308090206080602"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 73938044-635e-4499-cd56-08d656bf48b0
X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Nov 2018 12:28:09.8667 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR07MB4539
X-OriginatorOrg: ericsson.com
X-Brightmail-Tracker: H4sIAAAAAAAAA1WSWUwTURSGvZ3pUCrVawV7AnGhEYgIBQGFRKKSSGKioAIKYbXKCGVpcYZF eVETV5ZAlKUFYoFUIMWIEIwYV6oiiqCgQoIiiyUGakh8ALegdjo10bfv3P8//z335IoI6Uuh q0ilzqUZtTJLTolJXdytAt8pH5ToX/fCPUQ/eFq4A+0yGL4L9qF4cWgqnaXKpxm/bYfE6dqx BSrnferxTyWVglNoIrYIOYoAB4Gl3kQUIbFIih8jqJgZF/LFAoKnPRZ7YRDAHf0EyRUkLidg /Op9klcqBTA8O2S3TSFobOwluWQK74Tzcw8EHDtjL9DdbqM4Xon3Q1lLKypCIut5FOjmlvIW BdQV/7ZZSOwB56o6hBxL8HYYq6wlOLsUR8K9MyHcsSPeCwMPB2zpCK+Cr8+v2ZjAMhg16wX8 25xhcrCP4tkFZj7+EvIsB+3sqI1dcBJUG0oQNz7gWgTmqWYhH5oMdz9csDf7QP+IGfG8Gob0 xfaGYQqaqvvtQgSced1l51EEn9vDefaG8ZvD9pszoc3Y6cDzGjCWTpLlyL/mn8FrrLkEvojg yvQ8VWNbwAp4pjOTNdYFENgTms7K//dzvBGaGiwEz1tB+6Ob4tkdKoonHXjeDJYnXxDPgdB0 fZGqR2IjcmFpls1OCwhU0IzqCMtq1Ao1nduBrF+ru/OnbxdqtYSZEBYhuZPEr3lJolSozGdP ZJvQemvO1I3WV8iVVGvUtNxZMnDOKktSlScKaUaTwuRl0awJuYlIuUyiMN6Nl+I0ZS6dSdM5 NPNXFYgcXU+hLcHfT/oXfGspVETEvGXaDGNjGbqk8B6/de2y+ZH84GWxqmNBfRUTas+KDrcN Rq+qA95KKubD5Z5YrVOG5uilKH1ntKkxY1T8aG16Xm+aiwriPZiEa74JVe+UZZ4NsqGwxYUV 00nLzXEpkcTBoIg3e+Kjg2Z2q5NLA3pD3Q/P58hJNl25yZtgWOUfi39GAWIDAAA=
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/En2H1tSWwG3VMAy8Yx-zXCGtUxM>
Subject: Re: [netmod] instance file format and etags/timestamps, xml attributes
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 12:28:24 -0000
Hello Jurgen,
Thanks for the comments. See answers below.
regards Balazs
BALAZS: OK, I will correct it. Yes, it is the payload that I want to include in the instance data.draft-ietf-netmod-yang-instance-file-format-00.txt says: The JSON format SHALL follow the format of the reply returmed for a RESTCONF GET request directed at the datastore resource: {+restconf}/data. ETags and Timestamps SHOULD NOT be included, but if present SHOULD be ignored. I assume that you mean the JSON content in the message-body of the HTTP Response message for GET message. My understanding is that ETags and Timestamps (what are these precisely?) are carried in the HTTP header. So how could the ETag or 'Timestamps' be in the JSON data? We should not mess up the HTTP difference between header data and payload data.
I thought that lower level etags/timestamps are returned inside the get-response payload. On re-reading RFC8040 I see my mistake.
I also do not fully understand the text concerning the XML format. The XML format SHALL follow the format returned for a NETCONF GET operation. The <data> anydata (which is not part of the real data itself) SHALL contain all data that would be inside the <data> wrapper element of a reply to the <get> operation. XML attributes SHOULD NOT be present, however if a SW receiving a YANG Based Instance data file encounters XML attributes unknown to it, it MUST ignore them, allowing them to be used later for other purposes. It is unclear what exactly is the instance data - the entire reponse? Everything inside <data>? Everything inside and including <data>? I assume the second sentence is trying to say the later but I do not find it very clear not does it seem to be right. The examples show to content of the NETCONF <rpc-reply><data/></rpc-reply> inside a <data> container that belongs to the instance data format (two times <data> but in different namespaces).
BALAZS: I will try to reword it to clarify the issue. How about:
An instance data set is made up of header
part and content-data. The content-data is all data inside the
anydata data node.
The header part is defined by the
-ietf-instance-data module while the content-data is defined by
the target YANG modules. The content-data SHALL contain all
data that would be inside the <data> wrapper element of a
reply to the <get> operation .
I hope this conveys that content data
excludes the <data> wrapper element from the get-reply.
It is also unclear to me why XML attributes are to be removed. Why is that? If I snapshot <operational>, why should I remove important information such origin annotations? And removing attributes is actually plain wrong if you consider that attributes carry XML namespaces.
BALAZS: You are right, although some
attributes might be absent in some use cases. E.g. namespace as
you pointed out is always needed. However e.g. origin may be
present if the instance data is a snapshot of the operational
datastore, but it may be absent if the instance data is used to
document readOnly server capabilities.
So I propose to change the text to:
Some XML attributes (e.g. metadata like origin) MAY be absent. SW handling YANG Instance data MUST ignore XML attributes unknown to it, allowing them to be used later for other purposes.
/js PS: I am also concerned about the revision being not fine grained enough to be useful. I would love to have a much more precise timestamp telling me when the instance data was recorded. I would probably replace 'revision' with simply a 'timestamp' or add next to a 'revision' a more fine grained 'timestamp'.
BALAZS: I agree that in some use cases a
timestamp would be useful e.g. diagnostic data from a real live
YANG server.
However in other use cases like documenting factory default,
defining default configuration to be preloaded or documenting
server capabilities I see no need for the timestamp. It is not
interesting exactly at which hour/minute/second the server
capabilities were documented.
So while I would not like to add the timestamp in the draft, the
draft documents, that additional metadata like a timestamp may
be added to the instance data set.
-- Balazs Lengyel Ericsson Hungary Ltd. Senior Specialist Mobile: +36-70-330-7909 email: Balazs.Lengyel@ericsson.com
- [netmod] instance file format and etags/timestamp… Juergen Schoenwaelder
- Re: [netmod] instance file format and etags/times… Juergen Schoenwaelder
- Re: [netmod] instance file format and etags/times… Balázs Lengyel
- [netmod] instance file format timestamp Balázs Lengyel