Re: [netconf] leafrefed data item in YANG Push

"Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com> Thu, 19 December 2019 17:54 UTC

Return-Path: <jason.sterne@nokia.com>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 93F77120993 for <netconf@ietfa.amsl.com>; Thu, 19 Dec 2019 09:54:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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=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 C79mEwjglH2J for <netconf@ietfa.amsl.com>; Thu, 19 Dec 2019 09:54:17 -0800 (PST)
Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40109.outbound.protection.outlook.com [40.107.4.109]) (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 C5DB3120992 for <netconf@ietf.org>; Thu, 19 Dec 2019 09:54:16 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=laUWTPaWYfsnS3mFGzcG+xK0kTSHYZ7XooWejuJCyR+O2DQvs3KcHX5EQ0SYVbLjYiHWNWYuH4UtD+0/44GhTjolORg6nUMPSwJ5L2P124PPJKLZKE2tmjTgdwZ8pU5eogFLN8Aa8OM5O/IgCMFgMrkHKj5Gn1Rd/6Tqjbowmega38jgHQhgPgCNRDZSBojBcRJuLsE6kR5w4iy1QWx6Uy+jow8LgJyO3Vpr0TvgjhoCPgJPsvmBks1ZH27TXxx73ctJ+mVElRSI5NlgnFHPIgaXPwhS/LGhYihnyGHj0Uxf89XMe6hol4DByKmkzTGYKal7vHE/pZXyLAz41EPuCg==
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=MrHhrya/2fEp6bHFuDMXqh3gzc1DP8/HBoE3oGUCvnU=; b=SQTys/I6mSfxmrDy5WuIkSECoiG/Tv+vNS7cRItKyZ/TtOI9FIrRdyzgov8q7MVHUrfmIgct3gQOKmNQVBYJHsa1sXNqwgyZk/Uf+3RO+xFAwX+3pLo/5aXyxNVXvN6EW9OZRhiM9igESwZhOnH0G05R9mhzjP28VjR5+ds7Z5SieTD0Z5y+yeckaauSquH0cR8XRinh8Nf32cPO//kkQ8XEOHQ5lUQz/Hhj22Hlab+7y3/3PFTL15YQx3LFhz3H3RnQLIJQEx3o07L52T9QcTxlXV8uOY+yI52q+XDUeIFPF3C2c4M8FRAXHQarxoECF1W4z89J1TDxor3nun/ICg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nokia.com; dmarc=pass action=none header.from=nokia.com; dkim=pass header.d=nokia.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MrHhrya/2fEp6bHFuDMXqh3gzc1DP8/HBoE3oGUCvnU=; b=ySSJdB38IVwCXLplzwh4sYTzbPY/zFMEZssQ9u9P5aNvdYu6Lw+p6B7h/HO+HzTeH+DJ3kdnpDRBk2PR8QPjE5rfTEQZqE/HUmCT/tPTe4xDBAP+VGMarl5G8isGPx1w1wU0Dnxmso17QjmX/xvwGSoRAljySXAwvCpDXherFdg=
Received: from VI1PR07MB3981.eurprd07.prod.outlook.com (52.134.29.24) by VI1PR07MB5775.eurprd07.prod.outlook.com (20.178.122.224) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2559.12; Thu, 19 Dec 2019 17:54:12 +0000
Received: from VI1PR07MB3981.eurprd07.prod.outlook.com ([fe80::f4ac:1bfd:a5a1:aadf]) by VI1PR07MB3981.eurprd07.prod.outlook.com ([fe80::f4ac:1bfd:a5a1:aadf%6]) with mapi id 15.20.2559.012; Thu, 19 Dec 2019 17:54:12 +0000
From: "Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com>
To: "Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com>, Qin Wu <bill.wu@huawei.com>, "netconf@ietf.org" <netconf@ietf.org>
Thread-Topic: leafrefed data item in YANG Push
Thread-Index: AdWxao/3v1bQh2UwS9WylLxsfb909wAf2aEgASrPd2A=
Date: Thu, 19 Dec 2019 17:54:12 +0000
Message-ID: <VI1PR07MB3981D8B05CCCA36A42A0E5C79B520@VI1PR07MB3981.eurprd07.prod.outlook.com>
References: <B8F9A780D330094D99AF023C5877DABAA94F7D0F@dggeml511-mbx.china.huawei.com> <VI1PR07MB3981154AEA5CFBE7DA6DCBD29B540@VI1PR07MB3981.eurprd07.prod.outlook.com>
In-Reply-To: <VI1PR07MB3981154AEA5CFBE7DA6DCBD29B540@VI1PR07MB3981.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=jason.sterne@nokia.com;
x-originating-ip: [135.245.20.24]
x-ms-publictraffictype: Email
x-ms-office365-filtering-ht: Tenant
x-ms-office365-filtering-correlation-id: 0a8eba1b-c2f0-4c3d-e456-08d784ac74eb
x-ms-traffictypediagnostic: VI1PR07MB5775:
x-ms-exchange-transport-forked: True
x-microsoft-antispam-prvs: <VI1PR07MB5775D8F71D18E74B179ECD919B520@VI1PR07MB5775.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-forefront-prvs: 0256C18696
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(346002)(396003)(136003)(366004)(39860400002)(376002)(189003)(199004)(2906002)(71200400001)(7696005)(8936002)(81166006)(8676002)(66946007)(6506007)(66446008)(64756008)(66556008)(66476007)(53546011)(76116006)(81156014)(86362001)(9686003)(55016002)(33656002)(52536014)(5660300002)(110136005)(186003)(26005)(316002)(478600001); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR07MB5775; H:VI1PR07MB3981.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-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: ywklEB/cShW6cV9LamRpS/eY/SpG79g2u7G92LBN8y4LeTKVJ7iOzooNZQyhfssHwbi7nCxlMu+MNxAtnrZWViJy/yWnz3nek7hoD6VXiKvxJ0Zi/RVi/zSp2hGpYMdhFvFqUKN4mBK2RiU0ulF/nQ4pdJ0EQv7bGg6Wduq6nHdJM53gWDl/vTOAAW4kuV16BHM2Y0P3KDFYANj13abmPNhPi+Z1GH8clbSfFbzybm2XD5RC9MrKHDYCH5iKG+E7edCFVdj+9vYLd+T65/wQutyYgNRfJAT0NIAWE/B3wpdhvnwj0tmdJItSeFjmfmkhV7fUgoo3NTA6IJvIUMTDpZG83X+mb+nfzItqYAlo0VIBS2NHyM874ERiCQil7fQXWmX+fotY81cV0G7gUBTek7H2X7U6wRDJwEH1MYn26HhrwSRV3oM3gRs4gZmUuPuc
Content-Type: multipart/alternative; boundary="_000_VI1PR07MB3981D8B05CCCA36A42A0E5C79B520VI1PR07MB3981eurp_"
MIME-Version: 1.0
X-OriginatorOrg: nokia.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 0a8eba1b-c2f0-4c3d-e456-08d784ac74eb
X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Dec 2019 17:54:12.6282 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: LuUDuht+bD8y/FKnt0rNxsXyg/2Wpi7p0gJQkPcbgNqXDt7cd2XSTpSsZbX5yFEVFwN1yfmCBIeooolU25GL2Q==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB5775
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/SsDv0jLiRxVfVmDziJyYpbKuLgU>
Subject: Re: [netconf] leafrefed data item in YANG Push
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETCONF WG list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Dec 2019 17:54:20 -0000

This thread has moved on but a minor correction to my reply below.  I meant to say "that should *not* be accepted" 😊

From: netconf <netconf-bounces@ietf.org> On Behalf Of Sterne, Jason (Nokia - CA/Ottawa)
Sent: Friday, December 13, 2019 2:20 PM
To: Qin Wu <bill.wu@huawei.com>; netconf@ietf.org
Subject: Re: [netconf] leafrefed data item in YANG Push

Hi Qin,

For subscriptions, I don't think it matters if 2 leafs are associated with each other via a leafref.  When you subscribe to each of those leafs, it is just like subscribing to any other 2 leafs (that aren't associated with eachother).

About the 'dangling reference': that should be accepted into the running datastore. It would fail validation. So it can only exist in the candidate.

Jason

From: netconf <netconf-bounces@ietf.org<mailto:netconf-bounces@ietf.org>> On Behalf Of Qin Wu
Sent: Thursday, December 12, 2019 11:09 PM
To: netconf@ietf.org<mailto:netconf@ietf.org>
Subject: [netconf] leafrefed data item in YANG Push

Hello:
Can I subscribe to specific data item that refer to data item in another YANG module with other data item in the same subscription?
Module bar {
import foo {prefix ex;}
     leaf cc{type int8;}
     leaf bb {
       type leafref {
         path "../ex:aa";
       }
     }
}

Module foo {
     leaf aa {
       type int8;
     }
}
In addition, If there is dangling reference, e.g., leaf bb refer to leaf aa which doesn’t exist, how this failure is handled by the server
and exposed to the client?

-Qin