Re: [netmod] removing a node from a grouping

Kent Watsen <kwatsen@juniper.net> Sat, 14 July 2018 22:46 UTC

Return-Path: <kwatsen@juniper.net>
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 AAF93130F16 for <netmod@ietfa.amsl.com>; Sat, 14 Jul 2018 15:46:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level:
X-Spam-Status: No, score=-2.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_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=juniper.net
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 Pjv3cJ2De0r9 for <netmod@ietfa.amsl.com>; Sat, 14 Jul 2018 15:46:40 -0700 (PDT)
Received: from mx0b-00273201.pphosted.com (mx0b-00273201.pphosted.com [67.231.152.164]) (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 0490C124C04 for <netmod@ietf.org>; Sat, 14 Jul 2018 15:46:39 -0700 (PDT)
Received: from pps.filterd (m0108161.ppops.net [127.0.0.1]) by mx0b-00273201.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w6EMjF73004785; Sat, 14 Jul 2018 15:46:37 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=PPS1017; bh=F4gVqiSLoXvEf0FKtmZp6KfLPXgVxrgFWC7xAiMPhec=; b=u3eGnP5WKkMhhkOB+oWSk3hM81RVBXOT/KMS9rdn78DwZnDJqZj97d6wMfIaMvz6Qxx6 OifhIzGipD32hfhx3xyP+M0L/s9EuSsG32ruEnezyyM+9uh7ZzKXSXgnhgLu/ePrO+Pa t8cZGLsPsMokGceGckKpoptgOjeuL3abw6qiVbVNDRk/vEsNh+Hb17qFBNzJABCmNUQF B+X7424kVwx9EYJZY4UzStKt2FK95bYJMwfmhPzbHtR3iFt/geDjQ+ZFqqScB7kryw2+ ZaYx4TmrU90XDWmPIQT3TGKiVb1SzMZeVH/5aBQVeNTXnmHDrAURwpXBRpi/81Wy15ug Cw==
Received: from nam03-by2-obe.outbound.protection.outlook.com (mail-by2nam03lp0049.outbound.protection.outlook.com [216.32.180.49]) by mx0b-00273201.pphosted.com with ESMTP id 2k7g9x8pux-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sat, 14 Jul 2018 15:46:37 -0700
Received: from BYAPR05MB4230.namprd05.prod.outlook.com (52.135.200.153) by BYAPR05MB4293.namprd05.prod.outlook.com (52.135.202.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.952.10; Sat, 14 Jul 2018 22:46:34 +0000
Received: from BYAPR05MB4230.namprd05.prod.outlook.com ([fe80::959d:9fbe:90e4:3cc]) by BYAPR05MB4230.namprd05.prod.outlook.com ([fe80::959d:9fbe:90e4:3cc%4]) with mapi id 15.20.0952.021; Sat, 14 Jul 2018 22:46:34 +0000
From: Kent Watsen <kwatsen@juniper.net>
To: Robert Wilton <rwilton@cisco.com>, "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] removing a node from a grouping
Thread-Index: AQHUGTztxnT5XKTefkqKIIHQ7mrEO6SLSRCAgAPKboA=
Date: Sat, 14 Jul 2018 22:46:33 +0000
Message-ID: <B1FEB2BF-5F35-47D0-AE79-517136728071@juniper.net>
References: <C16EE3E0-D7B6-486F-8224-F1CC7B224A1D@juniper.net> <80f2c076-1937-9b09-fdec-a4d4c9a16aa5@cisco.com>
In-Reply-To: <80f2c076-1937-9b09-fdec-a4d4c9a16aa5@cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/f.20.0.170309
x-originating-ip: [66.129.241.14]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; BYAPR05MB4293; 7:8LsX/KaxyBwg3koTprPh+Cgzzn12OlVefaMsk3r+tXA3/5mmHWJn3IifyTcwa05DCgoQJ2Am1Y0mivw1I7ZER/amgEqDNFSvvIPj5LZ93ef/XIQVuKrxgciQNWQzcDY0/hLREWXOiQFGKyMNkycjeAKFUi0oAE2plMLquzPBiedvs78VMBtWotsyDre/2KO9ibOtbJr9a8ALVTvegaPk8/a2N5qAGdaIrdHSCug9boOSfcba0NBiOVBmHMXoz2M1
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-correlation-id: fe19e93a-518c-4b73-1be5-08d5e9dba675
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(48565401081)(2017052603328)(7153060)(7193020); SRVR:BYAPR05MB4293;
x-ms-traffictypediagnostic: BYAPR05MB4293:
x-microsoft-antispam-prvs: <BYAPR05MB4293919D74877B4F589453BCA55F0@BYAPR05MB4293.namprd05.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(10436049006162);
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(3231311)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123562045)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:BYAPR05MB4293; BCL:0; PCL:0; RULEID:; SRVR:BYAPR05MB4293;
x-forefront-prvs: 07334CBCCD
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(396003)(39860400002)(376002)(366004)(346002)(136003)(51444003)(199004)(189003)(478600001)(6246003)(8936002)(53936002)(106356001)(25786009)(3846002)(86362001)(476003)(575784001)(36756003)(7736002)(33656002)(81166006)(83716003)(76176011)(53546011)(305945005)(81156014)(229853002)(102836004)(66066001)(6506007)(6116002)(105586002)(2906002)(2616005)(316002)(14454004)(486006)(99286004)(6306002)(8676002)(256004)(110136005)(966005)(446003)(11346002)(82746002)(58126008)(186003)(68736007)(6512007)(2501003)(6436002)(5250100002)(6486002)(5660300001)(26005)(97736004)(2900100001); DIR:OUT; SFP:1102; SCL:1; SRVR:BYAPR05MB4293; H:BYAPR05MB4230.namprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: juniper.net does not designate permitted sender hosts)
x-microsoft-antispam-message-info: /vK2XBpOVTUMLyrsC6VuEXPRr1+VeoWaBQ/Vqjiw/ft1ps1Sfo7IGAb4mt7KBu2HeoJ04A8QvblqiKBrY5e6VFREGYhWAGZmt+mg93dbu0uoK0h+5wg/QwUwGGOXfPttiFhZ+orIpoF1OCdP29vZ6ueX5Q/GGTHNVEJJv7oZBu6/HAYXuwtQYxjP0CXcQq+ql6hdKFAEHO7nY5AVboNSsqOfWxDXRi5m5CiW6cTk6eeWGtCexBJHO6Qkg2H/gJTwFN7fVVfHuwjIBour5C0wJvCJpoVm/dl7o/lKW96NsZrozmfQ/aaEekvcVgj5AnO/FAE+1gEyWQn8EJpshIR3NYLtkHWbEZFj0maQwBAKNY0=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-ID: <E9B09854A94B534CA80D70053D0E593A@namprd05.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: juniper.net
X-MS-Exchange-CrossTenant-Network-Message-Id: fe19e93a-518c-4b73-1be5-08d5e9dba675
X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Jul 2018 22:46:33.7111 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: bea78b3c-4cdb-4130-854a-1d193232e5f4
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR05MB4293
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-07-14_05:, , signatures=0
X-Proofpoint-Spam-Details: rule=outbound_spam_notspam policy=outbound_spam score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807140275
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/77DzDAHRDN6BGRcnj6_7-kkKsY8>
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: Sat, 14 Jul 2018 22:46:43 -0000

Hi Rob,

Right you are, "refine" doesn't have a "when" substatement, but "augment" does.

    grouping "bar-etc" {
      uses "foo-bar-etc" {
        augment "foo" {
          when "false()";
        }
      }
    }


The problem with splitting up groupings is that 1) it needs to be done 
beforehand and 2) it may produce "unnatural" groupings that wouldn't be
there otherwise.

Kent


===== original message =====

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 "foo" {
>          when "false()";
>        }
>      }
>    }
>
> Any better ideas?
>
> Thanks,
> Kent
>
>
>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ietf.org_mailman_listinfo_netmod&d=DwIDaQ&c=HAkYuh63rsuhr6Scbfh0UjBXeMK-ndb3voDTXcWzoCI&r=9zkP0xnJUvZGJ9EPoOH7Yhqn2gsBYaGTvjISlaJdcZo&m=n8AUR8gtF330d96dqckvx53hCdyUm5tsTzJsm6DU83U&s=hD50p0RzLVzzTnQ62nxgs256wFf7UmIczTJMf9ym_n8&e=
> .
>