Re: [netmod] Augmenting an unimplemented module
Ladislav Lhotka <lhotka@nic.cz> Thu, 09 February 2017 14:03 UTC
Return-Path: <lhotka@nic.cz>
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 9DBCE129F30 for <netmod@ietfa.amsl.com>; Thu, 9 Feb 2017 06:03:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, URIBL_BLOCKED=0.001] 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 xvAJ5DzGt8gP for <netmod@ietfa.amsl.com>; Thu, 9 Feb 2017 06:03:06 -0800 (PST)
Received: from trail.lhotka.name (trail.lhotka.name [77.48.224.143]) by ietfa.amsl.com (Postfix) with ESMTP id 6EBEF129F29 for <netmod@ietf.org>; Thu, 9 Feb 2017 06:03:06 -0800 (PST)
Received: from localhost (unknown [195.113.220.115]) by trail.lhotka.name (Postfix) with ESMTPSA id 349A6182138E; Thu, 9 Feb 2017 15:02:52 +0100 (CET)
From: Ladislav Lhotka <lhotka@nic.cz>
To: Christian Hopps <chopps@chopps.org>, Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
In-Reply-To: <87k2971bkd.fsf@chopps.org>
References: <87zii3tmtl.fsf@chopps.org> <20170203135902.GA86692@elstar.local> <87k2971bkd.fsf@chopps.org>
Date: Thu, 09 Feb 2017 15:03:02 +0100
Message-ID: <m21sv75und.fsf@nic.cz>
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/6Cm1b4vdCMU6MXKDm6gd8Ii_hSk>
Cc: "netmod@ietf.org" <netmod@ietf.org>
Subject: Re: [netmod] Augmenting an unimplemented module
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.17
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, 09 Feb 2017 14:03:08 -0000
Christian Hopps <chopps@chopps.org> writes: > Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> writes: > >> On Fri, Feb 03, 2017 at 08:40:06AM -0500, Christian Hopps wrote: >>> >>> Is it allowed for a server to implement a module that augments another >>> module that it does not implement? My thinking was that the augment >>> would simply not be implemented in this case. Is that true or must the >>> server implement any and all augmented modules referenced by a module? >>> >> >> There are modules that only consists of augmentations. It would be >> really odd if an implementation claims to have implemented such a >> module without implementing the module that has been augmented. For >> example, it would be odd to claim an implementation of ietf-ip without >> implementing ietf-interfaces. >> >> I think the proper thing to do is to write explicit deviations if a >> portion of a module is not implemented (regardless whether the portion >> is an augmentation or not). > > Well sure it's odd for an augmenting only module. In my case I'm adding > a feature to another module that is not required for my module to be > useful. My module is quite simple, conversely the module it augments > (yang library) isn't. I didn't want to force the implementer to have to > implement yang library, but I do want to add to it if they do. > > In any case is there anything explicit in the standard to indicate that > a deviation must be indicated if an augmented module is not present? RFC 7950 says in sec. 5.6.5: If a server implements a module A that imports a module B, and A uses any node from B in an "augment" or "path" statement that the server supports, then the server MUST implement a revision of module B that has these nodes defined. This is regardless of whether module B is imported by revision or not. Lada > Might be nice to have an ability to tag the augmentation as optional. > > Thanks, > Chris. > >> >> /js > _______________________________________________ > netmod mailing list > netmod@ietf.org > https://www.ietf.org/mailman/listinfo/netmod -- Ladislav Lhotka, CZ.NIC Labs PGP Key ID: 0xB8F92B08A9F76C67
- [netmod] Augmenting an unimplemented module Christian Hopps
- Re: [netmod] Augmenting an unimplemented module Juergen Schoenwaelder
- Re: [netmod] Augmenting an unimplemented module Christian Hopps
- Re: [netmod] Augmenting an unimplemented module Juergen Schoenwaelder
- Re: [netmod] Augmenting an unimplemented module Andy Bierman
- Re: [netmod] Augmenting an unimplemented module Lou Berger
- Re: [netmod] Augmenting an unimplemented module Juergen Schoenwaelder
- Re: [netmod] Augmenting an unimplemented module Christian Hopps
- Re: [netmod] Augmenting an unimplemented module Juergen Schoenwaelder
- Re: [netmod] Augmenting an unimplemented module Andy Bierman
- Re: [netmod] Augmenting an unimplemented module Balazs Lengyel
- Re: [netmod] Augmenting an unimplemented module Christian Hopps
- Re: [netmod] Augmenting an unimplemented module Juergen Schoenwaelder
- Re: [netmod] Augmenting an unimplemented module Martin Bjorklund
- Re: [netmod] Augmenting an unimplemented module Juergen Schoenwaelder
- Re: [netmod] Augmenting an unimplemented module Lou Berger
- Re: [netmod] Augmenting an unimplemented module Christian Hopps
- Re: [netmod] Augmenting an unimplemented module Christian Hopps
- Re: [netmod] Augmenting an unimplemented module Juergen Schoenwaelder
- Re: [netmod] Augmenting an unimplemented module Martin Bjorklund
- Re: [netmod] Augmenting an unimplemented module Martin Bjorklund
- Re: [netmod] Augmenting an unimplemented module Juergen Schoenwaelder
- Re: [netmod] Augmenting an unimplemented module Ladislav Lhotka