Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

all-same operator

Syntax

Description

Junos Snapshot Administrator test operator that checks if all content values for the specified elements are the same. If you include the optional reference item, the operator checks if all content values for the specified elements are the same as the content value of the reference item.

Parameters

err string

Statement generated when the test case returns false.

info string

Description of the test case.

reference-item

(Optional) XPath expression specifying the reference element against which value all other element values are compared.

xpath-expression

XPath expression selecting the elements to evaluate.

Usage Examples

The following example code checks that all OSPF neighbors have the same priority value. If any priority values are different, the code generates the error message.

The following example code checks that all OSPF neighbors have the same priority value as that of interface ae19.0. If any priority values are different from that of the reference interface, the code generates the error message.

Release Information

Operator introduced in Junos Snapshot Administrator Release 1.0.