Mapping Configuration Statements To Junos Xml Tag Elements; Mapping For Hierarchy Levels And Container Statements - Juniper JUNOS OS 10.3 - XML MANAGEMENT PROTOCOL GUIDE 6-30-2010 Manual

Junos xml management protocol guide
Hide thumbs Also See for JUNOS OS 10.3 - XML MANAGEMENT PROTOCOL GUIDE 6-30-2010:
Table of Contents

Advertisement

Mapping Configuration Statements to Junos XML Tag Elements

Mapping for Hierarchy Levels and Container Statements

Copyright © 2010, Juniper Networks, Inc.
Chapter 2: Using Junos XML Management Protocol and Junos XML Tag Elements
The Junos XML API defines a tag element for every container and leaf statement in the
configuration hierarchy. At the top levels of the configuration hierarchy, there is almost
always a one-to-one mapping between tag elements and statements, and most tag
names match the configuration statement name. At deeper levels of the hierarchy, the
mapping is sometimes less direct, because some CLI notational conventions do not map
directly to XML-compliant tagging syntax.
NOTE: For some configuration statements, the notation used when you type the
statement at the CLI configuration-mode prompt differs from the notation used in a
configuration file. The same Junos XML tag element maps to both notational styles.
The following sections describe the mapping between configuration statements and
Junos XML tag elements:
Mapping for Hierarchy Levels and Container Statements on page 15
Mapping for Objects That Have an Identifier on page 16
Mapping for Single-Value and Fixed-Form Leaf Statements on page 17
Mapping for Leaf Statements with Multiple Values on page 18
Mapping for Multiple Options on One or More Lines on page 19
Mapping for Comments About Configuration Statements on page 20
The
tag element is the top-level Junos XML container tag element for
<configuration>
configuration statements. It corresponds to the
mode. Most statements at the next few levels of the configuration hierarchy are container
statements. The Junos XML container tag element that corresponds to a container
statement almost always has the same name as the statement.
The following example shows the Junos XML tag elements for two statements at the
top level of the configuration hierarchy. Note that a closing brace in a CLI configuration
statement corresponds to a closing Junos XML tag.
hierarchy level in CLI configuration
[edit]
15

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os

Table of Contents