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

Providing Configuration Data as a Data Stream

To provide new configuration data as a data stream, a client application encloses the <load-configuration> tag element in an <rpc> tag element.

To define the configuration elements to change as JUNOS XML tag elements, the application emits the tag elements representing all levels of the configuration hierarchy from the root (represented by the <configuration> tag element) down to each element to change:

<rpc>
<load-configuration>
<configuration>
<!- - tag elements representing the configuration data - ->
</configuration>
</load-configuration>
</rpc>

To define the configuration elements to change as formatted ASCII text, the application encloses them in a <configuration-text> tag element and includes the format="text" attribute in the opening <load-configuration> tag:

<rpc>
<load-configuration format="text">
<configuration-text>
/* formatted ASCII configuration data */
</configuration-text>
</load-configuration>
</rpc>

For information about the syntax for JUNOS XML tag elements and formatted ASCII text, see Defining Configuration Data as Formatted ASCII Text or JUNOS XML Tag Elements.


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