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

Mapping for Multiple Options on One or More Lines

For some JUNOS configuration objects, the standard CLI syntax places multiple options on a single line, usually for greater legibility and conciseness. In most such cases, the first option identifies the object and does not have a keyword, but later options are paired keywords and values. The JUNOS XML API encloses each option in its own tag element. Because the first option has no keyword in the CLI statement, the JUNOS XML API assigns a name to its tag element.

The following example shows the JUNOS XML tag elements for a CLI configuration statement with multiple options on a single line. The JUNOS XML API defines a tag element for both options and assigns a name to the tag element for the first option (10.0.0.1), which has no CLI keyword.

Image t1508.gif

The syntax for some configuration objects includes more than one multioption line. Again, the JUNOS XML API defines a separate tag element for each option. The following example shows JUNOS XML tag elements for a traceoptions statement at the [edit protocols isis] hierarchy level. The statement has three child statements, each with multiple options.

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