Re: [netmod] Text in import to indicate whether a module is needed as import-only or as implemented

Schönwälder, Jürgen <J.Schoenwaelder@jacobs-university.de> Thu, 19 December 2019 07:52 UTC

Return-Path: <J.Schoenwaelder@jacobs-university.de>
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 BCDD3120096 for <netmod@ietfa.amsl.com>; Wed, 18 Dec 2019 23:52:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=jacobsuniversity.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 4rqi-JLDuGbL for <netmod@ietfa.amsl.com>; Wed, 18 Dec 2019 23:52:41 -0800 (PST)
Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60089.outbound.protection.outlook.com [40.107.6.89]) (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 353C2120046 for <netmod@ietf.org>; Wed, 18 Dec 2019 23:52:41 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B9lCa/P34198RMovn+MbGNkZwGNgDFFhSiQX4N+lAPlCadi0t5i64Sq5hnCdPbEst/phw18HspldoU+4QHYFegJvaC1nAIaZV5IeHYTxlxo33vDpRlaHqMtalQMRylmN2QkrSiISN4bSLPYMyrDMdC8yp4lUTc8hDWJ1pb6ZVdeLr/00qRoKTRYDay6vZBNO0dAev+5H/S4JiuwfCLECuVUluX25ZqYEz2IgE7a/EJTJEyNNtqkOLuvGwLsaNYdWB+ZO/clcvwcE6ozBY7GtObyz/k6uJ9J+7LU25WU/k+YVHQa9jj6cckx9n4aGMxzLfqFI7PEOqa/8UoWjbIDFrQ==
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=KpdtzaKL2azxSZikRL1F6aGp51QtBgxm1HLNInjzR+k=; b=nyDhXEqVz3mdze4j5o6FUk5S3YCt++I+HtxjT87yOXH1lQqFcPga6v8A4zc6UzSZvJWY79i98HMeLgaarQ6HlLw2uku2yIzUfOiuhjS0AVaxGyYjWIp6ntokYP0Jj2NH7B7U5sovThX5INKJAA+KafPBXi09WOP4Jc0cf/WWyX7mboxL8RXG8RObBoyj1lektNFnGQZ2bqNzv3lNkJgDeaxg9bHT1USjBKN45lMVoytQGHtAcFEehUenVBPXloEh/D4+etFcHG1NpysHezrVNAoFHUbS+bILbimrlWUZuW6JIKT1XpuGl/6jgg/QuxUxlHnfoW0BLIb8Rcw3v8psXA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=jacobs-university.de; dmarc=pass action=none header.from=jacobs-university.de; dkim=pass header.d=jacobs-university.de; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jacobsuniversity.onmicrosoft.com; s=selector2-jacobsuniversity-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KpdtzaKL2azxSZikRL1F6aGp51QtBgxm1HLNInjzR+k=; b=U4/COyzK7JlMrCp6u9vWCWNwLfx9pJYyc8xHu3Ztc/H99/lcumK/yoU/MOcHqaclvtjW4lAcRHoH1LL1cewhcLQ4FsF4+Dj6erQDBUEKto1w0HXe3E3jqVpFZPBvrioLmuBtrf/130pzO/rTkcbLUlRA/3pe73wWp58nDGLz+4A=
Received: from DB6P190MB0488.EURP190.PROD.OUTLOOK.COM (10.175.241.139) by DB6P190MB0005.EURP190.PROD.OUTLOOK.COM (10.172.228.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2538.19; Thu, 19 Dec 2019 07:52:38 +0000
Received: from DB6P190MB0488.EURP190.PROD.OUTLOOK.COM ([fe80::c29:f991:2bf0:4490]) by DB6P190MB0488.EURP190.PROD.OUTLOOK.COM ([fe80::c29:f991:2bf0:4490%7]) with mapi id 15.20.2559.015; Thu, 19 Dec 2019 07:52:38 +0000
From: "Schönwälder, Jürgen" <J.Schoenwaelder@jacobs-university.de>
To: Andy Bierman <andy@yumaworks.com>, Balázs Lengyel <balazs.lengyel=40ericsson.com@dmarc.ietf.org>, "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] Text in import to indicate whether a module is needed as import-only or as implemented
Thread-Index: AQHVtj1BFYilC+4iwkOqyLR4m3nR7KfBFhSA
Date: Thu, 19 Dec 2019 07:52:38 +0000
Message-ID: <20191219075237.44xz6d34mn2ihjw2@anna.jacobs.jacobs-university.de>
References: <AM0PR0702MB36654D2907FBCC620AD179F7F0530@AM0PR0702MB3665.eurprd07.prod.outlook.com> <CABCOCHR_jEGDjSA_BhUWyLFB=4JJSFKqyT_3AHi91pfGFik-LQ@mail.gmail.com> <87fthgye1c.fsf@nic.cz>
In-Reply-To: <87fthgye1c.fsf@nic.cz>
Reply-To: "Schönwälder, Jürgen" <J.Schoenwaelder@jacobs-university.de>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-clientproxiedby: AM0PR05CA0079.eurprd05.prod.outlook.com (2603:10a6:208:136::19) To DB6P190MB0488.EURP190.PROD.OUTLOOK.COM (2603:10a6:6:32::11)
authentication-results: spf=none (sender IP is ) smtp.mailfrom=J.Schoenwaelder@jacobs-university.de;
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [212.201.44.247]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: b4cb8fe4-1d23-4dc5-13e2-08d784586b0e
x-ms-traffictypediagnostic: DB6P190MB0005:
x-ms-exchange-transport-forked: True
x-microsoft-antispam-prvs: <DB6P190MB00050EC161E1FFAA120A81D5DE520@DB6P190MB0005.EURP190.PROD.OUTLOOK.COM>
x-ms-oob-tlc-oobclassifiers: OLM:8882;
x-forefront-prvs: 0256C18696
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(136003)(366004)(376002)(346002)(39840400004)(189003)(199004)(66556008)(110136005)(66476007)(66946007)(64756008)(316002)(66446008)(3450700001)(71200400001)(786003)(6512007)(6486002)(8936002)(186003)(5660300002)(26005)(6506007)(1076003)(86362001)(4744005)(52116002)(81166006)(8676002)(2906002)(81156014)(478600001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6P190MB0005; H:DB6P190MB0488.EURP190.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: jacobs-university.de does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: LyBtlx8+04aX0hqAgRkmMsbERcpM7my8kQzt4S9Rcg5AOHKpNDdiv/Gk2szLvgL8BJC0PbjLoBiYxt7aZlAu2wemX2GNHRO1s9Xkza2uQ6Nh8CDFDT3NxBLAtl0L3n52rQKNvIvxu070CurpfZZ43JMWt94wwecTmA7ueV0O4pYfjZ+9da90bvPT+Lz+tpeki+pa2jDshjYu7YJj4G+RmNgqzqifcibNs2Jx1YN5HyXUr4cxI5rWfMKxaACZkg+WGjnd2kiegKwMXbbt0fAlXWks0PjpTty7wCXCzR0O5r2Sypd5pVSSnpYsU1iN7L5R4RxLszaje3Etk+YVERgXhMegnM0x1SsjGgIljxmPs+0FHCM7sN/9hze1YqCLT52Mcg2dGyyW9VYYgnB83BT7mjNeKU6V2CO5wVpWPDwhTTA2dredbxzifyhaCJQwpQLiolz4tNogKKvQOMqCyqCCFkGoiunXfdHH6a6PrX+xEME=
Content-Type: text/plain; charset="iso-8859-1"
Content-ID: <67F5ACE21084464A80785A8B9FCC491A@EURP190.PROD.OUTLOOK.COM>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: jacobs-university.de
X-MS-Exchange-CrossTenant-Network-Message-Id: b4cb8fe4-1d23-4dc5-13e2-08d784586b0e
X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Dec 2019 07:52:38.5796 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: f78e973e-5c0b-4ab8-bbd7-9887c95a8ebd
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: OGvCXiKL5uYW47jVovsu1bqV0V8+aNyecBtd5Rg/Ecr413EvrZcGTMhvXjSuljMdCnRIBKqmeqMb/dyqXje06Iq60gvPLIpbvAi7H9OnqjI=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6P190MB0005
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/ws_3sgrbN1Nx_pQjHgWP8o_uePo>
Subject: Re: [netmod] Text in import to indicate whether a module is needed as import-only or as implemented
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: Thu, 19 Dec 2019 07:52:44 -0000

On Thu, Dec 19, 2019 at 08:23:27AM +0100, Ladislav Lhotka wrote:
> 
> I don't see how YANG syntax defines this. If a module imports ietf-netconf-acm, it could be because
> 
> - it just uses a typedef, such as "node-instance-identifier", and then
>   ietf-netconf-acm needn't be implemented (but can be),
> 
> or
> 
> - it augments ietf-netconf-acm, which makes sense only if the latter
>   module is implemented.
> 
> It it the YANG library that specifies whether a module is implemented or not, but the "import" statement itself doesn't tell you anything.
>

Can we not assume that an implementor will figure out the difference?
Or someone writes a pyang plugin to determine from the schema tree the
kind of imports there are (for a given set of features).

/js

-- 
Juergen Schoenwaelder           Jacobs University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>