Re: [netmod] augment and if-feature

Andy Bierman <andy@yumaworks.com> Thu, 16 March 2017 16:39 UTC

Return-Path: <andy@yumaworks.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 CC2891296B3 for <netmod@ietfa.amsl.com>; Thu, 16 Mar 2017 09:39:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level:
X-Spam-Status: No, score=-2.6 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_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20150623.gappssmtp.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 3B6XrOnQolcu for <netmod@ietfa.amsl.com>; Thu, 16 Mar 2017 09:39:19 -0700 (PDT)
Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com [IPv6:2a00:1450:400c:c09::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6635312968F for <netmod@ietf.org>; Thu, 16 Mar 2017 09:39:19 -0700 (PDT)
Received: by mail-wm0-x22a.google.com with SMTP id u132so39915018wmg.0 for <netmod@ietf.org>; Thu, 16 Mar 2017 09:39:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=2iSa4vXeT6tRvfifpFREAaC6WP2QgfJ5TTztmgfa8XM=; b=hdlsf449KK1KqXxyVQdaB7N9yB9p8iDeZ9E/v5kYq8IWLluIR7732HRLxS21zwH1Y/ mDdcpjUwiX5HvqWQURdUh09PCGiQr86NA3yFaeFt42ikrpVz2v77qEx1Hddf9cRljqif GhNwdYk7xUxFSjgRlMrQP0eY1ISDc1lCTqZc0gfgFTrEHDPvDQcDhjqyeYzVOqgLulUS Yz25KHjv///Ea01QmLBrcOMIUMpvfrDKjwKbDEdhfIDkXtstgM1ox8+ZQRsiHiJgwEd9 e30HQdAnDZ1kOAdrogb4hnlsvvYvy++IgPbp8TMXX6MZ70oZnWJ9u8pRaxROlNYIfbDf ShHA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=2iSa4vXeT6tRvfifpFREAaC6WP2QgfJ5TTztmgfa8XM=; b=kHAz5nMtfGDuFMG8m8vf0AenxFqYRpqclnblrXZJ0DXalJxvnvH81IvwpxEBpMG/BN tttOqHXqmIAC+qQZ3HQweFURC5ehd229FlxFw3p5Gqtq3Hxrq2XL0tpJXjO1yAE5om5S DSUKd66SqkA2JMzr2kYAP0Coe8cCGw7XNm54hQSzGcGvdE5uuR46ETh6Dt8cxP/Xlcq5 a5crniwVIrcGVG4HnZTP6wPecHLk9MWju5ih5QJNaRtf8PVcvRjEIsHvjtQQhPg5SPjz KwSzdy8PcW30SGeWmQ2c1kZtAYqtXXw1gNgJ3WxXx+vVOjU7CQbdlv8lITo2hvfK6SFv UrXg==
X-Gm-Message-State: AFeK/H0pN8FO09RZb9VhCOANwlslmMPb3BK4GXsQrE2owsAG1CK0sMxPG2saeUjCYpJ8XFAJRs8fTQxWA6CQJA==
X-Received: by 10.28.194.7 with SMTP id s7mr24335506wmf.136.1489682357922; Thu, 16 Mar 2017 09:39:17 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.223.166.37 with HTTP; Thu, 16 Mar 2017 09:39:17 -0700 (PDT)
In-Reply-To: <87efxx1cty.fsf@hobgoblin.ariadne.com>
References: <ef923b5e-8557-c6d3-8b10-e103cf8d38de@cisco.com> <87efxx1cty.fsf@hobgoblin.ariadne.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Thu, 16 Mar 2017 09:39:17 -0700
Message-ID: <CABCOCHRUtMascP9=e=BZfoyHFYLHeZuZLRKEEq-XF9A7849h9w@mail.gmail.com>
To: "Dale R. Worley" <worley@ariadne.com>
Cc: Robert Wilton <rwilton@cisco.com>, "netmod@ietf.org" <netmod@ietf.org>, JOEY BOYD <joey.boyd@adtran.com>
Content-Type: multipart/alternative; boundary="001a1148f862c5dcb6054adbb3e8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/wRMDV6Sv-Fyc8oWTBxWLcyrU4VY>
Subject: Re: [netmod] augment and if-feature
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.22
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, 16 Mar 2017 16:39:22 -0000

On Thu, Mar 16, 2017 at 8:05 AM, Dale R. Worley <worley@ariadne.com> wrote:

> Robert Wilton <rwilton@cisco.com> writes:
> > It isn't just any if-feature on the container that is being augmented
> > that needs to be considered.  You would have to consider all if-feature
> > statements by walking up the augmented node's ancestors to the top of
> > the tree and combine them, or have multiple if-feature statements.
>
> Yes, I would expect that.
>
> > Further, the 7950 YANG update rules allow for the augmented module to be
> > revised and some of those if-feature statements to be subsequently
> > removed.  If the augmenting module had restated the if-feature
> > conditions then this would probably leave the augmenting module
> > unintentionally out of sync with the module that it is augmenting.
>
> It's an interesting sort of out-of-sync, though, as nothing would be
> *incorrect*.  With some combinations of features, the augmented node
> would have the agumentation and with some, it would not.  But it seems
> to me that is quite OK, since whatever depends on the presence of the
> augmentation (e.g., client logic or XPath expressions in the
> augmentation) only expects the augmentation to be there if the
> additional feature is present.
>


YANG does not do a great job of separating conformance from conditional
schema nodes.
The if-feature-stmt does not say false means the conformance requirement is
removed.
It says the schema node is removed.  This means a server cannot pick some
nodes
from a YANG feature. The schema tree has all or none (of the nodes marked
with this if-feature).

This distinction may be important, especially if one tries to reconcile the
"always exists" property
of NP-containers with if-feature. If there are no semantics for an
NP-container then how
can it be included or excluded from the conformance model or the
implementation?
Maybe when-stmt and if-feature-stmt on an NP container really just impacts
the descendants,
not the NP-container itself.



> Dale
>

Andy


>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
>