Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


is-in operator



Junos Snapshot Administrator test operator that determines if an XML element string value is included in the specified list of string values.


err string

Statement generated when the test case returns false.

info string

Description of the test case.


Comma-separated list of strings against which to compare the XML element value for inclusion. Enclose each string in quotation marks.


XPath expression selecting the elements to evaluate.

Usage Examples

Given the following XML output from the show rsvp session operational mode command:

The following test case checks if the RSVP session lsp-state has a value of either Up or NotInService. If the lsp-state value is not in the specified string list, the code reports an error.

Release Information

Operator introduced in Junos Snapshot Administrator Release 1.0.