[netmod] Query about must statement syntax

"Ivory, William" <william.ivory@intl.att.com> Tue, 07 January 2020 10:31 UTC

Return-Path: <william.ivory@intl.att.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 3098212001E for <netmod@ietfa.amsl.com>; Tue, 7 Jan 2020 02:31:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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 1YUyZiye_QcV for <netmod@ietfa.amsl.com>; Tue, 7 Jan 2020 02:31:19 -0800 (PST)
Received: from mx0a-00191d01.pphosted.com (mx0b-00191d01.pphosted.com [67.231.157.136]) (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 36448120019 for <netmod@ietf.org>; Tue, 7 Jan 2020 02:31:19 -0800 (PST)
Received: from pps.filterd (m0049459.ppops.net [127.0.0.1]) by m0049459.ppops.net-00191d01. (8.16.0.42/8.16.0.42) with SMTP id 007APBEc016995 for <netmod@ietf.org>; Tue, 7 Jan 2020 05:31:18 -0500
Received: from alpi155.enaf.aldc.att.com (sbcsmtp7.sbc.com [144.160.229.24]) by m0049459.ppops.net-00191d01. with ESMTP id 2xc9wf68uq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <netmod@ietf.org>; Tue, 07 Jan 2020 05:31:18 -0500
Received: from enaf.aldc.att.com (localhost [127.0.0.1]) by alpi155.enaf.aldc.att.com (8.14.5/8.14.5) with ESMTP id 007AVHYd008089 for <netmod@ietf.org>; Tue, 7 Jan 2020 05:31:17 -0500
Received: from zlp27128.vci.att.com (zlp27128.vci.att.com [135.66.87.50]) by alpi155.enaf.aldc.att.com (8.14.5/8.14.5) with ESMTP id 007AVD4v008031 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for <netmod@ietf.org>; Tue, 7 Jan 2020 05:31:14 -0500
Received: from zlp27128.vci.att.com (zlp27128.vci.att.com [127.0.0.1]) by zlp27128.vci.att.com (Service) with ESMTP id B4624400B579 for <netmod@ietf.org>; Tue, 7 Jan 2020 10:31:13 +0000 (GMT)
Received: from gbcdcmbx15.intl.att.com (unknown [135.76.180.51]) by zlp27128.vci.att.com (Service) with ESMTPS id 69E9B400B578 for <netmod@ietf.org>; Tue, 7 Jan 2020 10:31:13 +0000 (GMT)
Received: from gbcdcmbx15.intl.att.com (135.76.180.51) by gbcdcmbx15.intl.att.com (135.76.180.51) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1847.3; Tue, 7 Jan 2020 10:31:11 +0000
Received: from gbcdcmbx15.intl.att.com ([fe80::f44d:965d:2bf3:fe97]) by gbcdcmbx15.intl.att.com ([fe80::f44d:965d:2bf3:fe97%5]) with mapi id 15.01.1847.003; Tue, 7 Jan 2020 10:31:10 +0000
From: "Ivory, William" <william.ivory@intl.att.com>
To: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: Query about must statement syntax
Thread-Index: AQHVxUWUKG0nt7JeKEWqyBz0mcYP0Q==
Date: Tue, 07 Jan 2020 10:31:10 +0000
Message-ID: <5dd9acc04237a6160c93da52bcbe1330834616c7.camel@intl.att.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-mailer: Evolution 3.28.5-0ubuntu0.18.04.1
x-originating-ip: [135.76.168.250]
Content-Type: multipart/alternative; boundary="_000_5dd9acc04237a6160c93da52bcbe1330834616c7camelintlattcom_"
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2020-01-07_02:2020-01-06,2020-01-07 signatures=0
X-Proofpoint-Spam-Details: rule=outbound_policy_notspam policy=outbound_policy score=0 phishscore=0 impostorscore=0 spamscore=0 priorityscore=1501 malwarescore=0 suspectscore=0 lowpriorityscore=0 bulkscore=0 clxscore=1031 adultscore=0 mlxscore=0 mlxlogscore=304 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-2001070086
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/YYoACVX1CKcwaslIwx5ZcsR3upc>
Subject: [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 10:31:21 -0000

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?

Thanks,

William