[netmod] Problems with lint validation

Balázs Lengyel <balazs.lengyel@ericsson.com> Tue, 13 August 2019 15:32 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 6A46B120808; Tue, 13 Aug 2019 08:32:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.001
X-Spam-Level:
X-Spam-Status: No, score=-2.001 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_NONE=-0.0001, SPF_PASS=-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 SUTTjXIcQGEE; Tue, 13 Aug 2019 08:32:32 -0700 (PDT)
Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10088.outbound.protection.outlook.com [40.107.1.88]) (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 4DF03120815; Tue, 13 Aug 2019 08:32:30 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TkhIwjmECpZ4sq/Sq8RY4W2zF/5qFvNLqZ/G2NaQAhcngHBl1pyO2DgNnpJD0pb0XTMawhRXw7r0OuInMUXoDQnRVp2FMg0K1eOA7MYPWzrKztGfWKY0NxxiRYWoPR5aoB/g/kukBt9otzdB1lL8DmGATJxRzTI0mDUoSp/6NwnOwEkjk7+bY4KQ15A8hGVId/TuWQjSBgQyfxm3XW/HocXbKxPqJP8840sbzsiDoBMpJc/NN7VOWP/nAf6ZtIPJQQtD/YTSW9NQBZ7CD3Ypu8LJzA+opTY/INqIpdf4YmLeX30dxbkXwBwOMmFX5tXWz6PCn4hp+fywTnYeKnkM3g==
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=iXYft2F9wTRKo6SSoJDgh9IDIOD1dcWKKisU2fIzrno=; b=BFaVojcHOG6YDyBI0jgV3eJbQWGbnod2FjsobO7yHtpl/+y3Bwsl2U8wX3i7fjlID2sHxLpAfZ7tvPVJGwA4JPHhawpIL7WOT1XRQO+c+gi0NebmAWYRws7dc7P3iXMbC0fnaFAP53fwA0ltz9fw5Z/bQBI107cxa1z+RxoZLic/dusvlf7FKBs2fu70vB75M6VQgSgQkvFYDFh9+AeY+4n6tebqBfQo7FGCX1uEBmSYLjrQkUM5YMJdfHocLnMzShvPdBtSxMFCLC3QThkh0MIzrlSnTEL58GLwHLH3hxTNNGSPWCZ/ofhhB1CESJMi3kkUD3X0dkoKxT4EkUTCpQ==
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=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iXYft2F9wTRKo6SSoJDgh9IDIOD1dcWKKisU2fIzrno=; b=moyrwQGAAIdynWjsEVqvwwgp7f16ifWDL4enMwRwwtM+KxwsucaJKZPvgT2OF0LGo+RuWcR0b/fCMUUfN5VKGhhYZT/H2c83RdVm/NbH3pZdlsFr6zM1VdK1ObxuUG8pgvVFzP/Yu719hy9FBAIpRnRuPqyhKLi5hAE7eIPX4rw=
Received: from VI1PR0701MB2286.eurprd07.prod.outlook.com (10.169.137.153) by VI1PR0701MB2526.eurprd07.prod.outlook.com (10.168.140.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2178.15; Tue, 13 Aug 2019 15:32:27 +0000
Received: from VI1PR0701MB2286.eurprd07.prod.outlook.com ([fe80::5556:4c20:cd8d:686a]) by VI1PR0701MB2286.eurprd07.prod.outlook.com ([fe80::5556:4c20:cd8d:686a%11]) with mapi id 15.20.2178.013; Tue, 13 Aug 2019 15:32:27 +0000
From: =?iso-8859-1?Q?Bal=E1zs_Lengyel?= <balazs.lengyel@ericsson.com>
To: "netconf@ietf.org" <netconf@ietf.org>, "'netmod@ietf.org'" <netmod@ietf.org>
Thread-Topic: Problems with lint validation
Thread-Index: AdVR6w7gJOr4Q+xuS/iX1rjiqeQGGQ==
Date: Tue, 13 Aug 2019 15:32:27 +0000
Message-ID: <VI1PR0701MB2286EFC7D9545B13483D131CF0D20@VI1PR0701MB2286.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: [89.135.192.225]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 461c11c8-a2be-4f94-e0b4-08d72003728e
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600148)(711020)(4605104)(1401327)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(49563074)(7193020); SRVR:VI1PR0701MB2526;
x-ms-traffictypediagnostic: VI1PR0701MB2526:
x-microsoft-antispam-prvs: <VI1PR0701MB252626A10D57D48422486F71F0D20@VI1PR0701MB2526.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-forefront-prvs: 01283822F8
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(346002)(136003)(396003)(39860400002)(376002)(366004)(199004)(189003)(66616009)(7696005)(52536014)(25786009)(66446008)(450100002)(486006)(53936002)(8676002)(476003)(26005)(2906002)(186003)(316002)(45776006)(110136005)(66556008)(66476007)(76116006)(99286004)(66946007)(99936001)(64756008)(3480700005)(6506007)(5660300002)(236005)(102836004)(14444005)(2501003)(33656002)(54896002)(9326002)(9686003)(14454004)(55016002)(86362001)(6436002)(81156014)(478600001)(8936002)(256004)(66066001)(71200400001)(71190400001)(7736002)(6116002)(790700001)(3846002)(6306002)(81166006)(74316002)(491001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0701MB2526; H:VI1PR0701MB2286.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: DGDr6dy9b61khIJac7UQJfr3CnOEnTfwa4MTWeIGKTywDN8O0pba3Wq/0vqlA1Q9jh1XSviRbhLpbIq7NlRqqfNybGK290/x++F2lueSLl//MVNzJIs3I9Z+k+jCzceBN7ZgHt3y/1Iwf8STF4tE67kHGx+527fudvlJLgrLBcs+DX/5hXsNw5ePSvcjXXJVSTf6f8yP1se0TJGn3fiDV3d8JI9MAZWzUfJ1jsFHbkLve2BgebmbD3r/OO5Nw/bJJdZwzK7xWh28A6+MwxmPr4U1STs+tcLFuKlSdS5NXM2Hd8Oi29f0n99PZ5hiczRzg0uo2fiwkL7TzyGA7VeCIXlO+VxXXuFLLhSbaG5s7v5ERVneq50cjSnyxwb0A6po99y5cLGriiXWINrNPacxl3OTWxTy6kooiYH7dF7324c=
x-ms-exchange-transport-forked: True
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="----=_NextPart_000_0053_01D551FD.12F1CD30"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 461c11c8-a2be-4f94-e0b4-08d72003728e
X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Aug 2019 15:32:27.3992 (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: iu2/AegwuuBRvH9BsFe4XyLH8wCRW84T4gL8o9SNhUY7U42dqGcuxrisfmdrspqTudTrgEy20psDMKMIAOw4PVKQddhGKNUC7UncAZwBnHU=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0701MB2526
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/s-VVnurJsxxM_3VrgBFFMW3NwmU>
Subject: [netmod] Problems with lint validation
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, 13 Aug 2019 15:32:36 -0000

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/str
eam)

err : The leafref leaf is config but refers to a non-config leaf.
(/ietf-subscribed-notifications:subscriptions/subscription/target/stream/str
eam)

err : Invalid value "subscription-policy" of "uses".
(/ietf-subscribed-notifications:subscriptions/subscription/subscription-poli
cy)

err : Copying data from grouping failed.
(/ietf-subscribed-notifications:subscriptions/subscription/subscription-poli
cy)

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