Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

list Table of Contents
file_download PDF
keyboard_arrow_right

is-gt operator

date_range 22-Apr-21

Syntax

content_copy zoom_out_map
is-gt xpath-expression, integer-value {
     info string;
     err "string";
    [err "string";]
}

Description

Junos Snapshot Administrator test operator that tests if an XML element value is greater 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 that each OSPF interface has at least 1 neighbor by verifying that the neighbor-count is greater than 0. If the neighbor count is 0, the code reports an error.

content_copy zoom_out_map
ospf-int-checks {
     command show ospf interface;
     iterate ospf-interface {
          is-gt neighbor-count, 0 {
               info OSPF interfaces must have at least 1 neighbor;
               err "OSPF interface %s does not have any neighbors", interface-name;
          }
     }
}

Release Information

Operator introduced in Junos Snapshot Administrator Release 1.0.

external-footer-nav
Ask AI
close

How can I help you today?

LLMs can make mistakes. Verify important information.
chat_add_on New topic
send progress_activity
This conversation will be monitored and recorded. Any information you provide will be subject to our Privacy Notice and may be used for quality assurance purposes. Do not include any personal or sensitive information. Ask AI can make mistakes. Verify generated output for accuracy.
Protected by hCaptcha arrow_drop_down arrow_drop_up
Juniper Networks, Inc. | Privacy Notice | Terms of Use