Re: [netmod] Interaction of 'when' and 'default' statements

William Ivory <wivory@Brocade.com> Wed, 22 March 2017 17:56 UTC

Return-Path: <wivory@Brocade.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 16071129B77 for <netmod@ietfa.amsl.com>; Wed, 22 Mar 2017 10:56:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.601
X-Spam-Level:
X-Spam-Status: No, score=-2.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-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 Fsw9mRlzlBkp for <netmod@ietfa.amsl.com>; Wed, 22 Mar 2017 10:55:59 -0700 (PDT)
Received: from mx0a-000f0801.pphosted.com (mx0a-000f0801.pphosted.com [IPv6:2620:100:9001:7a::1]) (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 92946127A91 for <netmod@ietf.org>; Wed, 22 Mar 2017 10:55:59 -0700 (PDT)
Received: from pps.filterd (m0000542.ppops.net [127.0.0.1]) by mx0a-000f0801.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v2MHlM8Z029472; Wed, 22 Mar 2017 10:55:57 -0700
Received: from brmwp-exmb11.corp.brocade.com ([208.47.132.227]) by mx0a-000f0801.pphosted.com with ESMTP id 29baajeh2b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 22 Mar 2017 10:55:57 -0700
Received: from EMEAWP-EXMB12.corp.brocade.com (172.29.11.86) by BRMWP-EXMB11.corp.brocade.com (172.16.59.77) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Wed, 22 Mar 2017 11:55:54 -0600
Received: from EMEAWP-EXMB12.corp.brocade.com (172.29.11.86) by EMEAWP-EXMB12.corp.brocade.com (172.29.11.86) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Wed, 22 Mar 2017 18:55:52 +0100
Received: from EMEAWP-EXMB12.corp.brocade.com ([fe80::44d8:98be:88a6:417a]) by EMEAWP-EXMB12.corp.brocade.com ([fe80::44d8:98be:88a6:417a%23]) with mapi id 15.00.1210.000; Wed, 22 Mar 2017 18:55:52 +0100
From: William Ivory <wivory@Brocade.com>
To: Martin Bjorklund <mbj@tail-f.com>
CC: "netmod@ietf.org" <netmod@ietf.org>, Nick Brown <brownn@Brocade.com>
Thread-Topic: [netmod] Interaction of 'when' and 'default' statements
Thread-Index: AdKjMZ0ImM/a65bBTgeHa23x/dyvH///9jcA///vxyA=
Date: Wed, 22 Mar 2017 17:55:31 +0000
Deferred-Delivery: Wed, 22 Mar 2017 17:52:25 +0000
Message-ID: <fbb634da88914796aaa21ce5c5cb924e@EMEAWP-EXMB12.corp.brocade.com>
References: <ae8d8d4e64e34dc8bb21fac7d90eb2c0@EMEAWP-EXMB12.corp.brocade.com> <20170322.185242.1479962682961917887.mbj@tail-f.com>
In-Reply-To: <20170322.185242.1479962682961917887.mbj@tail-f.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [172.27.212.188]
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-03-22_15:, , signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1702020001 definitions=main-1703220152
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/KpEa5ZpgFouGO69yDhjrpf9NNYk>
Subject: Re: [netmod] Interaction of 'when' and 'default' statements
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: Wed, 22 Mar 2017 17:56:01 -0000

Hi Martin,

Thanks.  Can you point me at the part of RFC 6020 that explicitly states that 'when' wins over 'default'?

William

-----Original Message-----
From: Martin Bjorklund [mailto:mbj@tail-f.com] 
Sent: 22 March 2017 17:53
To: William Ivory <wivory@Brocade.com>
Cc: netmod@ietf.org; Nick Brown <brownn@Brocade.com>
Subject: Re: [netmod] Interaction of 'when' and 'default' statements

William Ivory <wivory@Brocade.com> wrote:
> Hi,
> 
> I'm looking for clarification of the 'when' and 'default' statements 
> on a leaf.  For example, if a leaf has a 'default', can it also have a 
> 'when' statement that could cause it to disappear if the 'when'
> condition evaluates to false?

Yes, and in that case the default doesn't apply.

> Section 8.3 or RFC 6020 isn't clear on how evaluation of constraints 
> should be done here, and neither the section on the 'when' statement 
> nor the 'default' section have any cross-references.

If the "when" expression evaluates to false, it's like if the whole node doesn't exist.  A client can't set it etc.


/martin