[netmod] JSON encoding of events in draft-ietf-netconf-https-notif

Balázs Lengyel <balazs.lengyel@ericsson.com> Tue, 07 April 2020 08: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 9DA983A18F7 for <netmod@ietfa.amsl.com>; Tue, 7 Apr 2020 01:28:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.267
X-Spam-Level:
X-Spam-Status: No, score=-2.267 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.168, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, 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
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 LbKzqAcKgg9h for <netmod@ietfa.amsl.com>; Tue, 7 Apr 2020 01:28:03 -0700 (PDT)
Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-ve1eur02on0621.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe06::621]) (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 8C2533A1906 for <netmod@ietf.org>; Tue, 7 Apr 2020 01:27:42 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dipzYqSaVlLDrTskGW9KsQXgZuXiP8DWPlnNfYhLPd1/9kPXj4S5MM8fJ6p4jE3v16fUNBJ7FxG36aIkbmCAcAvkrAjXLC229NhjvqnzJOt/wj773a/o5UVzkEov6ENtddSwHr+8U9htc+1J2oqHAeWeOGqNOXq6SVlIw063VvcZWXI8bTdiIXgJyPrp2EBl7RFaJVAOIGZ+6EeoYlaQel0f4r7wZiX+pZWhN+YZvhmtBXlc3Z5QYzfS3F+tdsRYvyaCaWXIKQ0O6MxdYhsyGm36X2blxkGuud27Z3MxVKVw2TTE8yCmCcHUcHez5xQQKW+Cfw3VgKxbJNEdW7VxFw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8622bZQXpvmlkAnqpZgvLhcyJHpOyvSe1nR3wdu4Dds=; b=OBnUH+GrXXFlf5fC9G1h7Mvps/kef4OE4VoiAWB6i4DW8vVntwvW7RVwuMK0TGxLQpHTEYfO5rzuW0hqPs0w9Sct2p9JQEhK32Si9MmdRFALdUFcUEOBuQpoIxtRsUIM34fbJpmDvaj1GHuQOfT17IkX4kQfilS1ICMJhINUYjsUa9DRBOug5Vz33ltdrHClQKS5xBIqqqmW+Wkj+Ai6zktPxcg01F9L7z96d34uFuyLkxChe5FaQJmFGks6lLdX/TpGohytNXfR0PLrkAFJaEy6TPtv+R4c7kmbLW6jbsKXaO8XKeMp95170JA0lGrcrbh2TojNc6/gVWlhpaqmUg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ericsson.com; dmarc=pass action=none header.from=ericsson.com; dkim=pass header.d=ericsson.com; arc=none
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=8622bZQXpvmlkAnqpZgvLhcyJHpOyvSe1nR3wdu4Dds=; b=ANuir7DshvfZXTNCSGHKpeDrnoyna5aQWzgfi2PjIraP2urM0P9JOgV1FGHOfGFzlB8M+0pigms73Sv6+vuYECOshvPVc459zguZ9KZqU/kG5/zU8jz4FEahIds/6rQTOvgfyLC4AT4M2g+HwuPZ6Z72Y6Zg+9ib6juyhJUIH2A=
Received: from DB7PR07MB4011.eurprd07.prod.outlook.com (52.134.97.155) by DB7PR07MB4650.eurprd07.prod.outlook.com (52.135.138.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.11; Tue, 7 Apr 2020 08:27:39 +0000
Received: from DB7PR07MB4011.eurprd07.prod.outlook.com ([fe80::a07e:3b6:fa05:3b37]) by DB7PR07MB4011.eurprd07.prod.outlook.com ([fe80::a07e:3b6:fa05:3b37%4]) with mapi id 15.20.2900.012; Tue, 7 Apr 2020 08:27:39 +0000
From: =?iso-8859-1?Q?Bal=E1zs_Lengyel?= <balazs.lengyel@ericsson.com>
To: "'netmod@ietf.org'" <netmod@ietf.org>
CC: Oskar Malm <oskar.malm@ericsson.com>
Thread-Topic: JSON encoding of events in draft-ietf-netconf-https-notif
Thread-Index: AdYMtDf1Bb3ZoMp5QnaOGJDswndpSg==
Date: Tue, 7 Apr 2020 08:27:39 +0000
Message-ID: <DB7PR07MB40113F464CD53B14FA74DC6DF0C30@DB7PR07MB4011.eurprd07.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=balazs.lengyel@ericsson.com;
x-originating-ip: [80.98.254.17]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 88d8af8d-f51a-4222-cbf4-08d7dacd88e8
x-ms-traffictypediagnostic: DB7PR07MB4650:
x-ms-exchange-transport-forked: True
x-microsoft-antispam-prvs: <DB7PR07MB46509B732440E1200090CC9AF0C30@DB7PR07MB4650.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:8882;
x-forefront-prvs: 036614DD9C
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB7PR07MB4011.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(4636009)(376002)(396003)(366004)(136003)(346002)(39860400002)(81156014)(52536014)(66616009)(4326008)(99936003)(66556008)(66446008)(6916009)(66476007)(107886003)(55016002)(71200400001)(86362001)(6506007)(5660300002)(33656002)(7696005)(8936002)(81166006)(8676002)(76116006)(478600001)(316002)(2906002)(186003)(64756008)(9686003)(66946007)(26005)(491001); DIR:OUT; SFP:1101;
received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: esWXhbS8HC3/bCDsNMoMBk0A3g2dPmI7boUtLUl945gOaWVnrIDn3J8AC1u2j3dHo14LvfOQC9x93hRUeJfpKq+GQNHdqu8Jdj6OJkvl6h9iTQVk79YJggy6OCdwj7PM4yjHDJiPDXZiAMfct9oIZTWTbvTPwCsNt7XrrgRIpsyh9zRPFf8Bc+X1C91N1tOOtN8dC2p9f9H9tax9g9dcfdYBfXcu1hdhozAfYIc1/wA8BXXlvGXfeaK7mZr8AMvdhLAWn33Vs0lIwR13RNXNqMl8NPcP44M6zwCBmMR5ACla42pSGW9/9es0Cz9pc+T4e6yonmqgWII0z8Lcq3w2ae9x5mGSwh7KPTWqTGNIA178pTVccT6NqjfHvKpp2L5zJNPVou3savtAGTjiFTGlUB5iAMMlIDXOsvkdOvYRWLT2LRy9F0YHbe6rkHyOgiTZaRzgRNTf6W8vhNAA0bxim0ni9hCzJFqovtR9q6wQnsY1T8P0hTk2z8q7mzDWE4TL3mjdqS3DyEJh+cofEOaEQOmvY5HSrDJYbnGvXC7KKe6uBW1vRLfMT+XJeV/6Cfr+
x-ms-exchange-antispam-messagedata: Tr8wYmxTKf9WMXDsngTeR4KRzkR4Umn4tcRyhxnUgbhmlNAQSEWKizypdCvxgSfK8J8O8XZRWa3sLRNscFY2+xOItaQxHh1c09A17oLTWWCcLqK3hNMZFGFeIs+d1YYb1ebcFb8rpAFgpA6hn55hdg==
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="----=_NextPart_000_0238_01D60CC7.28F469A0"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 88d8af8d-f51a-4222-cbf4-08d7dacd88e8
X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Apr 2020 08:27:39.5383 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 2gRQbxvgtLqWdhODB6PnwRQQn89qahZ7p0isWJ4uC049ngJknB+VxRNFExNOFXVP9J5p7yZCeqitA+fOrtQ0VKW18UkpcvcXRKy+U1dHDRY=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR07MB4650
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/-rwtZgJuorNC58zzVs87Aw3CTMM>
Subject: [netmod] JSON encoding of events in draft-ietf-netconf-https-notif
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: Tue, 07 Apr 2020 08:28:05 -0000

Hello Mahesh, Kent,

I was wondering how the JSON encoding of event would look like in your
draft. (I intend to propose something similar to 3GPP so I am most
interested.)

The part below push-update or push-change-update is well defined in YANG
however the part outside is not. In Restconf
(https://trac.tools.ietf.org/html/rfc8040#section-6.4) I see the following
example:

 

{

"ietf-restconf:notification" : {

  "eventTime" : "2013-12-21T00:01:00Z",

  "example-mod:event" : {

    "event-class" : "fault",

    "reporting-entity" : { "card" : "Ethernet0" },

    "severity" : "major"

  } } }

 

However how would the first 2 lines look here? IMHO keeping restconf as a
module name seems wrong. 

So maybe we should define it here in this draft :

{

 "json-yang-notification:notification" : {

  "eventTime" : "2013-12-21T00:01:00Z",

  "push-change-update" : {

    ...

  } } }

 

How to define this wrapper (the first 2 lines, I am unsure. As far as I know
it is not possible to describe this in YANG.  Maybe just some text like:

The YANG encoding of the notification SHALL be wrapped in a JSON object as
illustrated below

 

"json-yang-notification:notification" : {

  "eventTime" : "2013-12-21T00:01:00Z",

 

 

Also I would definitely need an example of a notification sent.

Regards Balazs

 

-- 

Balazs Lengyel                    Senior Specialist
Ericsson Hungary Ltd. 

Mobile: +36-70-330-7909              email: Balazs.Lengyel@ericsson.com