Re: [netmod] removing a node from a grouping

Ladislav Lhotka <lhotka@nic.cz> Tue, 17 July 2018 01:52 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 68A9E130EBD for <netmod@ietfa.amsl.com>; Mon, 16 Jul 2018 18:52:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7
X-Spam-Level:
X-Spam-Status: No, score=-7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nic.cz
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 eTUAHEyHoQxn for <netmod@ietfa.amsl.com>; Mon, 16 Jul 2018 18:52:34 -0700 (PDT)
Received: from mail.nic.cz (mail.nic.cz [217.31.204.67]) (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 0E8D2130ECA for <netmod@ietf.org>; Mon, 16 Jul 2018 18:52:32 -0700 (PDT)
Received: from birdie (unknown [IPv6:2001:67c:1232:144:1a4f:a84b:2bfd:c611]) by mail.nic.cz (Postfix) with ESMTPSA id 558B360121 for <netmod@ietf.org>; Tue, 17 Jul 2018 03:52:29 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1531792349; bh=wfI5O0xroF0B3Gr/4XTVZOss2Gr9LI9dMlZA6t+qzbk=; h=From:To:Date; b=UKCj/AtVqzVBHTaZsOaTRqAsruBY7a4pbhqTcMvXdVo5XsurmpCkMo2VK8DMDeAbQ E+aUYuOtUTb1hxACuMX9IMp9ZCKNimuDUtHizXNi5rDo1lzGH5El779lQxphlHFacF SSLVbgP1DEqIFr0pISYrQaosZf15Nx8bpP+/nWPo=
Message-ID: <d0c4242b2e9365be15afc2adaf485870d1006e68.camel@nic.cz>
From: Ladislav Lhotka <lhotka@nic.cz>
To: netmod@ietf.org
Date: Tue, 17 Jul 2018 03:52:28 +0200
In-Reply-To: <ecf87f89-5ca1-fa0b-074a-3356a5249a1b@cisco.com>
References: <C16EE3E0-D7B6-486F-8224-F1CC7B224A1D@juniper.net> <80f2c076-1937-9b09-fdec-a4d4c9a16aa5@cisco.com> <878t6bcq8j.fsf@nic.cz> <ecf87f89-5ca1-fa0b-074a-3356a5249a1b@cisco.com>
Organization: CZ.NIC
Content-Type: text/plain; charset="UTF-8"
X-Mailer: Evolution 3.28.3
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: clamav-milter 0.99.2 at mail
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/ziFdQ_Rc5EB0GnQPIa_XSG_W5lQ>
Subject: Re: [netmod] removing a node from a grouping
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.27
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 Jul 2018 01:52:38 -0000

On Mon, 2018-07-16 at 09:33 -0400, Robert Wilton wrote:
> Hi Lada,
> 
> On 16/07/2018 08:35, Ladislav Lhotka wrote:
> > Robert Wilton <rwilton=40cisco.com@dmarc.ietf.org> writes:
> > 
> > > Hi Kent,
> > > 
> > > I'm not sure that sec 7.13.2 of 7950 allows refine to add a when 
> > > statement, although an equivalent solution would be refine it with an 
> > > if-feature statement for a feature that is never enabled.
> > 
> > Neither "when" nor "if-feature" is permitted as a substatement of
> > "refine".
>  My reading of 7950, is that you are allowed to refine a node to add an "if-
> feature".
> 
> RFC 7950, section 7.13.2:
> 
> The following refinements can be done:
> 
> ....
> 
>    o  A leaf, leaf-list, list, container, choice, case, anydata, or
>       anyxml node may get additional "if-feature" expressions.

Oh yes, you are right, I looked into the ABNF and failed to see

*if-feature-stmt

Sorry, Lada

> 
> Thanks,
> Rob
> 
> > Lada
> > 
> > > Ideally, I think that the groupings would be split up, so that they 
> > > build on each other.
> > > 
> > >    grouping "foo" {
> > >      container-or-leaf "foo" { ... }
> > >    }
> > > 
> > >    grouping "bar-etc" {
> > >      container-or-leaf "bar" { ... }
> > >      ...  // the "etc" ;)
> > >    }
> > > 
> > >    grouping "foo-bar-etc" {
> > >      grouping "foo";
> > >      grouping "bar-etc";
> > >    }
> > > 
> > > Thanks,
> > > Rob
> > > 
> > > On 11/07/2018 18:30, Kent Watsen wrote:
> > > > Say there is:
> > > > 
> > > >    grouping "foo-bar-etc" {
> > > >      container-or-leaf "foo" { ... }
> > > >      container-or-leaf "bar" { ... }
> > > >      ...  // the "etc" ;)
> > > >    }
> > > > 
> > > > And the goal is to use the grouping sans the "foo" node.
> > > > Can a "when" statement that always evaluates to "false"
> > > > do it?
> > > > 
> > > >    grouping "bar-etc" {
> > > >      uses "foo-bar-etc" {
> > > >        refine "listen" {
> > > >          when "false()";
> > > >        }
> > > >      }
> > > >    }
> > > > 
> > > > Any better ideas?
> > > > 
> > > > Thanks,
> > > > Kent
> > > > 
> > > > 
> > > > 
> > > > _______________________________________________
> > > > netmod mailing list
> > > > netmod@ietf.org
> > > > https://www.ietf.org/mailman/listinfo/netmod
> > > > ..
> > > > 
> > > 
> > > _______________________________________________
> > > netmod mailing list
> > > netmod@ietf.org
> > > https://www.ietf.org/mailman/listinfo/netmod
>  
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
-- 
Ladislav Lhotka
Head, CZ.NIC Labs
PGP Key ID: 0xB8F92B08A9F76C67