Re: [netmod] Query about must statement syntax

Martin Bjorklund <mbj@tail-f.com> Tue, 07 January 2020 11:43 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 C6241120072 for <netmod@ietfa.amsl.com>; Tue, 7 Jan 2020 03:43:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, 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 cuZDjq1cEZ1K for <netmod@ietfa.amsl.com>; Tue, 7 Jan 2020 03:43:16 -0800 (PST)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id 45EAE120026 for <netmod@ietf.org>; Tue, 7 Jan 2020 03:43:16 -0800 (PST)
Received: from localhost (unknown [173.38.220.41]) by mail.tail-f.com (Postfix) with ESMTPSA id 5027B1AE018C; Tue, 7 Jan 2020 12:43:13 +0100 (CET)
Date: Tue, 07 Jan 2020 12:42:36 +0100 (CET)
Message-Id: <20200107.124236.2150818227881781740.mbj@tail-f.com>
To: william.ivory@intl.att.com
Cc: netmod@ietf.org
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <5dd9acc04237a6160c93da52bcbe1330834616c7.camel@intl.att.com>
References: <5dd9acc04237a6160c93da52bcbe1330834616c7.camel@intl.att.com>
X-Mailer: Mew version 6.8 on Emacs 25.2
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/7FSyKuyp5KTsrdvjLN8x_OKdD58>
Subject: Re: [netmod] Query about must statement syntax
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
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: Tue, 07 Jan 2020 11:43:18 -0000

Hi,

"Ivory, William" <william.ivory@intl.att.com> wrote:
> Hi,
> 
> I've got a must statement that causes a compilation error on a Cisco NCS device (admittedly ancient (NCS version 3.4.4), but can't update it), as follows:
> 
> must "(../../packets * current()) <= (../../interval * 1000)";
> 
> Error is 'error: XPath syntax error: 40: unknown operator current'
> 
> However, our internal XPATH compiler thinks this is valid, and if I change the order in the must statement to the following, the NCS is happy:
> 
> must "(current() * ../../packets) <= (../../interval * 1000)";
> 
> Can anyone confirm if there is a genuine error in the original must
> statement, or is it valid XPATH? 

The XPath expression is legal.


/martin