[Contents] [Prev] [Next] [Index] [Report an Error]

Mapping for Single-Value and Fixed-Form Leaf Statements

A leaf statement is a CLI configuration statement that does not contain any other statements. Most leaf statements define a value for one characteristic of a configuration object and have the following form:

keyword value;

In general, the name of the JUNOS XML tag element corresponding to a leaf statement is the same as the keyword string. The string between the opening and closing JUNOS XML tags is the same as the value string.

The following example shows the JUNOS XML tag elements for two leaf statements that have a keyword and a value: the message statement at the [edit system login] hierarchy level and the preference statement at the [edit protocols ospf] hierarchy level.

Image t1504.gif

Some leaf statements consist of a fixed-form keyword only, without an associated variable-form value. The JUNOS XML API represents such statements with an empty tag. The following example shows the JUNOS XML tag elements for the disable statement at the [edit forwarding-options sampling] hierarchy level.

Image t1505.gif
[Contents] [Prev] [Next] [Index] [Report an Error]