Re: [netmod] derived-from-or-self leads to circular import

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Fri, 26 August 2016 12:23 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 39C1312D72A for <netmod@ietfa.amsl.com>; Fri, 26 Aug 2016 05:23:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.748
X-Spam-Level:
X-Spam-Status: No, score=-4.748 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.548] autolearn=ham autolearn_force=no
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 s5EkaD3HEun9 for <netmod@ietfa.amsl.com>; Fri, 26 Aug 2016 05:23:27 -0700 (PDT)
Received: from atlas3.jacobs-university.de (atlas3.jacobs-university.de [212.201.44.18]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3E8B512D742 for <netmod@ietf.org>; Fri, 26 Aug 2016 05:23:12 -0700 (PDT)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas3.jacobs-university.de (Postfix) with ESMTP id CC6EBF76; Fri, 26 Aug 2016 14:23:10 +0200 (CEST)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from atlas3.jacobs-university.de ([10.70.0.205]) by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new, port 10030) with ESMTP id H2jHYWvF1eWk; Fri, 26 Aug 2016 14:22:34 +0200 (CEST)
Received: from hermes.jacobs-university.de (hermes.jacobs-university.de [212.201.44.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hermes.jacobs-university.de", Issuer "Jacobs University CA - G01" (verified OK)) by atlas3.jacobs-university.de (Postfix) with ESMTPS; Fri, 26 Aug 2016 14:22:44 +0200 (CEST)
Received: from localhost (demetrius3.jacobs-university.de [212.201.44.48]) by hermes.jacobs-university.de (Postfix) with ESMTP id BFB3F200CA; Fri, 26 Aug 2016 14:22:32 +0200 (CEST)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius3.jacobs-university.de [212.201.44.32]) (amavisd-new, port 10024) with ESMTP id MFQNBbEns4dC; Fri, 26 Aug 2016 14:22:31 +0200 (CEST)
Received: from elstar.local (elstar.jacobs.jacobs-university.de [10.50.231.133]) by hermes.jacobs-university.de (Postfix) with ESMTP id 5A027200F6; Fri, 26 Aug 2016 14:22:31 +0200 (CEST)
Received: by elstar.local (Postfix, from userid 501) id 5936D3C4ED96; Fri, 26 Aug 2016 14:22:29 +0200 (CEST)
Date: Fri, 26 Aug 2016 14:22:29 +0200
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Martin Bjorklund <mbj@tail-f.com>
Message-ID: <20160826122229.GA32769@elstar.local>
Mail-Followup-To: Martin Bjorklund <mbj@tail-f.com>, bart.bogaert@nokia.com, netmod@ietf.org
References: <D62E05768DBAFF42A72B9F4954476D65010EA9AC29@FR712WXCHMBA09.zeu.alcatel-lucent.com> <20160729133257.GA3317@elstar.local> <20160826.124304.1561054177442678773.mbj@tail-f.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <20160826.124304.1561054177442678773.mbj@tail-f.com>
User-Agent: Mutt/1.6.0 (2016-04-01)
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/jlp0gDr6aR4y8jkMX_eBeY7lLis>
Cc: netmod@ietf.org
Subject: Re: [netmod] derived-from-or-self leads to circular import
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
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: Fri, 26 Aug 2016 12:23:29 -0000

On Fri, Aug 26, 2016 at 12:43:04PM +0200, Martin Bjorklund wrote:
> Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> wrote:
> > On Fri, Jul 29, 2016 at 12:50:13PM +0000, Bogaert, Bart (Nokia - BE) wrote:
> > 
> > [...]
> >  
> > > In order to correctly compile (using confdc) we also need to import
> > > iana-entity for the identities defined in there.  However this is leading a
> > > circular dependency:
> > > 
> > > 1.       Iana-entity imports ietf-entity (to 'resolve'
> > > entity-physical-class)
> > > 
> > > 2.       Ietf-entity imports iana-entity (to obtain the indentities defined
> > > in there)
> > > 
> > > One way to solve this is to move the definition of entity-physical-class
> > > from ietf-entity to iana-entity which would resolve the fact that
> > > iana-entity requires an import of ietf-entity (ietf-entity needs to import
> > > iana-entity anyhow, so it can also pick the typedef from the same module
> > > too).
> > 
> > I think moving the definition of entity-physical-class into
> > iana-entity makes sense.
> 
> Ok.  It feels a bit backwards to me though, but I can see the value of
> having the iana module self-contained.
>

Well, it may look backwards if people want to reuse the base identity
but none of the IANA assigned identities - but then it might be good
if people at least look at IANA assigned identities. Or are there other
reasons why you think this may be looking 'backwards'?

/js

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