Re: [netmod] Does defining a feature require the module be implemented?

Kent Watsen <kent+ietf@watsen.net> Tue, 17 May 2022 18:03 UTC

Return-Path: <01000180d330cb1d-a1fe63b1-513b-4cba-9c0d-3ea70bf1a0e6-000000@amazonses.watsen.net>
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 7495BC15E40A for <netmod@ietfa.amsl.com>; Tue, 17 May 2022 11:03:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=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=amazonses.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CGelwVpfzlnX for <netmod@ietfa.amsl.com>; Tue, 17 May 2022 11:03:54 -0700 (PDT)
Received: from a8-33.smtp-out.amazonses.com (a8-33.smtp-out.amazonses.com [54.240.8.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1D38AC14F6EC for <netmod@ietf.org>; Tue, 17 May 2022 11:03:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1652810632; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date:In-Reply-To:Cc:To:References:Feedback-ID; bh=4yozZoC/0AroTCAlHszqcfUkMlLB6xb/QGI8cf4Vem4=; b=ZA2JHZfK0IHbemtHvvvWtONallTa9+qI8eUdqmRGt38AIvqoyY5cJk8yf1RnIERx cDVr5dPk6GJbUwLwOb0nkJRYZzGI3ycEULA4ZXIpJmwYvW2TLYhZKE8V/1sJBNYNLrG rCoUGUenBjOmoOdXgDaVtg84QxLDTXHrxSfiuE40=
From: Kent Watsen <kent+ietf@watsen.net>
Message-ID: <01000180d330cb1d-a1fe63b1-513b-4cba-9c0d-3ea70bf1a0e6-000000@email.amazonses.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_91C2BA0B-9DDE-4FDF-A159-5E401C247AB4"
Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.60.0.1.1\))
Date: Tue, 17 May 2022 18:03:52 +0000
In-Reply-To: <CABCOCHR29ZO3t-JzY_sLb-z-CC-CTMTDxHZq_B4JwgnFyJOorQ@mail.gmail.com>
Cc: Robert Varga <nite@hq.sk>, Michal Vasko <mvasko@cesnet.cz>, "netmod@ietf.org" <netmod@ietf.org>
To: Andy Bierman <andy@yumaworks.com>
References: <01000180a9eb37cb-85b9c576-c1eb-425a-b42c-b3cabe548fbb-000000@email.amazonses.com> <9ba4be2a-a9f4-8940-d470-efa385a2cb52@cesnet.cz> <01000180bdf26740-3d7da48c-9c93-4123-9298-161a294988b1-000000@email.amazonses.com> <4754acfc-8fa0-ad2b-52ad-36302c5aada9@hq.sk> <CABCOCHR29ZO3t-JzY_sLb-z-CC-CTMTDxHZq_B4JwgnFyJOorQ@mail.gmail.com>
X-Mailer: Apple Mail (2.3693.60.0.1.1)
Feedback-ID: 1.us-east-1.DKmIRZFhhsBhtmFMNikgwZUWVrODEw9qVcPhqJEI2DA=:AmazonSES
X-SES-Outgoing: 2022.05.17-54.240.8.33
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/9jwf_xMR6F3IYyREHC-q0l3mJA0>
Subject: Re: [netmod] Does defining a feature require the module be implemented?
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.34
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, 17 May 2022 18:03:56 -0000

Hi Andy,

Thanks for your response, but I'm having trouble parsing it.  At first I thought it was just me, but I asked someone else and they said the same.  Can you state either:

	1) a module MUST be implemented in order for its features to be defined.
	2) feature-defintion and module-implementation are orthogonal.

Is there a normative definition you can point to, or are we working backwards from YANG Library (but note that the two versions of YANG Library enabled it differently).

Thanks,
Kent



> On May 13, 2022, at 12:04 PM, Andy Bierman <andy@yumaworks.com> wrote:
> 
> 
> 
> On Fri, May 13, 2022 at 8:49 AM Robert Varga <nite@hq.sk <mailto:nite@hq.sk>> wrote:
> On 13/05/2022 17:03, Kent Watsen wrote:
> > True, the current YANG Library structure allows features to be declared 
> > only for implemented modules, but I'm unsure how intentional that was.
> > 
> > We always talk about how a module needs to be "implemented" in order for 
> > its Identities to be defined, but we don't ever talk about the same 
> > being true for Features.
> > 
> > It seems that, if this is the case, there should be a note somewhere 
> > about features used in "grouping" statements and hence the 
> > exporting-module must be "implemented" for the grouping to be used as 
> > intended.
> > 
> > These sections from RFC 8407 don't say anything about it:
> > 
> >   * 4.13. Reusable Groupings
> >     <https://datatracker.ietf.org/doc/html/rfc8407#section-4.13 <https://datatracker.ietf.org/doc/html/rfc8407#section-4.13>>
> >   * 4.17.  Feature Definitions
> >     <https://datatracker.ietf.org/doc/html/rfc8407#section-4.17 <https://datatracker.ietf.org/doc/html/rfc8407#section-4.17>>
> 
> Right, I think we need to first clarify what RFC8525's:
> 
> >            "An entry in this list indicates that the server imports
> >             reusable definitions from the specified revision of the
> >             module but does not implement any protocol-accessible
> >             objects from this revision.
> 
> "reusable definition" seems to be an under-defined term. I think the 
> intent is to cover not only groupings, but also typedefs and extensions.
> 
> 
> 
> I thought this issue was obvious and already settled with the iana-crypt-hash module.
> There are features related to the server implementation of data nodes
> that use the crypt-hash typedef.
> 
> We list iana-crypt-hash (or any module that has features) in the implemented modules.
> The client needs to know this info and that is the only way to do it.
> 
> I think these should also include identities and features -- but that 
> opens up quite a can of worms in terms of what a 'supported feature' is:
> - is it tied to a particular revision or does it apply to all revisions?
> - is it a property of imported or (ultimante) importing module?
> 
> Regards,
> Robert
> 
> Andy
>  
> _______________________________________________
> netmod mailing list
> netmod@ietf.org <mailto:netmod@ietf.org>
> https://www.ietf.org/mailman/listinfo/netmod <https://www.ietf.org/mailman/listinfo/netmod>