Thanks for confirming.

William

On Tue, 2020-01-07 at 12:42 +0100, Martin Bjorklund wrote:

Hi,


"Ivory, William" 
<william.iv...@intl.att.com<mailto:william.iv...@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

_______________________________________________
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to