is-lt operator
Syntax
is-lt xpath-expression, integer-value {
info string;
err "string";
[err "string"];
}Description
Junos Snapshot Administrator test operator that tests if an XML element value is less than a given numeric value.
Parameters
| err string | Statement generated when the test case returns false. |
| info string | Description of the test case. |
| integer-value | Numeric value against which to compare the XML element value. |
| xpath-expression | XPath expression selecting the elements to evaluate. |
Usage Examples
The following test case checks whether a BGP peer flaps
by testing if the flap-count is less
than 5. If the flap-count is greater
than 5, the code reports an error.
bgp-peer-checks {
command show bgp neighbor;
iterate bgp-peer {
is-lt flap-count, 5 {
info BGP peer flap-count < 5;
err "BGP peer %s has %s flaps", peer-address, flap-count;
}
}
}
Release Information
Operator introduced in Junos Snapshot Administrator Release 1.0.