Re: [netconf] [netmod] Problems with lint validation

"Reshad Rahman (rrahman)" <rrahman@cisco.com> Tue, 13 August 2019 17:24 UTC

Return-Path: <rrahman@cisco.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 26A141200D6; Tue, 13 Aug 2019 10:24:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.501
X-Spam-Level:
X-Spam-Status: No, score=-14.501 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com header.b=mhl9qFYh; dkim=fail (1024-bit key) reason="fail (body has been altered)" header.d=cisco.onmicrosoft.com header.b=BZt1K6KS
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 nhIhu7C0Hkkx; Tue, 13 Aug 2019 10:24:10 -0700 (PDT)
Received: from alln-iport-4.cisco.com (alln-iport-4.cisco.com [173.37.142.91]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6086C1200B1; Tue, 13 Aug 2019 10:24:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=22028; q=dns/txt; s=iport; t=1565717050; x=1566926650; h=from:to:subject:date:message-id:mime-version; bh=CkcB1AZVGaeesqIC/jYThCzBx5/WzwmefkEG2UzzTa4=; b=mhl9qFYhPIXdAn8q2lBWn4wHqYhxJUmO8vqIpHZNxFPLVf6XP2JngCdD H9TeRkyG+SD0XdnYmA1yXGS/fhlvyxyQIXISl4NNfBTfFBBsjemD5E7sn pvEH2qUSW/0ObTIWcAtag/wHVr2Q39A2b8VH87SJ3dYSPLcyaCcGiZ51N Q=;
IronPort-PHdr: 9a23:/85hjBcinSyOUQiA0N7RhYOZlGMj4e+mNxMJ6pchl7NFe7ii+JKnJkHE+PFxlwGRD57D5adCjOzb++D7VGoM7IzJkUhKcYcEFnpnwd4TgxRmBceEDUPhK/u/dTYzHMFLUndu/mqwNg5eH8OtL1A=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0C5AAA08VJd/5tdJa1mHQEBBQEHBQGBUwgBCwGBFS9QA21VIAQLKoQeg0cDhFKGPUyBaiWHOotOhFqBLhSBEANUCQEBAQwBASMKAgEBg3pFAheCZCM0CQ4BBAEBBAEBBAEKbYUnDIVKAQMDEhEdAQE4EQEIEQMBAg4aAwIEMBQJCgQBEg4UgwABgWoDHQECDKIVAoE4iGBzgTKCegEBBYEyAQMDCwJAAYJ6GIINBwmBNAGEc4Z1F4FAP4E4DBOCFzU+gmECAgEBgSoBEgEPMBaCVTKCJowyCgmCTYUOgQANgSKGUo4tCQKCHYMwglNgjU8bgx2VII1VhhyBQ5AkAgQCBAUCDgEBBYFQOGdxcBVlAYJBCYI5g3KFFIU/coEpi2sNFweCJQEB
X-IronPort-AV: E=Sophos;i="5.64,382,1559520000"; d="scan'208,217";a="306256160"
Received: from rcdn-core-4.cisco.com ([173.37.93.155]) by alln-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 13 Aug 2019 17:24:09 +0000
Received: from XCH-ALN-016.cisco.com (xch-aln-016.cisco.com [173.36.7.26]) by rcdn-core-4.cisco.com (8.15.2/8.15.2) with ESMTPS id x7DHO8Uf010088 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Tue, 13 Aug 2019 17:24:09 GMT
Received: from xhs-rcd-001.cisco.com (173.37.227.246) by XCH-ALN-016.cisco.com (173.36.7.26) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 13 Aug 2019 12:24:08 -0500
Received: from xhs-rtp-002.cisco.com (64.101.210.229) by xhs-rcd-001.cisco.com (173.37.227.246) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 13 Aug 2019 12:24:08 -0500
Received: from NAM01-BY2-obe.outbound.protection.outlook.com (64.101.32.56) by xhs-rtp-002.cisco.com (64.101.210.229) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Tue, 13 Aug 2019 13:24:07 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GNCVJ4t2kZQf4yF7w0HYNCrMmlzPmpPU18w7Dw7lsYIOzLmt+PksKAkr8kwsYiPBadjNhDcmlDIMmaDpY5cHarvwDReZWttVd8B5MqrCuUaa7q/OIITuJXRFHn7+qGAsLlH0vYEqBzq69OFkEMGVuQpVFBw0jGqdj0f6/wkfOTg26xSIEF53HIWnuUYm9IwWCVzjdDpMO0Wp6Ws48S4jdTK/Bt0Ga9mphPCs0PN09gY4TX8jnXy/RzIvdfBpqtSlvL9qsTemOUJ6VdHL2Gs0NYftQOEXTwbOMEB11hYsTPdnVJQ3PcZf6BrcR0HlYtdnlkMZc+qvxEw49GZYP7QGyw==
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=j1NT2scPqbnJ5al9EUShaTi0wi2kFpgYl/FQDcS2OZU=; b=QstKkMAZGUFAFCW9Ec/PIqASw5kN5TxJgb3uDrgOHyb9qn/lrI4QGyE9XVqrnom5BG2nPERuSQr+8O4Y9b9/ZHtvTF+TkGx9iJdUkyKdIZRFo6lCMjdGgpTm7RnfCFhBS6jnglIv5n/UU5SPkL2SdNvovA4BwP7jvk5OxZU3nn+iZlwwVyBhSdHw4qclRIW4x9hktPaVJxeLwbQfv/4OfPuIu/8nc2s4moH3SRC7waHnhGzDK2SjRUt14YFpHwWGUig8DRI5AwVHYv7IQTg6/m0MvJO4612QeRHKPvs22R4wds5frShqUUpXwv2mt5ln8+tvdnHL5vLueMLwUp1Y6g==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector2-cisco-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=j1NT2scPqbnJ5al9EUShaTi0wi2kFpgYl/FQDcS2OZU=; b=BZt1K6KSsr+bCXYzwnkZsjzCVlNV13FTN5TMuPizpUTnLwzfYkVgZLL764mO+9qlzDDkjboRoB5Y1X72ZDl2XF7UA8yiM8dikBw0BXej92JG/Y8Bh+3wown6msdnQdnYcX1FgIfJRBDIogYUd7eyulD0pgnhbY4nTKET9ln35HE=
Received: from MN2PR11MB4157.namprd11.prod.outlook.com (20.179.150.223) by MN2PR11MB4301.namprd11.prod.outlook.com (52.135.36.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2157.23; Tue, 13 Aug 2019 17:24:06 +0000
Received: from MN2PR11MB4157.namprd11.prod.outlook.com ([fe80::80bb:d4b:bc47:7daf]) by MN2PR11MB4157.namprd11.prod.outlook.com ([fe80::80bb:d4b:bc47:7daf%3]) with mapi id 15.20.2157.022; Tue, 13 Aug 2019 17:24:06 +0000
From: "Reshad Rahman (rrahman)" <rrahman@cisco.com>
To: Balázs Lengyel <balazs.lengyel@ericsson.com>, "netconf@ietf.org" <netconf@ietf.org>, "'netmod@ietf.org'" <netmod@ietf.org>
Thread-Topic: [netmod] Problems with lint validation
Thread-Index: AQHVUfvoskOeY98d+0aVvNALs4BcMw==
Date: Tue, 13 Aug 2019 17:24:05 +0000
Message-ID: <15D146FD-FD7A-451C-8655-C6BC1987CC22@cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/10.1a.0.190609
authentication-results: spf=none (sender IP is ) smtp.mailfrom=rrahman@cisco.com;
x-originating-ip: [2001:420:2840:1250:6900:eb73:e481:aee6]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 17b65882-c2ed-4c6b-fadf-08d720130b4c
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(49563074)(7193020); SRVR:MN2PR11MB4301;
x-ms-traffictypediagnostic: MN2PR11MB4301:
x-ms-exchange-purlcount: 2
x-microsoft-antispam-prvs: <MN2PR11MB4301FB8E836955D3DC503D66ABD20@MN2PR11MB4301.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:7691;
x-forefront-prvs: 01283822F8
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(136003)(396003)(376002)(346002)(366004)(39860400002)(189003)(199004)(66574012)(99936001)(66476007)(33656002)(14444005)(36756003)(6486002)(86362001)(478600001)(76116006)(54896002)(25786009)(14454004)(6306002)(6512007)(6436002)(5024004)(66556008)(229853002)(256004)(66446008)(64756008)(66616009)(6246003)(99286004)(66946007)(486006)(53546011)(71200400001)(81156014)(81166006)(8676002)(46003)(6506007)(476003)(6116002)(2501003)(2906002)(7736002)(102836004)(5660300002)(110136005)(58126008)(316002)(236005)(53936002)(2616005)(8936002)(71190400001)(186003)(491001); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR11MB4301; H:MN2PR11MB4157.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: cisco.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: YBCFbUStiCbY7xTRdXiKWw3a3DO+vTUyRWNaQvN5VKkk2U4qBflyHn9MN1UMqQiYeaI11wRdbxkXO2egh8cyozzaGV3T8XzqyX2C5t80gn5HS9Uk01EGeG71/QhCnbvaTU2ZJlxub8NCGsrHTMCD3vde9aR2P70o6Mh2yk+minOQm9TIRceYkb2TWtLRDyizGZNJo/24CrRjWEC982/LZRGqdz/igxc4rLShbRODb5gV/2t9D9zfDd7j2Wf+NcrcatB6M92jFX+DRDSj03FR7jAJZkDdV3LwAIFEI40epcJnXUUsMbqWxlGchB3vao8+ztu3WjoIlQ2ijh9raAUVBiNrG5RKY+m9ug3uIIzivd3qU/gx4vXU3/TPInw/24EfQjSlI4bMZ3eDihvH5l2zw9y1EhPfx68j/rFKyqq7Vkk=
x-ms-exchange-transport-forked: True
Content-Type: multipart/mixed; boundary="_004_15D146FDFD7A451C8655C6BC1987CC22ciscocom_"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 17b65882-c2ed-4c6b-fadf-08d720130b4c
X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Aug 2019 17:24:05.9877 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: xMKqJenwKJQQrmD9jorBtN8vNRcFRs+74HTLfXVcMUIydQNQYCBEIvp5AWTlRhxUjHOD1YtgH5RmY1HwTi8Gaw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4301
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.36.7.26, xch-aln-016.cisco.com
X-Outbound-Node: rcdn-core-4.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/2crOWwzwl50JFe-n1OHlcwIfNWo>
Subject: Re: [netconf] [netmod] Problems with lint validation
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: Tue, 13 Aug 2019 17:24:13 -0000

Balazs, we ran into the same issue last year. If you look at the ticket in the attached email, yanglint has a fix for the non-config leaf issue but OpenSUSE doesn’t have a version of libyang with the fix.

Regards,
Reshad.

From: netmod <netmod-bounces@ietf.org> on behalf of Balázs Lengyel <balazs.lengyel@ericsson.com>
Date: Tuesday, August 13, 2019 at 11:33 AM
To: "netconf@ietf.org" <netconf@ietf.org>, "'netmod@ietf.org'" <netmod@ietf.org>
Subject: [netmod] Problems with lint validation

Hello,
I validated my model ietf-notification-capabilities@2019-08-13.yang<mailto:ietf-notification-capabilities@2019-08-13.yang> with yangvalidator.com. My model seems fine, but I got a lot of errors from lint:

yanglint Validation
err : The leafref leaf is config but refers to a non-config leaf. (/ietf-subscribed-notifications:subscriptions/subscription/target/stream/stream)
err : The leafref leaf is config but refers to a non-config leaf. (/ietf-subscribed-notifications:subscriptions/subscription/target/stream/stream)
err : Invalid value "subscription-policy" of "uses". (/ietf-subscribed-notifications:subscriptions/subscription/subscription-policy)
err : Copying data from grouping failed. (/ietf-subscribed-notifications:subscriptions/subscription/subscription-policy)
err : Module "ietf-subscribed-notifications" parsing failed.
err : Importing "ietf-subscribed-notifications" module into "ietf-yang-push" failed.
err : Module "ietf-yang-push" parsing failed.
err : Importing "ietf-yang-push" module into "ietf-notification-capabilities" failed.
err : Module "ietf-notification-capabilities" parsing failed.

At least some of these are not really errors. (pyang, confdc accepts them)
E.g.  the first error is not true because the leafref has require-instance false.

It would be nice if this could be corrected. I got the same messages from the draft submission tool too.

Regards Balazs
--- Begin Message ---
#2667: Newer version of yanglint needed for YANG validation

 So datatracker still has yanglint showing these errors for
 https://datatracker.ietf.org/doc/draft-ietf-netconf-subscribed-
 notifications:
 yanglint 0.14.80: yanglint --verbose -p {rfclib} -p {draftlib} -p {tmplib}
 {model} -i:
 err : The leafref leaf is config but refers to a non-config leaf. (/ietf-
 subscribed-notifications:subscriptions/subscription/target/stream/stream)

 This is due to issue below which was fixed in yanglint in 0.16.59
 https://github.com/CESNET/libyang/issues/644

 So we need datatracker to use a more recent version of yanglint.

 Regards,
 Reshad.

-- 
-------------------------------+--------------------
 Reporter:  rrahman@cisco.com  |      Owner:
     Type:  enhancement        |     Status:  new
 Priority:  major              |  Milestone:  (None)
Component:  Datatracker: Yang  |    Version:
 Keywords:  sprint             |
-------------------------------+--------------------

Ticket URL: <https://tools.ietf.org/tools/ietfdb/ticket/2667>
ietfdb <https://tools.ietf.org/tools/ietfdb/>


--- End Message ---