Re: [netmod] xpath for must statements
Martin Bjorklund <mbj@tail-f.com> Wed, 08 August 2018 11:31 UTC
Return-Path: <mbj@tail-f.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 9F914128C65 for <netmod@ietfa.amsl.com>; Wed, 8 Aug 2018 04:31:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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 qPE_yC4KXEZp for <netmod@ietfa.amsl.com>; Wed, 8 Aug 2018 04:31:47 -0700 (PDT)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id E9216128B14 for <netmod@ietf.org>; Wed, 8 Aug 2018 04:31:46 -0700 (PDT)
Received: from localhost (h-80-27.A165.priv.bahnhof.se [212.85.80.27]) by mail.tail-f.com (Postfix) with ESMTPSA id D89121AE018A; Wed, 8 Aug 2018 13:31:45 +0200 (CEST)
Date: Wed, 08 Aug 2018 13:31:45 +0200
Message-Id: <20180808.133145.603038015628507205.mbj@tail-f.com>
To: acee@cisco.com
Cc: netmod@ietf.org
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <6BAF8353-6863-4B26-AB65-88CFBFC85E77@cisco.com>
References: <3FBE6E06-3C42-4CFE-9A4C-FAC55572901C@cisco.com> <20180808.094249.655098716605272274.mbj@tail-f.com> <6BAF8353-6863-4B26-AB65-88CFBFC85E77@cisco.com>
X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset="utf-8"
Content-Transfer-Encoding: base64
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/4gOCpuk4wgLrPh3NsO9cZlHJBsY>
Subject: Re: [netmod] xpath for must statements
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: Wed, 08 Aug 2018 11:31:49 -0000
"Acee Lindem (acee)" <acee@cisco.com> wrote: > Thanks Martin - see inline. > > On 8/8/18, 3:43 AM, "Martin Bjorklund" <mbj@tail-f.com> wrote: > > Hi, > > "Acee Lindem \(acee\)" <acee=40cisco.com@dmarc.ietf.org> wrote: > > Is it possible to indicate that choice statement must be specified > > in a YANG 1.1 “must” clause w/o specifying every case? > > Do you mean that you to ensure that a case is always configured? If > so, mark the choice as "mandatory true". It can't be done with an > XPath expression. > > It's not that easy since at the least the choice or another leaf > must be specified. Maybe you can share the model (or a simplified version) in order to illustrate the problem? /martin > I found that the choice and case identifiers are > not part of the Xpath. Even after rereading some sections of > RFC7950, this wasn't intuitive. > > Thanks, > Acee > > > /martin > > > > > Similarly, it is there a way specify that a container cannot be empty in “must” clause? > > Thanks, > > Acee > >
- [netmod] xpath for must statements Acee Lindem (acee)
- Re: [netmod] xpath for must statements Ivory, William
- Re: [netmod] xpath for must statements Martin Bjorklund
- Re: [netmod] xpath for must statements Martin Bjorklund
- Re: [netmod] xpath for must statements Ivory, William
- Re: [netmod] xpath for must statements Acee Lindem (acee)
- Re: [netmod] xpath for must statements Acee Lindem (acee)
- Re: [netmod] xpath for must statements Martin Bjorklund
- Re: [netmod] xpath for must statements Acee Lindem (acee)