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

Balázs Lengyel <balazs.lengyel@ericsson.com> Tue, 07 January 2020 14:30 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 C2EA01200E0 for <netmod@ietfa.amsl.com>; Tue, 7 Jan 2020 06:30:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.002
X-Spam-Level:
X-Spam-Status: No, score=-2.002 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, 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 NOtK7X-inlgD for <netmod@ietfa.amsl.com>; Tue, 7 Jan 2020 06:29:59 -0800 (PST)
Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2066.outbound.protection.outlook.com [40.107.22.66]) (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 BC27B120059 for <netmod@ietf.org>; Tue, 7 Jan 2020 06:29:58 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lbnxn6CC9a68djTU+KAzc2nmnb7BMqc2uZEknhDSUQ+dDpVy60lEd8VYw/C76cE7Lvwu4I94Rud40BOu3LICootU9ahakno5tMXC+29I2YaIsItcVel/sBPIFF8ocvC0sh3VTIpn8Hi1LtK0seXdAXzbliBu63YTSEVKjWflOLAL2rwHnKF2yDxP1z24XIJfXUYrtv/uCAK+Oc7qpYz5fZQ4zpczV95/8lnmJdA29iUuRc13Djux0zl8NdMho5Z/xyG/41iLyqF34Wd24i59HBqc7xRIRjl3AQtr03fPHsteCiRzf3F40n5Srxcq3h7YXmQ9sqmDXlNY8aJ2X/7+9g==
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=PQCjUAGR8480B3E7ympY8QjtJzLtPno8TH2kw2fq5nE=; b=GNdhgbIWJNuU9fh9jNC4IzWK/SYEEF4dU+ZwjrA6lXocD2n78x3MSFzIN+7LoqaF7jv3XJK3MY5NSvQp99oX3iFpxKo0q2qH0g/h81MMlW91k4UY7EjcDx1vHOpQoCp7dMeqMScgG3EM1X3Kv3BaiRONzJq288W0rssaP/CDvbamxxlfLxn+WccQU5DZdSCZDZXubC9qBeKiLQhg3nvXo730oL+tKP6p5HCP+S/WNdkGHWK80I4j2uMES+qVfTZvBMwIH55ZeMJjJszmbiLJ72SmxInPivBYJHKlYWU/4vJKZ57AytWx1T0j5xqoZeApxSmt5fbpjMfSx8rADik7Jw==
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=PQCjUAGR8480B3E7ympY8QjtJzLtPno8TH2kw2fq5nE=; b=NfRZodD2neprKhEDgvNtd7MUTShSGb9QTsoc8VUP4UQWiHxUgn61ivVV9i7qEZ8s8vQqvIVpy6Rc3bab5PvYJ3EcSIYn2U+oyfyeaZbQEkAfuzQgfNlE7xtOnA/weBrqErC9tEkrB1PCRzJLVLsmX4ko6Pvhe/nHTkUAeu795yM=
Received: from VI1PR07MB4047.eurprd07.prod.outlook.com (52.134.20.154) by VI1PR07MB3181.eurprd07.prod.outlook.com (10.170.238.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2623.6; Tue, 7 Jan 2020 14:29:56 +0000
Received: from VI1PR07MB4047.eurprd07.prod.outlook.com ([fe80::819:a879:8fe2:1686]) by VI1PR07MB4047.eurprd07.prod.outlook.com ([fe80::819:a879:8fe2:1686%5]) with mapi id 15.20.2623.008; Tue, 7 Jan 2020 14:29:56 +0000
From: =?iso-8859-1?Q?Bal=E1zs_Lengyel?= <balazs.lengyel@ericsson.com>
To: Martin Bjorklund <mbj@tail-f.com>
CC: "andy@yumaworks.com" <andy@yumaworks.com>, "lhotka@nic.cz" <lhotka@nic.cz>, "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: AdW1rIivNNF/ygLlRsqN7vYQ6ujj8wAHQSMAABzp24AAAQTrAAARCBUAAADIkQAC4vIRcADS2UAAAAG/CEA=
Date: Tue, 7 Jan 2020 14:29:56 +0000
Message-ID: <VI1PR07MB404773908BCA102EFBB6EE46F03F0@VI1PR07MB4047.eurprd07.prod.outlook.com>
References: <d3520549f06107de8939af24268f56f56683fbb0.camel@nic.cz> <CABCOCHRFQrXgGKB10B9MXbKa2vMfaY3eWaj5Sp4W0DPQ0F-pGQ@mail.gmail.com> <VI1PR07MB40472B4BEFB581AEE4F7C158F0230@VI1PR07MB4047.eurprd07.prod.outlook.com> <20200107.143818.1928135118621633911.mbj@tail-f.com>
In-Reply-To: <20200107.143818.1928135118621633911.mbj@tail-f.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=balazs.lengyel@ericsson.com;
x-originating-ip: [89.135.192.225]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 58ac58f7-0384-4315-83c1-08d7937e1196
x-ms-traffictypediagnostic: VI1PR07MB3181:
x-microsoft-antispam-prvs: <VI1PR07MB3181D9049C41D58B4488F515F03F0@VI1PR07MB3181.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-forefront-prvs: 027578BB13
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(136003)(396003)(346002)(366004)(376002)(39860400002)(189003)(199004)(13464003)(6506007)(53546011)(81156014)(2906002)(66946007)(7696005)(186003)(478600001)(66476007)(71200400001)(66446008)(64756008)(26005)(76116006)(66556008)(81166006)(8676002)(8936002)(316002)(966005)(4326008)(4001150100001)(33656002)(86362001)(55016002)(5660300002)(66574012)(52536014)(54906003)(6916009)(9686003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR07MB3181; H:VI1PR07MB4047.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: IUzqW/Exmlp5xZEOEhBgrm2hnYQA9/agBsV6Nqmx777Gxxws1TJ4O4J5Way+E969FFzMoUGtcZRTI+/1k/T+ZUFCDitUkQ2vd3W7Vr29pD9ZBN6azyXvPxUH3nGTiZF97MV9Ukh7KBxvoNlczPICT66rP8GuwT+UjuYQ+lng+T1Lv+6CNX82utNkCcyRu59WjRWzbAv7ffscZ75OAS1IkCQsFiEVV/NVS7PN2Pdw8H2U94uh9Pi3xE/pkbN6MB4pIrBQZTgRxIZj26xChliMckrvdw54HwHa3m2ClnoWmlUt0xlIndPo+5RVZrr4RYvsvlC9AkG66LduBo+UfHVVwWKuGMkVRQ9C5f1rXhU/DdTA494UkKSki7Y/zTYHMkVorGEkKv+kKJ/oUXwSC1J4jbiMMa3JQxoYjj6bmlupGjoUZn+xwftkIBtZgGEY+fosT2RJ6Q7Gm5wjj5MuhQ8CHKEfDpsQpcuhYbigKckaSxILJpvyqH74aA4BLrMVXWJL2RpWhBzfzpOcWJMr9osDhNjWBYnYy2SUIPG099r0wC8=
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 58ac58f7-0384-4315-83c1-08d7937e1196
X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jan 2020 14:29:56.5194 (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: g5KIZG6/WasOAHEKAEzcIZCQxeIEhAzAJ/xTNN54MHYPmcwjL3inyw3otxqNHPZBSb5bHyctpOSuPbqr45z5JvOfprEIuMal9FpyN/bHuWI=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB3181
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/Ob0EwYYqLwcEfjwu_63zsG2-cIc>
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: Tue, 07 Jan 2020 14:30:02 -0000

If that is the consensus, I can remove the description statements, no big deal. (I actually like the statements, but they are not important for this draft)
Balazs

-----Original Message-----
From: Martin Bjorklund <mbj@tail-f.com> 
Sent: Tuesday, January 7, 2020 2:38 PM
To: Balázs Lengyel <balazs.lengyel@ericsson.com>
Cc: andy@yumaworks.com; lhotka@nic.cz; netmod@ietf.org
Subject: Re: [netmod] Text in import to indicate whether a module is needed as import-only or as implemented

Hi

I agree w/ Andy and others that we should not add this to the import's description.  I don't think this kind of conformance text belongs to the import's description.  If you think it is important to state this, the best place is probably as plain text in the document itself.



/martin


Balázs Lengyel <balazs.lengyel=40ericsson.com@dmarc.ietf.org> wrote:
> As a draft author who was asked to add text about the imports IMHO
> 
> *	it would be easy for me to remove the description from the import. Actually I really just want to know what is acceptable to the group, so I can proceed
> *	I also think that adding this text is in most cases easy and it does not need updates later.
> *	The rules in some cases might not be trivial.
> 
> *	Imported YAMs need to be implemented if
> 
> *	Imported parts are included in Xpath (augment, when, must, require-instance)
> 
> *	Imported YAMs do not need to be implemented if only the following are used
> 
> *	Types
> *	Features
> *	extensions
> 
> *	Ambiguous if
> 
> *	groupings are used
> *	if the dependency is not formally defined by YANG, but functionally needed. (E.g. notification-capabilities does not formally need YANG-Push to be implemented, however there is no sense in defining capabilities if YANG-Push is itself not implemented.)
> *	deviation ?
> *	other cases ?
> 
> Regards Balazs
> 
>  
> 
> From: netmod <netmod-bounces@ietf.org> On Behalf Of Andy Bierman
> Sent: 2019. december 19., csütörtök 17:23
> To: Ladislav Lhotka <lhotka@nic.cz>
> Cc: NetMod WG <netmod@ietf.org>
> Subject: Re: [netmod] Text in import to indicate whether a module is 
> needed as import-only or as implemented
> 
>  
> 
>  
> 
>  
> 
> On Thu, Dec 19, 2019 at 8:00 AM Ladislav Lhotka <lhotka@nic.cz <mailto:lhotka@nic.cz> > wrote:
> 
> On Thu, 2019-12-19 at 07:52 +0000, Schönwälder, Jürgen wrote:
> > 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?
> 
> An implementor should be able to figure it out, but other potential 
> module users may not. For example, if somebody is evaluating whether 
> to use a module for their device or not, it is important to know that 
> NACM has to be implemented (or not).
> 
>  
> 
> You seem to be talking about a new conformance documentation procedure
> 
> that attempts to solve the problem "to use modules A, B, and C 
> together
> 
> to achieve some functionality X, all these conditions need to be met"..
> 
> (Sounds more like a problem for YANG Packages to solve)
> 
>  
> 
> IMO this is a much harder problem than something that can be solved
> 
> with extra description-stmt text. The writer is likely to get it wrong 
> or not
> 
> keep it up to date, so a tool to analyze the file seems like a better solution.
> 
>  
> 
> Lada
> 
>  
> 
>  
> 
> Andy
> 
>  
> 
> 
> > 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
> > 
> --
> Ladislav Lhotka
> Head, CZ.NIC Labs
> PGP Key ID: 0xB8F92B08A9F76C67
> 
> _______________________________________________
> netmod mailing list
> netmod@ietf.org <mailto:netmod@ietf.org> 
> https://www.ietf.org/mailman/listinfo/netmod
>