Re: [yang-doctors] Question on when statment and container presence
Martin Björklund <mbj+ietf@4668.se> Fri, 22 January 2021 08:58 UTC
Return-Path: <mbj+ietf@4668.se>
X-Original-To: yang-doctors@ietfa.amsl.com
Delivered-To: yang-doctors@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1])
by ietfa.amsl.com (Postfix) with ESMTP id 522153A0B16
for <yang-doctors@ietfa.amsl.com>; Fri, 22 Jan 2021 00:58:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.123
X-Spam-Level:
X-Spam-Status: No, score=-0.123 tagged_above=-999 required=5
tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, PDS_NAKED_TO_NUMERO=1.997,
RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001,
URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key)
header.d=4668.se header.b=tSAC8z/z;
dkim=pass (2048-bit key)
header.d=messagingengine.com header.b=cdEhYI2B
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 2wYBHSg2KbHw for <yang-doctors@ietfa.amsl.com>;
Fri, 22 Jan 2021 00:58:40 -0800 (PST)
Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com
[66.111.4.25])
(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
(No client certificate requested)
by ietfa.amsl.com (Postfix) with ESMTPS id C21EB3A11BF
for <yang-doctors@ietf.org>; Fri, 22 Jan 2021 00:58:40 -0800 (PST)
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44])
by mailout.nyi.internal (Postfix) with ESMTP id D89F85C0251;
Fri, 22 Jan 2021 03:58:39 -0500 (EST)
Received: from mailfrontend2 ([10.202.2.163])
by compute4.internal (MEProxy); Fri, 22 Jan 2021 03:58:39 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=4668.se; h=date
:message-id:to:cc:subject:from:in-reply-to:references
:mime-version:content-type:content-transfer-encoding; s=fm3; bh=
qcPpQ4tljHk3vnQi3PCgcVNeaJpCNP2MTRbd59J8jKo=; b=tSAC8z/zR+D+DAIJ
HDnyYf8B6oo/RMeU2x8hbyKnP7shn2e3ffJHxeL3bVppK2/v5SiAXhOUVexXTsih
Q+nkuyyTgRr2dJ/1FGp+ZEiomvNdWW8ReWwJSgTEbVl4CR5nLFLUsuxZqQnkuwcu
OMoTNzhHQceHvFez4eUmRC6tcVTT6KZbIfmWBMiR3K2o8vIxRYEEn8LGjk/oRS8C
upGWI2YJfwrF+YU4uac0Dn9RAse3FX85FT6jMZ3GCI9x7rBtLhnnMZ16w9zZ+Kud
bs35wLP6Va+7P/KlNk72fcuQi0RQBlo2bbej/xFIE7VchJF7MzyZKHa4hXVmdeG6
/hvWoA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
messagingengine.com; h=cc:content-transfer-encoding:content-type
:date:from:in-reply-to:message-id:mime-version:references
:subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender
:x-sasl-enc; s=fm1; bh=qcPpQ4tljHk3vnQi3PCgcVNeaJpCNP2MTRbd59J8j
Ko=; b=cdEhYI2Bgin8jwHDCiZ0c7zau0+7ZkGuWElgp7DYgcQWcLmso5z6V5ZyG
4S7OL+Jgp/0I2w2O+LNGfOnoKPPcofIQp49zQ9X3jzdp08JinnJ+UeOkkbGSqd7l
N+CuDTeswg+q1dgByM39vhOWo4sFTX8QBbKhmmRa6bzDZ3i2GXf+hNasl4x9+O24
kX3Dt4ibxfA8216D766gRKk4gc27rK9O/JdCJUZkr3iB5ZlFirGZ8eKGtKbdNUZ0
CgRIFRATKw9Sj96cREKATGJHQYf/7BEzGdPoajeQVIOIMQ3i2S7ak632WrPzNAjY
WXOUG51/7ghN1k76TppX1Pq19Shfw==
X-ME-Sender: <xms:v5MKYHOntNeOsJhpC-iaD7KQTKzSJwd0cgXO5xuM26UL60fvNfEZgA>
<xme:v5MKYB-6VoYV0qyJDaA6yW5HdQSO_lir5zs7Uf2HS3K_xbcWY3XULp2BXp1EDIeUT
i0TDGsdeSf-Wct2WqY>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudehgdduvdejucetufdoteggodetrfdotf
fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
uceurghilhhouhhtmecufedttdenucenucfjughrpeffkffvuffhjghfofggtgfgsehtje
ertdertddvnecuhfhrohhmpeforghrthhinhcuuehjnphrkhhluhhnugcuoehmsghjodhi
vghtfhesgeeiieekrdhsvgeqnecuggftrfgrthhtvghrnhepjeetvdeggfeikeduffekue
duledugeeftdegkeefveffveeuieejteejleevkeetnecuffhomhgrihhnpegvgigrmhhp
lhgvrdgtohhmnecukfhppeduheekrddujeegrdegrddvudehnecuvehluhhsthgvrhfuih
iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgsjhdoihgvthhfseegieeikedr
shgv
X-ME-Proxy: <xmx:v5MKYGRxGYxtwjZCMuQQ85fDCO8dvomZO1mXUewH6PHEyEnngJDdEg>
<xmx:v5MKYLuLyAcs-7_bO-lCuZZWOG_dEu_ca3pw03IuE2axlJ-eF3ECww>
<xmx:v5MKYPdElbQJGcq-DnQ03MmE5Rx4reyZWb9QHlZjVnqP62wqsl1zwg>
<xmx:v5MKYNpxBsYfxihtAN56Uxg2MwInEaZnxbnC29bxuIoeH7NbCJY3ew>
Received: from localhost (unknown [158.174.4.215])
by mail.messagingengine.com (Postfix) with ESMTPA id C96ED108005B;
Fri, 22 Jan 2021 03:58:38 -0500 (EST)
Date: Fri, 22 Jan 2021 09:58:37 +0100 (CET)
Message-Id: <20210122.095837.1347704679180639330.id@4668.se>
To: chopps@chopps.org
Cc: yang-doctors@ietf.org
From: Martin =?iso-8859-1?Q?Bj=F6rklund?= <mbj+ietf@4668.se>
In-Reply-To: <663C5375-3BCD-4A46-944D-716BF5764E34@chopps.org>
References: <663C5375-3BCD-4A46-944D-716BF5764E34@chopps.org>
X-Mailer: Mew version 6.8 on Emacs 26.3
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/-h6VFaHejmxnW1EZs-lmpV2LGaE>
Subject: Re: [yang-doctors] Question on when statment and container presence
X-BeenThere: yang-doctors@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Email list of the yang-doctors directorate <yang-doctors.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/yang-doctors>,
<mailto:yang-doctors-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/yang-doctors/>
List-Post: <mailto:yang-doctors@ietf.org>
List-Help: <mailto:yang-doctors-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/yang-doctors>,
<mailto:yang-doctors-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 22 Jan 2021 08:58:45 -0000
Hi, Christian Hopps <chopps@chopps.org> wrote: > Hi, > > The libyang folks have made a change in their libyang2 branch. The > chnage is causing containers to be implicitly marked as presence > containers if they include a "when" statement i.e.,: > > module main { > yang-version 1.1; > namespace "http://example.com/main"; > prefix m; > > leaf afi-safi-name { > type string; > } > container ipv4-flowspec { > when "../afi-safi-name = 'ipv4-flowspec'"; > leaf flowspec-config { > type uint8; > } > } > } > > So in this case "ipv4-flowspec" is being changed as if it had a > presence statement. This is not correct. If the when evaluates to 'true', it should not be possible to delete the ipv4-flowspec container - which would be possible it if had a presence statement. /martin > > On of the authors indicated that this was supported indirectly by some > mail on netmod; however, my search is not turning anything up. > > I think this is incorrect as the presence of the container based on > the when is an "implicit" (some other leaf value is set) not > "explicit" meaning. > > Thoughts? > > Thanks, > Chris.
- [yang-doctors] Question on when statment and cont… Christian Hopps
- Re: [yang-doctors] Question on when statment and … Martin Björklund