To provide configuration data as a data stream, a client application emits the <config> or <config-text> tag elements within the <rpc> and <edit-config> tag elements. To specify the configuration elements to change, the application emits JUNOS XML or CLI configuration statements representing all levels of the configuration hierarchy from the root (represented by the <configuration> or <configuration-text> tag element) down to each element to change. The JUNOS XML notation is the same as that used to request configuration information, as described in Requesting Information. For more detailed information about the mappings between JUNOS configuration elements and JUNOS XML tag elements, see Mapping Configuration Statements to JUNOS XML Tag Elements. The CLI configuration statement notation are further described in the CLI User Guide.
<rpc>
<edit-config>
<target>
<candidate/>
</target>
<config> or <config-text>
<configuration> or <configuration-text>
<!- - configuration changes - ->
</configuration> or </configuration-text>
</config> or </config-text>
</edit-config>
</rpc>
]]>]]>
The following example shows how to provide JUNOS XML configuration data for the messages system log file in a data stream: