<load-configuration>

Usage

<rpc>
<load-configuration rescue="rescue"/>

<load-configuration rollback="index"/>

<load-configuration url="url " [action="(merge | override | replace | update)"] \
[format="(text | xml)"]/>

<load-configuration format="text" [action="(merge | override | replace | \
update)"]>
<configuration-text>
<!-- formatted ASCII configuration statements to load -->
</configuration-text>
</load-configuration>

<load-configuration [action="(merge | override | replace | update)"] \
[format="xml"]>
<configuration>
<!-- tag elements for configuration elements to load -->
</configuration>
</load-configuration>
</rpc>

Description

Request that the Junos XML protocol server load configuration data into the candidate configuration. Provide the data to load in one of four ways:

action—Specifies how to load the configuration data, particularly when the candidate configuration and loaded configuration contain conflicting statements. The following are acceptable values:

format—Specifies the format used for the configuration data. There are two acceptable values:

rescue—Specifies that the rescue configuration replace the current candidate configuration. The only valid value is rescue.

rollback—Specifies the numerical index of the previous configuration to load. Valid values are 0 (zero, for the most recently committed configuration) through one less than the number of stored previous configurations (maximum is 49).

url—Specifies the full pathname of the file that contains the configuration data to load. The value can be a local file path, an FTP location, or a Hypertext Transfer Protocol (HTTP) URL:

In each case, the default value for the path variable is the home directory for the username. To specify an absolute path, the application starts the path with the characters %2F; for example, ftp://username:password@hostname/%2Fpath/filename.

Usage Guidelines

See Changing Configuration Information.

Related Topics