[netmod] Question about tooling for YANG Instance Data

Scott Mansfield <scott.mansfield@ericsson.com> Fri, 03 June 2022 19:35 UTC

Return-Path: <scott.mansfield@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 BD058C14F745 for <netmod@ietfa.amsl.com>; Fri, 3 Jun 2022 12:35:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.851
X-Spam-Level:
X-Spam-Status: No, score=-7.851 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.745, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=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 ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id H1myKrsKSWXB for <netmod@ietfa.amsl.com>; Fri, 3 Jun 2022 12:35:39 -0700 (PDT)
Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2061d.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e8c::61d]) (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 1519AC14F719 for <netmod@ietf.org>; Fri, 3 Jun 2022 12:35:38 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kbf6gI/yZWIsoxfKs6dCRsOInbd4iOYB89o/Xfs3cibb2AWVYJtLXAMJwjFYdXnLLXX52Ii0d9eiCOn9oGBnOos12q/eUN3LEDtLRocX3mMjcwqMGJaIH5+7Itr7KeAe/HZLgepsVt7K9iIwQio4w1OrVCLwUwiBHVsGNEYAiFMBAuV4YY0LCQkdH/Tv7lkmN0EHfA0M3yO4ivyiD3XZJNmMDbKOOlj9IjynPlMtmg2xG13p168Dwh6j0fQGEaAgz8KNguT2dx6iXIZhCtI1wL0csBOcO2xcgo1f9QkmPEITMfEM3UQq3ESCk2DGgu9I2LweO6p5FeQE/BUBz9qokg==
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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=551wjK6g4zZKXZo1exWTePE5Ezhomr+rxaiFDQ2Xmcs=; b=N9XZYx3ZMyAxC3t2xp8FvZp0+reAFNoRBCOLMzeo2uSVcreewWsNoHqhQ1qgVaOm8p1iCLWOmt7ok1oNDzH+iKKdJkytSThUxsGpUPmfzs7tD/5tM9TP3M8nsgbY7i7hYz7HkSSLy7oQEFuDfGrnamj06MGyAd/ew37qaOH9ZQg6FbIqqrovAU0avnkYePs5rlk8Nr/Qs3KHdGCtqcBqkouWfRR+YEqnhuYc/Bqa3FXoCElHso+6VKN7R6Y90nTXq5Z0hVzECPFNx8wBtwl+uo97FcGX0aRmq0da+eJP6iwI/RuxzT0Vrwx32m8QcidJJLrQY3SOaCBbubQF5HU8CA==
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=551wjK6g4zZKXZo1exWTePE5Ezhomr+rxaiFDQ2Xmcs=; b=RcSzVaa8syaqw45Y7pGrMPJzT3tyj43AvsqxH5tphMt32BOlT+rbeIXTcQCkSpl3y9B3lDgz9gaXuCEAdfmL7D2JfKfKYwUNdB1Ltxz5KhLt4YSuFY5vfMrbyDEqJnFdtN0v047pE339Ny6bdKevF+wSrmYaLzpui8MQTSKRFO0=
Received: from BL0PR1501MB4130.namprd15.prod.outlook.com (2603:10b6:208:86::17) by BN6PR15MB1843.namprd15.prod.outlook.com (2603:10b6:405:53::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.15; Fri, 3 Jun 2022 19:35:35 +0000
Received: from BL0PR1501MB4130.namprd15.prod.outlook.com ([fe80::e4d8:cf03:817f:207d]) by BL0PR1501MB4130.namprd15.prod.outlook.com ([fe80::e4d8:cf03:817f:207d%7]) with mapi id 15.20.5314.015; Fri, 3 Jun 2022 19:35:35 +0000
From: Scott Mansfield <scott.mansfield@ericsson.com>
To: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: Question about tooling for YANG Instance Data
Thread-Index: AQHYd36ly1RAdbA1y02owRTPu6VrQw==
Date: Fri, 3 Jun 2022 19:35:35 +0000
Message-ID: <BL0PR1501MB41302D7A28A36A656DF595158BA19@BL0PR1501MB4130.namprd15.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
suggested_attachment_session_id: c8587c35-6396-a34c-3d9b-767d97c1e6e1
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ericsson.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 72679397-b37f-4fbf-7b22-08da45983b1f
x-ms-traffictypediagnostic: BN6PR15MB1843:EE_
x-microsoft-antispam-prvs: <BN6PR15MB1843A885FE78DE1501D47D328BA19@BN6PR15MB1843.namprd15.prod.outlook.com>
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: qS85uvULwSc9sblgcrnYAUrMtlL2hNUsWBvOMpA2+8tR42HOGpkaMGcYZ2BA1QzrtJpc52EKql2ztBOYk86NmvW4KhFwAofZ4jHGPss+dRWUU+nOIygiMqGEhfiR3zpGyiY8Tx0cDphTv5mAgsS0G5ngF1h1FnsRNjz2OKhAjikc9PCT6PwX1mA9fVQrT8o9kRxkQnRQ55OxQRCIHkQLzBsOo5W8OykKpmb12ppdPPhNsWakkhRZo+J7SHvJRIM3d9c7q9BO4UWod3VdYvv9lb2ZXoaqa+2VpdWzL5vDu6SkXskLtdmuf+4akI1y78HXvI8s07HgTxwA5FAGhskecQXTQhzmPKPclA8kFlmBZ//QwHAUmf2u+poaQQhiuZ6OEJ0YBEvwO3IXCILOoJWUBsNij7+k2f7tHRCKrL6e0QXQ/nKtal7i3eArvdL+vFhD93lJfgyqsTxBVCiDqIoaB7tl30RARpgje33BcQsfY25p/vGgyq8cYl2DTj/F8/hy0JorHlvY79ghw8TAnTaqyo69e9ld5YkzBCVEehadNh1Cw3+TnXpglVu298urbK6mUOFWXqosBq7j1ZbHb178WUJ/BUY1nKjxmsxwemFhC0fxuvOaHGoVMOOdhRHVLs+JlwHDQKfFgsDUZIf6QM1q2HaPVA9boMnPU+u6Yhic/N4fuXXHLMswHCwpDB9qEWQQEwdT/lpaL2ZHjmdYApiQknqjrM+cRLBb3NlLIDn+Vp64Ny1cicFa/C2dNl2lXGbX9QIe3/pTuaZTEwWbxYnNLNtMDPazHHA/+0K5IIolfgLY1SkGJW8WhiLovrvJbW+x6SqJlj5Z7jJlfvsxuSFHHg==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BL0PR1501MB4130.namprd15.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(966005)(8936002)(316002)(6916009)(186003)(71200400001)(508600001)(2906002)(19627405001)(52536014)(122000001)(44832011)(55016003)(5660300002)(76116006)(8676002)(66476007)(86362001)(66946007)(66446008)(66556008)(38070700005)(64756008)(82960400001)(166002)(33656002)(83380400001)(7696005)(6506007)(38100700002)(26005)(9686003)(66574015); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?QEt32fAC/luJWQn50307p/5DEAvyABw7+ihRY6Ae1aASmO0hPtyx7bk1D/?= =?iso-8859-1?Q?hW3iqQaUNG2udXpzQyTqEvRCofrtLKUK1XTGR4ySoCQia9/MLAuIju7rq0?= =?iso-8859-1?Q?ZBqu6ajpeZEIvhk3pVbtU+VVnklM3LJRBcrELLMPXZK3vYU9pGB3bqZRI5?= =?iso-8859-1?Q?JTaqCe3TqcbPj9ODt8q20h5oqWRBwQ/QNf2+ywd92DCO5pmRpJQaQ8PG4r?= =?iso-8859-1?Q?ETug8QlwTOUYt6B//8Kt4Xl1Hc8hviY0IkxlGRJ/Bxx5jvq4hvCQ2kTL7B?= =?iso-8859-1?Q?Y1YX+uocVC6zp6G+ZHLDPg146Cu8Ca5eOsuGzEDiRqb5Ga4N0u6pbrXbZD?= =?iso-8859-1?Q?HqJw9nBlizIxo+8PQlwKxPbB68Q3ZYvYJCK2edA3xS56jhLg28C7d6UFRX?= =?iso-8859-1?Q?KQMQntVItytdQ39FYlL76UuDBo78C6wK/BK2ZboJtIapxEUirMfvwGn554?= =?iso-8859-1?Q?cDhvGPl3FG8dMbcF3Pv+1vHHrHaLTB5pGeuIHut7lxtFpu3WJ9YkBrOqTH?= =?iso-8859-1?Q?mGv2npwsZ1K31sAWLHzfF5sK5NzLAlog+5Q490Jygrklgeu4UCbmm/+LNi?= =?iso-8859-1?Q?r3nXtiU2VboYGZRkNOxKxcGj4tI5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D1?= =?iso-8859-1?Q?hh257iqd2Bef9hxF9+4l25QjI5Y5XAUdjfQkSAYaQOera+KYzUZjpZug8n?= =?iso-8859-1?Q?zW5zg5lnxWl463d8+Y0YD4Qjrv+PI+boPHssSQgfL3ymmEauMrC96afFiU?= =?iso-8859-1?Q?bPAEYOIORg1jHaN5dPuHtHBlqqBPEPm2fSf5elgpqKKttxv/kDqY6k1dqB?= =?iso-8859-1?Q?0lKFV0q4ClXz3jM7Lh1emHErAMw1ulo89EirH6A2JZvUI7dF2w5RFoTWhO?= =?iso-8859-1?Q?NT8ZgBUhdokrLrZ9EGcWVXYooKBK/Rk1aQzB/RMfqnlXsnY3gp7nD36Wao?= =?iso-8859-1?Q?riJ3KhNPzvU364I3KiYq4Lc940koUSE=3D?=
Content-Type: multipart/alternative; boundary="_000_BL0PR1501MB41302D7A28A36A656DF595158BA19BL0PR1501MB4130_"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: BL0PR1501MB4130.namprd15.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 72679397-b37f-4fbf-7b22-08da45983b1f
X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jun 2022 19:35:35.5454 (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: VjM+5P08y4CxAzVr5qkKLMMFrhfqq89sIZuSbBiwTZqC/ce2lVujgLF5T+TAnr/8iSOyEeiF0EsWinm6C1OAf4ql91RnO0UBU6vx6RjjdWA=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR15MB1843
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/ugAaVHPRuaVv7Eq4j23QhBnsnd8>
Subject: [netmod] Question about tooling for YANG Instance Data
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.39
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, 03 Jun 2022 19:35:43 -0000

I am trying to use two of the examples found in RFC 9195 https://www.rfc-editor.org/rfc/rfc9195.html#name-preloading-default-configur and https://www.rfc-editor.org/rfc/rfc9195.html#name-storing-diagnostics-data to test out how to validate that instance data is formatted correctly.

Using yanglint, I load all the yang necessary and then load the data from either the xml file (read-only-acm-rules) or the json file (acme-router-netconf-diagnostics).  I get a similar error for both...

data -t data -f xml acme-router-netconf-diagnostics.json

libyang[0]: Node "instance-data-set" not found in the "ietf-yang-instance-data" module. (path: Line number 2.)

YANGLINT[E]: Failed to parse input data file "acme-router-netconf-diagnostics.json".


What is the best tooling to use to validate the instance data?  What tooling was used to validate the contents used in the examples?  I'm trying to determine if this a yanglint issue, user error, or I'm just using the wrong tool.

Here is a link to a github with my testing:  https://github.com/samans/testing-yang/tree/main/ieee-60802/60802
If interested t.in in the expect script for the acme-router-netconf-diagnostics.json example and x.in is the expect script for the read-only-acm-rules.xml example.

regards,
-scott.