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> Thu, 05 March 2020 15:52 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 6C8B63A16C8 for <netmod@ietfa.amsl.com>; Thu, 5 Mar 2020 07:52:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.1
X-Spam-Level:
X-Spam-Status: No, score=-2.1 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, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 auZW01PealBN for <netmod@ietfa.amsl.com>; Thu, 5 Mar 2020 07:52:14 -0800 (PST)
Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150078.outbound.protection.outlook.com [40.107.15.78]) (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 A73503A16CD for <netmod@ietf.org>; Thu, 5 Mar 2020 07:52:13 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; =?utf-8?q?b=3Dbb68qBDboJroLBGdNufiVnbOqdgWFoqn9bgFAvXxbBu1hNfMfX7mnbvvz5QRF?= =?utf-8?q?pm247orAhel+bqYxLEHNF1egrmd+TeH8Thd1qIT00jj+i6t3DjQUymH5NkhDiZuqh?= =?utf-8?q?8dHw0gRAWSRIS0OSWdExQfhQX2+v3jPjO6ZO1aDoo3hxsZThtojznV6gmhEIir3AA?= =?utf-8?q?ITmBuIXRHohnryN3vutZySUi++IA+Bi5LkBIz5H/Ui36B1udE5mr4Rv27FUxYWogK?= =?utf-8?q?QA4m1XW2//yUteU3F/fdFfEiWNCVbPg8QLDqfUnVDAK3TCTaje1oP+Z2L7xWX9JFH?= =?utf-8?q?k/x0n8ZYTcGjYVFZggxnw=3D=3D?=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; =?utf-8?q?h=3DFrom=3ADate=3ASubject=3AMessage-ID=3ACont?= =?utf-8?q?ent-Type=3AMIME-Version=3AX-MS-Exchange-SenderADCheck=3B?= =?utf-8?q?bh=3DRwhbFWt3Y7xtBp5wNZXphwRsnPJP+tKD6so4rC73bnc=3D=3B_b=3DRTiBBy?= =?utf-8?q?ehCLRrx3t63O8zGDxdcbM2cORZwQ8GqSy9v/PYmbG0wEwaHeewKAfljAU+DjbHC4m?= =?utf-8?q?9WO+0RnBqtpaAGFSvDiIfqOMo9SKtuCXnHi3veKM+ts8XqVhk7kEelvFjEjk/u0Bc?= =?utf-8?q?bcsxa946ocW1rPXebq3WcwI5L5y1/CvVfHMSlHMdtb5+lCdiZ+h3V7h1+OKPiRI0T?= =?utf-8?q?T18KejrhlHJK+hblXeRPZX8vZoUYSnySq8OEiQvgUDeXe1EuRhSCjZ8kn+rIQZhoL?= =?utf-8?q?b+uAl24Hx/gJE8zd9VCezGbwzQ4rXOlSR4/a8IFxSz3wrh1iOpN9jID3NXP19IHy0?= =?utf-8?q?Y23Xo/Dbolw=3D=3D?=
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; =?utf-8?q?h=3DFrom=3ADate=3ASubject=3AMessage-ID=3AContent-Typ?= =?utf-8?q?e=3AMIME-Version=3AX-MS-Exchange-SenderADCheck=3B?= =?utf-8?q?bh=3DRwhbFWt3Y7xtBp5wNZXphwRsnPJP+tKD6so4rC73bnc=3D=3B_b=3Dl7+EDm?= =?utf-8?q?0unEZPVqcSbuSeSTuyc3IYZMEJUnXB08sBbx7a4AHcckDRHfDGwa9Eggqzz/bDiZ3?= =?utf-8?q?JPjMbpAWseNU43ZRP5cbWKPTZrCUQQKUSqYcHq7rUHOMViAUDCVYeqyTkg+PX2n9o?= =?utf-8?q?Vlq684rB8S6McyDHrfH5v7kScomReOdpOGw=3D?=
Received: from DB7PR07MB4011.eurprd07.prod.outlook.com (52.134.97.155) by DB7PR07MB4602.eurprd07.prod.outlook.com (52.135.137.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2814.6; Thu, 5 Mar 2020 15:52:11 +0000
Received: from DB7PR07MB4011.eurprd07.prod.outlook.com ([fe80::15cf:dc81:c6f4:aa0c]) by DB7PR07MB4011.eurprd07.prod.outlook.com ([fe80::15cf:dc81:c6f4:aa0c%7]) with mapi id 15.20.2793.013; Thu, 5 Mar 2020 15:52:11 +0000
From: =?utf-8?B?QmFsw6F6cyBMZW5neWVs?= <balazs.lengyel@ericsson.com>
To: Andy Bierman <andy@yumaworks.com>
CC: Benoit Claise <bclaise@cisco.com>, NETMOD WG <netmod@ietf.org>
Thread-Topic: [netmod] Text in import to indicate whether a module is needed as import-only or as implemented
Thread-Index: =?utf-8?q?AdW1rIivNNF/ygLlRsqN7vYQ6ujj8wAHQSMAABzp24AAAQTrAAAR?= =?utf-8?q?CBUAAADIkQAC4vIRcADS2UAAAAG/CEAAJz0GgAAHnYUAAAHizAAACmOPAAqYHUeAA?= =?utf-8?q?AHrJYAAARKhAAAAe64AAB2cXoAAD66GAABernmwAATQO4AAADcFkA=3D=3D?=
Date: Thu, 5 Mar 2020 15:52:10 +0000
Message-ID: =?utf-8?q?=3CDB7PR07MB4011430C71ECD5EA62A78BF5F0E20=40DB7PR07MB4?= =?utf-8?q?011=2Eeurprd07=2Eprod=2Eoutlook=2Ecom=3E?=
References: <d3520549f06107de8939af24268f56f56683fbb0.camel@nic.cz> <CABCOCHRFQrXgGKB10B9MXbKa2vMfaY3eWaj5Sp4W0DPQ0F-pGQ@mail.gmail.com> =?utf-8?q?=3CVI1PR07MB40472B4BEFB581AEE4F7C158F0230=40VI1PR07MB4047=2Eeurpr?= =?utf-8?q?d07=2Eprod=2Eoutlook=2Ecom=3E?= =?utf-8?q?=3C20200107=2E143818=2E1928135118621633911=2Embj=40tail-f=2Ecom?= =?utf-8?q?=3E_=3CVI1PR07MB404773908BCA102EFBB6EE46F03F0=40VI1PR07MB4047=2Ee?= =?utf-8?q?urprd07=2Eprod=2Eoutlook=2Ecom=3E?= <e28ccc2b5b632d861dcdcc8b59184d1b81eb4406.camel@nic.cz> <CABCOCHQ5ps3SMfBiFatqN1R2MFbvY1WRyO9548nOZr1-GKuQ=g@mail.gmail.com> <bbc48da835fc0829dc179e89a8553095b1244677.camel@nic.cz> <CABCOCHR=qBJ=uKK29RP4ynumabeZiaWY-MM30VuG9fsQ6Rq95Q@mail.gmail.com> <940da771-440b-6e42-eaf7-12bc5626441a@cisco.com> <CABCOCHTcp=3cG1ed_3H-XtZdTUOj8O4hEq0sPjdf9d9B3yURsg@mail.gmail.com> <6c7419ed4553947cd84930c240a14cf5f91fac11.camel@nic.cz> <CABCOCHSGYiEsuEEgHZ1Jf6fDXTWn0WxbPewAa=grwy9+7yudYQ@mail.gmail.com> <c58da422-e0b0-75dd-0d94-96fd1ae12007@cisco.com> =?utf-8?q?=3CCABCOCHRJvVF7NNyyTupYq39DmJN=3D1xKwmQxMfzF0T-ss0hFM8g=40mail?= =?utf-8?q?=2Egmail=2Ecom=3E_=3CDB7PR07MB4011F6397EDC5CE7723880F5F0E20=40DB7?= =?utf-8?q?PR07MB4011=2Eeurprd07=2Eprod=2Eoutlook=2Ecom=3E?= <CABCOCHRARyZogky8STdmJSJZNOoKNERwNda4GS=DVp3K7kRxHA@mail.gmail.com>
In-Reply-To: <CABCOCHRARyZogky8STdmJSJZNOoKNERwNda4GS=DVp3K7kRxHA@mail.gmail.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: 36994ba4-4173-48ee-95c3-08d7c11d2aaf
x-ms-traffictypediagnostic: DB7PR07MB4602:
x-microsoft-antispam-prvs: =?utf-8?q?=3CDB7PR07MB460206FCB40EA4B637C92212F0E?= =?utf-8?q?20=40DB7PR07MB4602=2Eeurprd07=2Eprod=2Eoutlook=2Ecom=3E?=
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 03333C607F
x-forefront-antispam-report: SFV:NSPM; =?utf-8?q?SFS=3A=2810009020=29=284636?= =?utf-8?b?MDA5KSgzOTg2MDQwMDAwMikoMzQ2MDAyKSgzNzYwMDIpKDM5NjAwMykoMTM2?= =?utf-8?b?MDAzKSgzNjYwMDQpKDE4OTAwMykoMTk5MDA0KSg1MjUzNjAxNCkoODY3NjAwMiko?= =?utf-8?q?8936002=29=2881156014=29=286506007=29=2833656002=29=2885202003=29?= =?utf-8?q?=2866446008=29=287696005=29=2885182001=29=286916009=29=2881166006?= =?utf-8?b?KSg2NjQ3NjAwNykoNTM1NDYwMTEpKDQ3ODYwMDAwMSkoMjkwNjAwMikoNDAw?= =?utf-8?q?1150100001=29=28966005=29=2886362001=29=2854906003=29=2876116006?= =?utf-8?b?KSgzMTYwMDIpKDY2NTc0MDEyKSg3MTIwMDQwMDAwMSkoNjY5NDYwMDcpKDY2?= =?utf-8?q?616009=29=2866556008=29=285660300002=29=2830864003=29=2826005=29?= =?utf-8?b?KDQzMjYwMDgpKDk2ODYwMDMpKDU1MDE2MDAyKSg2NDc1NjAwOCkoMTg2MDAzKTs=?= DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR07MB4602; H:DB7PR07MB4011.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: =?utf-8?q?X04mm+6Gt9tvM7FgzN8MUdxiRc7WEey?= =?utf-8?q?1jGdLK1bNBKeb8IWyLNWpgSCFqO4RRH/CngGmFcTEcK6PnpF24YNyemnZ6NnIMUxB?= =?utf-8?q?7Uz6cEwKWQS7VYNJ2I1nGN9zH5DwaaR5QMneB5F/JmpwWeis9uIFLeZC9/eePSyxL?= =?utf-8?q?LC/UBjW67JTyqBVsdnAASzlx1sbgnsx99Giuo7jbQfzO4hqbnOMgzjSXhkimD36gw?= =?utf-8?q?voDq3bmtPS/7EP68FIk96pwXAUoH66HtkLEEqkUoCEQUDoIJhKhBJCfR7NbH3MFTu?= =?utf-8?q?dLvaeePYVFdY17C8E5j5Ls9NVZgR78z45ffDRVjEzMfwNOOKoladL8wYeQaeDlfae?= =?utf-8?q?KhlDwM29nQLKRGGdeTZdqHreEG5qhfDZA+/OnIXNaIL7LVsysEm5eGpwloXP+wwC2?= =?utf-8?q?l2wcEBoBwp2RaMlCTSE0w0LoZOLhp3FCP5f5cxOIJq4us7UU+gJ/JC4TQQOpEaLe6?= =?utf-8?q?gXmUPNroP71dD1fx3lS4tkVgdDDZeIuFk6W1irLNgn4g2otw=3D=3D?=
x-ms-exchange-antispam-messagedata: =?utf-8?q?9yjXs6OyAPvi56ljKvYw5NmHhn+9pl?= =?utf-8?q?VZ6RffkW/egrrPJ5yadT9rOY/7uFVBN2W8uQc4cG454QnNf86xHs2EFQZ5dnPf08z?= =?utf-8?q?kvTRGH/cBaFuGP410SmsV8RcKhZSkmqOnpTo8xH/l7jmPX1iulgiAww=3D=3D?=
x-ms-exchange-transport-forked: True
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="----=_NextPart_000_0166_01D5F30E.6906C240"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 36994ba4-4173-48ee-95c3-08d7c11d2aaf
X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Mar 2020 15:52:11.0267 (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: =?utf-8?q?oyzjOjJti/XlDYLIZNZoa?= =?utf-8?q?ITzH51pvU2mllWeugvzYYFcsBfASlNpEjJ8J/pq748wRf45vk0N+FYXfC0+Sl/RXY?= =?utf-8?q?GIQDQ9BxVbLWiAVcStGtI=3D?=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR07MB4602
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/m0lqFBiaUYUy1jEGIJRXaESu5Ps>
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, 05 Mar 2020 15:52:19 -0000

 

 

From: Andy Bierman <andy@yumaworks.com> 
Sent: 2020. március 5., csütörtök 16:43
To: Balázs Lengyel <balazs.lengyel@ericsson.com>
Cc: Benoit Claise <bclaise@cisco.com>om>; 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, Mar 5, 2020 at 5:31 AM Balázs Lengyel <balazs.lengyel@ericsson.com <mailto:balazs.lengyel@ericsson.com> > wrote:

Hello,

Putting this information on individual schema nodes can be a problem if a module uses imported items a lot. We have modules with 100+ schema nodes that use an import, while  there are only 7 modules imported. Adding the statement (mandatory/optional to implement) 100 times would be a lot of text. I also doubt that people will check all 100 places.

IMHO alternatives a) or b) are feasible. (I like a) the best)

 

 

This is a strawman -- nobody suggested duplicating the same text over and over in data nodes.

The same issue exists with the reference-stmt.  We don't require (or encourage) people to

place a reference to an external RFC on every leaf. The same judgement can be used here.

 

Andy

 BALAZS2: If the first 50 uses of an import don’t need an implemented import-module  but the 51stdoes, then finding this will be difficult, unless we formalize it somehow e.g. with a new statement, extension, standard text, whatever.

 

From: netmod <netmod-bounces@ietf.org <mailto:netmod-bounces@ietf.org> > On Behalf Of Andy Bierman
Sent: 2020. március 3., kedd 17:14
To: Benoit Claise <bclaise@cisco.com <mailto:bclaise@cisco.com> >
Cc: NETMOD WG <netmod@ietf.org <mailto:netmod@ietf.org> >
Subject: Re: [netmod] Text in import to indicate whether a module is needed as import-only or as implemented

 

 

 

On Tue, Mar 3, 2020 at 12:45 AM Benoit Claise <bclaise@cisco.com <mailto:bclaise@cisco.com> > wrote:

Hi,

 

 

On Mon, Mar 2, 2020 at 10:23 AM Ladislav Lhotka <lhotka@nic.cz <mailto:lhotka@nic.cz> > wrote:

On Mon, 2020-03-02 at 09:52 -0800, Andy Bierman wrote:
> 
> 
> On Mon, Mar 2, 2020 at 8:57 AM Benoit Claise <bclaise@cisco.com <mailto:bclaise@cisco.com> > wrote:
> > Sorry to resurrect this old email thread.
> > To me, it's an important piece of information to know that ietf-netconf-acm
> > is optional to implement.
> > 
> > It seems that we have 3 potential places where to insert this information
> > 1. The associated document. We could and should insert it into the RFC text.
> >     Drawback: Somehow the YANG module is looked at independently of the
> > associated document
> > 2. import-stmt: people on the list apparently don't like this
> > 3. module description? What harm would it do if the description could
> > contain this info?
> > 
> > 
> 
> IMO it makes more sense to summarize the imported modules that need to be
> implemented
> and not mention the ones that are not required.  The module description-stmt
> is better
> than each import. (YANG 1.1 allows the same module to be imported multiple
> times).

Modules that have to be implemented can be imported only once. Adding this
information to the import statement for such modules is IMO more effective than
having it in the module description. I don't get how it could become a problem.

 

I do not think this info helps very much. It is duplicate info.

It should be in the description-stmts for the objects defined in the module.

Well, I had in mind the module description
The "description-stmts for the objects defined in the module" is yet another place.

 

 

The object descriptions are the correct level of granularity to be useful.

A boolean statement wrt/ module implementation is required vs not required is not very useful.

Rarely is the entire module either fully required or nothing to implement at all.

 

IMO it is wrong to conflate the import-stmt with conformance requirements.

It is merely a mechanism to bind local prefix usage to an external module.

Text like "revision X or derived from X is required" is appropriate for the import-stmt because

it refers to the binding between prefix and imported module revision used.

 

Consider how this extra documentation work scales to a big module like ietf-bgp.

There are multiple submodules, each with overlapping imports and each with their own module header.

 

 

Andy

 

It is also self-evident (and defined in YANG) that if you augment some external node

you have to implement the augmented module.

 

 This is the classic definition of a CLR.

 

Lada

 

 

Trying to decompose the problem space ....
I believe it's common sense to include in the RFC text that ietf-netconf-acm is optional to implement (to take the example in question in https://tools.ietf.org/html/draft-ietf-netconf-notification-capabilities-11)
Do we agree that this information should also be contained somewhere, somehow in the YANG module? I would say: yes

If yes, what are the options?
I agree with Juergen (in a reply in this email thread): ideally a tooling answer would be better. This will take some time. So what do we do now?
3 options:
a. import description (description-stmt in import-stmt) 

module ietf-system-capabilities {
  yang-version 1.1;
  namespace
    "urn:ietf:params:xml:ns:yang:ietf-system-capabilities";
  prefix sysc;
 
  import ietf-netconf-acm 
    { prefix nacm; }
    description "ietf-netconf-acm is optional to implement.";
    }


b. module description (description-stmt in  meta-stmts in module-stmt/submodule-stmt)

module ietf-system-capabilities {
  yang-version 1.1;
  namespace
    "urn:ietf:params:xml:ns:yang:ietf-system-capabilities";
  prefix sysc;
 
  import ietf-netconf-acm { prefix nacm; }
 
  import ietf-yang-library {
    prefix yanglib;
    description "Revision 2019-01-04 or a
      revision derived from it is REQUIRED.";
  }
 
  organization
    "IETF NETCONF (Network Configuration) Working Group";
  contact
    "WG Web:   <https://datatracker.ietf.org/wg/netconf/>
     WG List:   <mailto:netconf@ietf.org> <mailto:netconf@ietf.org>
 
     Editor:   Balazs Lengyel
                <mailto:balazs.lengyel@ericsson.com> <mailto:balazs.lengyel@ericsson.com>";
  description
    "This module specifies a module intended to contain system
      capabilities. System capabilities may include capabilities of a
      NETCONF or RESTCONF server or a notification publisher.
 
      ...
 
     
      ietf-netconf-acm is optional to implement."

c. description-stmts for the objects defined in the module

          leaf node-selector { 
            type nacm:node-instance-identifier;
            description
              "Selects the data nodes for which capabilities are
               specified. The special value '/' denotes all data nodes
               in the datastore. ietf-netconf-acm is optional to implement.";
          }


c. looks weird to me, and might need repetitions in different YANG objects. In the end, as an implementer, I only care to understand whether I need to implement "ietf-netconf-acm" as a prequesite to implement ietf-system-capabilities. 

Between a. and b., I have no strong preferences.
However, a. seems to be the logical place to me.

Regards, Benoit


>  
> > Regards, Benoit
> > 
> 
> Andy
>  
> > > 
> > > On Wed, Jan 8, 2020 at 5:44 AM Ladislav Lhotka <lhotka@nic.cz <mailto:lhotka@nic.cz> > wrote:
> > > > On Wed, 2020-01-08 at 04:49 -0800, Andy Bierman wrote:
> > > > > 
> > > > > On Wed, Jan 8, 2020 at 1:11 AM Ladislav Lhotka <lhotka@nic.cz <mailto:lhotka@nic.cz> > wrote:
> > > > > > On Tue, 2020-01-07 at 14:29 +0000, Balázs Lengyel wrote:
> > > > > > > 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)
> > > > > > 
> > > > > > Of course, it is not that important, but I don't see how this
> > > > information
> > > > > > could
> > > > > > be harmful, if it is included with the import. In my view, it is not
> > > > meant
> > > > > > as a
> > > > > > conformance requirement but just an info from the module author
> > > > about the
> > > > > > meaning of the import statement.
> > > > > > 
> > > > > 
> > > > > It adds a lot of extra work but more importantly the import-stmt is
> > > > the wrong
> > > > > place
> > > > 
> > > > What work do you mean? I thought that it would be just info for
> > > > potential
> > > > developers (or their managers) that implementing the module requires
> > > > implementing other modules and functionality - or not. 
> > > > 
> > > > 
> > > 
> > > 
> > > It is duplication because the individual data-def statements should have
> > > any notes
> > > about implementation requirements. The duplication may even be wrong.
> > > E.g., in the module it says NACM is not required, but what if some objects
> > > have NACM requirements listed in the Security Considerations section?
> > > That is the RFC section to discuss NACM requirements.
> > > 
> > > 
> > > > For example, if a module imports ietf-netconf-nacm only for using "node-
> > > > instance-identifier" type, it is relatively uninteresting. Otherwise,
> > > > implementation of the module may just be out of question.
> > > > 
> > > > 
> > > > > to document such a complex and unrelated issue as server conformance
> > > > > requirements.
> > > > > 
> > > > > 
> > > > > > The root of this problem (and design flaw of YANG, IMO) is that
> > > > import is
> > > > > > "overloaded" with two different purposes, one of which effectively
> > > > requires
> > > > > > that
> > > > > > the imported module be also implemented, while the other doesn't.
> > > > > > 
> > > > > 
> > > > > The import-stmt is only used to map a local prefix to an external
> > > > module.
> > > > 
> > > > But one thing is using a prefix for accessing top-level types and
> > > > groupings
> > > > (i.e. stuff in YANG modules), and another thing is accessing schema
> > > > nodes, which
> > > > have to be present in the schema tree. In complicated data models, it is
> > > > not
> > > > exactly easy to figure out all these dependencies.
> > > > 
> > > > 
> > > 
> > > I do not agree these are different things.
> > > In both cases the prefix is used to determine the imported module that
> > > contains the identifier.
> > > 
> > > 
> > > > So maybe what is really overloaded are the namespace prefixes: they are
> > > > used for
> > > > addressing YANG modules, schema nodes and instances (in XPath). 
> > > > 
> > > > Lada
> > > > 
> > > 
> > > 
> > > Andy
> > >  
> > > > > This proposal to add conformance info the the import-stmt would
> > > > overload it
> > > > > with
> > > > > another purpose.
> > > > > 
> > > > > Not even a typedef is easy to classify  (e.g., leafref requires
> > > > implementation
> > > > > of a data node).
> > > > > I certainly agree that YANG conformance is poorly specified, poorly
> > > > > understood, and
> > > > > in real need of improvement. Likewise, the import-stmt is also in need
> > > > of some
> > > > > improvement
> > > > > since import-by-exact-revision is (and has always been) poorly
> > > > designed.
> > > > > 
> > > > > 
> > > > > > Lada
> > > > > > 
> > > > > > > Balazs
> > > > > 
> > > > > Andy
> > > > > 
> > > > >  
> > > > > > > -----Original Message-----
> > > > > > > From: Martin Bjorklund <mbj@tail-f.com <mailto:mbj@tail-f.com> > 
> > > > > > > Sent: Tuesday, January 7, 2020 2:38 PM
> > > > > > > To: Balázs Lengyel <balazs.lengyel@ericsson.com <mailto:balazs.lengyel@ericsson.com> >
> > > > > > > Cc: andy@yumaworks.com <mailto:andy@yumaworks.com> ; lhotka@nic.cz <mailto:lhotka@nic.cz> ; netmod@ietf.org <mailto: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 <mailto: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 <mailto: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 <mailto:lhotka@nic.cz> >
> > > > > > > > Cc: NetMod WG <netmod@ietf.org <mailto: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> 
> > > > <mailto: <mailto:%0b> 
> > > > > > > > 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>  <mailto:netmod@ietf.org <mailto:netmod@ietf.org> > 
> > > > > > > > https://www.ietf.org/mailman/listinfo/netmod
> > > > > > > > 
> > > > -- 
> > > > 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
> > > > 
> > > 
> > > 
> > > _______________________________________________
> > > netmod mailing list
> > > netmod@ietf.org <mailto:netmod@ietf.org> 
> > > https://www.ietf.org/mailman/listinfo/netmod
> >  
-- 
Ladislav Lhotka
Head, CZ.NIC Labs
PGP Key ID: 0xB8F92B08A9F76C67