not-in operator
Syntax
not-in xpath-expression, string-list { info string; err "string"; [err "string";] }
Release Information
Operator introduced in Junos Snapshot Administrator Release 1.0.
Description
Junos Snapshot Administrator test operator that determines if an XML element string value is excluded from the specified list of string values.
Parameters
err string—Statement generated when the test case returns false.
info string—Description of the test case.
string-list—Comma-separated list of strings against which to compare
the XML element value for exclusion. Enclose each string in quotation
marks.
xpath-expression—XPath expression selecting the elements to evaluate.
Usage Examples
The following test case checks that the RSVP session lsp-state
element does not have a value of Dn or Failed. If the lsp-state
value is in the specified string list, the
code reports an error.
rsvp-checks { command show rsvp session; iterate rsvp-session-data/rsvp-session { not-in lsp-state, "Dn", "Failed" { info RSVP LSP state is not [Dn | Failed]; err " RSVP session to %s has LSP state %s.", destination-address, lsp-state; } } }