Re: [netmod] removing a node from a grouping

Robert Wilton <rwilton@cisco.com> Thu, 12 July 2018 08:53 UTC

Return-Path: <rwilton@cisco.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 74C3C130E09 for <netmod@ietfa.amsl.com>; Thu, 12 Jul 2018 01:53:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.51
X-Spam-Level:
X-Spam-Status: No, score=-14.51 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, SPF_PASS=-0.001, T_DKIMWL_WL_HIGH=-0.01, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.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 tZGj-GmVAL9Y for <netmod@ietfa.amsl.com>; Thu, 12 Jul 2018 01:53:18 -0700 (PDT)
Received: from aer-iport-2.cisco.com (aer-iport-2.cisco.com [173.38.203.52]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2F1571294D0 for <netmod@ietf.org>; Thu, 12 Jul 2018 01:53:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1263; q=dns/txt; s=iport; t=1531385598; x=1532595198; h=subject:to:references:from:message-id:date:mime-version: in-reply-to:content-transfer-encoding; bh=uJo00PSRgZSKviYCf+IVw4by+KYTXp/4LQvWL+UAW0g=; b=AALTa0F5TtgbnyXl3pFJMH6EPbH01ZI3eSvawhnu+fyQKtDMtC7LozSZ 2YzwIMuwsd8dCXvh/z4PQ3OdTmYzg9cA+uaDi2hnp9uJZSAo5Vt5bkWh0 cXd25/2sXwCu2qmiZu9P8IGfi0TDmnY5+W7SPWq4KTHh+vU/1jSB2Nt+L c=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0B2AQA/Fkdb/xbLJq1cGQEBAQEBAQEBAQEBAQcBAQEBAYQsbRIog3qIY405JJcsCxgLhANGAoJkOBQBAgEBAgEBAm0cDIU3AQEEAQEhDwEFNhsLDgoCAiYCAicwBgEMBgIBAReDBQGBfw+pPIEuhFuFZAWBC4lKP4E3DIJegxkBAYRhglUCmVcJjyEGiBmFSIw+hVSBWCGBUjMaCBsVO4JpixWFPz4wjFgBAQ
X-IronPort-AV: E=Sophos;i="5.51,342,1526342400"; d="scan'208";a="5123008"
Received: from aer-iport-nat.cisco.com (HELO aer-core-1.cisco.com) ([173.38.203.22]) by aer-iport-2.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Jul 2018 08:53:15 +0000
Received: from [10.63.23.105] (dhcp-ensft1-uk-vla370-10-63-23-105.cisco.com [10.63.23.105]) by aer-core-1.cisco.com (8.15.2/8.15.2) with ESMTP id w6C8rFpb023191; Thu, 12 Jul 2018 08:53:15 GMT
To: Kent Watsen <kwatsen@juniper.net>, "netmod@ietf.org" <netmod@ietf.org>
References: <C16EE3E0-D7B6-486F-8224-F1CC7B224A1D@juniper.net>
From: Robert Wilton <rwilton@cisco.com>
Message-ID: <80f2c076-1937-9b09-fdec-a4d4c9a16aa5@cisco.com>
Date: Thu, 12 Jul 2018 09:53:15 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.0
MIME-Version: 1.0
In-Reply-To: <C16EE3E0-D7B6-486F-8224-F1CC7B224A1D@juniper.net>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/W1rIIjzAV7sdNW4AwkMA7zv7eE8>
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: Thu, 12 Jul 2018 08:53:21 -0000

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.

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
> .
>