Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Upload and Format Configuration Data in a Junos XML Protocol Session

A Junos XML protocol client application can load configuration data into a selected target configuration database on devices running Junos OS or devices running Junos OS Evolved. A client application can use the <load-configuration> operation with the appropriate attributes to specify the source and format of the configuration data to load. The application can provide new configuration data using a text file or streaming data. The data format can be Junos XML elements, formatted ASCII text, configuration mode commands, or JavaScript Object Notation (JSON) data.

A client application can stream configuration changes within the session or reference a data file with the required configuration changes. Each method has advantages and disadvantages. Streaming data enables you to send your configuration data inline, using your Junos XML protocol connection. Streaming data is useful when the device is behind a firewall and you cannot establish another connection to upload a data file. With text files you can keep the edit configuration commands simple; there is no need to include the possibly complex configuration data stream.

The delivery mechanism and the data format are discussed in detail in the following topics: