[netmod] YANG 1.1 inline notifications

"Bogaert, Bart (Nokia - BE/Antwerp)" <bart.bogaert@nokia.com> Wed, 05 September 2018 11:21 UTC

Return-Path: <bart.bogaert@nokia.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 06ED8130DF7 for <netmod@ietfa.amsl.com>; Wed, 5 Sep 2018 04:21:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level:
X-Spam-Status: No, score=-1.91 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_PASS=-0.001, T_DKIMWL_WL_HIGH=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nokia.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 cs94z6Uu6GhO for <netmod@ietfa.amsl.com>; Wed, 5 Sep 2018 04:21:16 -0700 (PDT)
Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on0708.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0c::708]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 94FB1128CF3 for <netmod@ietf.org>; Wed, 5 Sep 2018 04:21:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fwN/cuZ9iohY3dSXKX0d/J4iPRMSZ/02GndPMayuTPA=; b=n4EMcsP+mPvQ3IQ8+PpdZXaVNtv/EQu+7nKMuONx3WSIn6DtKDSS7+zKH04ABDHvC+dbUzLUZz6Ip0qzrxaHaqioz5oa5MkcAeZIh5d/ldKwV1raPqcZaM24Vs8cIou1SgAx7pv7LpJulQea3sOYyEVe9I7+ym99heJTYioyAzY=
Received: from AM6PR07MB3942.eurprd07.prod.outlook.com (52.134.116.15) by AM6PR07MB4693.eurprd07.prod.outlook.com (20.177.38.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1122.9; Wed, 5 Sep 2018 11:21:12 +0000
Received: from AM6PR07MB3942.eurprd07.prod.outlook.com ([fe80::78ab:8ff8:a072:121]) by AM6PR07MB3942.eurprd07.prod.outlook.com ([fe80::78ab:8ff8:a072:121%2]) with mapi id 15.20.1122.009; Wed, 5 Sep 2018 11:21:12 +0000
From: "Bogaert, Bart (Nokia - BE/Antwerp)" <bart.bogaert@nokia.com>
To: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: YANG 1.1 inline notifications
Thread-Index: AdRFCjtWEK1T9ZjpTYiZ3KJdKjR6cw==
Date: Wed, 05 Sep 2018 11:21:12 +0000
Message-ID: <AM6PR07MB3942653D050C62F29675AF0B94020@AM6PR07MB3942.eurprd07.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=bart.bogaert@nokia.com;
x-originating-ip: [178.117.49.199]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; AM6PR07MB4693; 6:8h7BKWJGtzGmcV2fg/ZYbve7RFFnsmlfzXvQD5gwQ8Yuicu19AGJbHcZ2S/JYM0sNB6PjS48x+olRUYw1arr1ZwUCZCUv6FpmZji1wreKrmUUnSbN+zrgCoKAnCOt3FQuDD1p9K10bP2kHxDjt8FKnB2TrtxqFAgWZu7iS7Ix6voqSjbihvEgvdsIj7jdxMLDqdtx8bC3IlVqrYlLnTJH+pdzGy4wuN1aC6g7aWz1NOn3h4SIstsDYvFYEJMYdjdCKcbSSWQRMP4tIcnxQrrnv/f0DAB/pYJbhBHEHvoRxWdtWXbez4/2htlfFHHrC15g1RYHMa7mqluW1+6T3G+1iuPwxOOC9EqmdPGst8rT560M+h3Iuys2yXd34jaTkYCZpMMCZBoO3JJhPKvw4SE1A6ngVZyvCivnQ7fZYYZWroIehqtaYSHyxFXqkVNFBIgNEt6PBFTEGpu3IBgxQSvJw==; 5:/XJ2LAUTXRdW8B7zQ8G/Q9JJTtl5ZnWV/h5glqsM6QOe5PFPw8nXcpvIKTuPlnXrJ2BOFtvuMj5YAbZlvUd8xjT9LIzsvS+pncPK5HmQTsV4IV/5D+oBgoNtCS6+Bnobh6ZgZD6UxmybozoLZ5JtKagRoaY07dRQOSAMSYr+opA=; 7:2tp8MQLB1C0Y4sY2C7wr2b541cSoY8ruS7Z9OGBCjxD+kj3JKtXuDOxjQoUZ4IPHLxnwjxWNkXkOkZ5K6HcUTrbTLpLTIZZG2NR7WUyWYZzTDdNk5NE4qGqGGmswUJb56g293Z4rjDu+soe+cc3REyJyQ/7xCaflLceT3qYZBww96LFxlCM2+69i0oB/0pPfh2PidtDfZ0rlt2lg4eA3zLEUQn83265Jvcukx4BhorQ6sH26iNLMJuxoqlHoHluD
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-correlation-id: f2d958d1-0e96-498f-e173-08d61321b014
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7193020); SRVR:AM6PR07MB4693;
x-ms-traffictypediagnostic: AM6PR07MB4693:
x-microsoft-antispam-prvs: <AM6PR07MB4693F5C25EF6FC697052515E94020@AM6PR07MB4693.eurprd07.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(28532068793085)(131327999870524)(21748063052155);
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231311)(11241501184)(806099)(944501410)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(201708071742011)(7699016); SRVR:AM6PR07MB4693; BCL:0; PCL:0; RULEID:; SRVR:AM6PR07MB4693;
x-forefront-prvs: 078693968A
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(376002)(39860400002)(346002)(396003)(136003)(366004)(189003)(199004)(97736004)(14444005)(478600001)(26005)(6116002)(7110500001)(316002)(6916009)(3846002)(7696005)(5630700001)(790700001)(55016002)(476003)(6306002)(54896002)(2420400007)(86362001)(5660300001)(6506007)(68736007)(9686003)(53936002)(8676002)(186003)(7116003)(6436002)(5250100002)(10710500007)(15650500001)(2906002)(74316002)(2900100001)(486006)(99286004)(2501003)(106356001)(256004)(33656002)(25786009)(81156014)(8936002)(7736002)(66066001)(14454004)(105586002)(81166006)(102836004)(5640700003)(2351001)(1730700003); DIR:OUT; SFP:1102; SCL:1; SRVR:AM6PR07MB4693; H:AM6PR07MB3942.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: nokia.com does not designate permitted sender hosts)
x-microsoft-antispam-message-info: bSGg9TfrpGjE4nOfOyL6S3LtLpgjqbkf73ZPyhZ97ag9uJS6eP+cHah/73GpYV7cX2UV09TvxeseSSjDMFDBYzrq67YonW87P4b+rfObYdNpsZ65A/vYyIojeclUdsfODc5rG9XafGhIXJHVv1WuWwozmFkcewbj7kb+tTFuOeUGAFBQNfN5btQ3nKGYf3IGjB6GFsSEdilOwvwOpqg31Wjz8iLFMxgagvhD9B8M8tWz56kTu6Q6SHfIQJiRR3uq33BKcxGgXs0ofX2zsFcSvTyNR194jIxJpuWkW4pnjQkdBLmAJRkzDIboeG8lvF9APHIkBRWmj0zYJQlcHgHZVjNRzjbsBR+c5sxMqVorErbgyCkzSvESeMVCEpLmrBBFmRe05Suci6BDcirS6idnkw==
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_AM6PR07MB3942653D050C62F29675AF0B94020AM6PR07MB3942eurp_"
MIME-Version: 1.0
X-OriginatorOrg: nokia.com
X-MS-Exchange-CrossTenant-Network-Message-Id: f2d958d1-0e96-498f-e173-08d61321b014
X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Sep 2018 11:21:12.7700 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR07MB4693
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/8rjJ_hTuJ7tCqvQJyzzK62wIQ80>
Subject: [netmod] YANG 1.1 inline notifications
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: Wed, 05 Sep 2018 11:21:19 -0000

Hi,

I'm trying to seek some clarification.

According to RFC7950 section 7.16.2:
When a notification node is defined as a child to a data node, the
<notification> element defined in [RFC5277] contains a hierarchy of
nodes that identifies the node in the datastore.

According to RFC6241 section 1.1:
datastore: A conceptual place to store and access information. A
datastore might be implemented, for example, using files, a
database, flash memory locations, or combinations thereof

When combining these two, the "hierarchy of nodes that identifies the node in the datastore" actually refers to resources that do exist (at least that is how I understand this).

Now consider the following model.

container state-data {
  config false;
  list elements {
    key name;
    leaf name {
      type string;
    }
    leaf status {
      type enumeration {
        enum up;
        enum down;
      }
    }
    notification inline-notification {
      description
        "An in-line notification";

        leaf result {
          type string;
          mandatory true;
        }
    }
  }
}

Can a device send the notification 'inline-notification' if the list /state-data/elements is empty?
My feeling is that this should not be possible as there is no "hierarchy of nodes that identifies the node in the datastore", so against what would that notification be sent in such case?

Best regards, Bart