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


<load-configuration>

Usage

<rpc>
    <load-configuration rollback="index"/>

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

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

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

Description

Request that the JUNOScript server load configuration data into the current candidate configuration. Provide the data to load in one of three ways:

In the following example, the url attribute identifies /tmp/add.conf as the file to load. (The omission of the format attribute indicates that the file contains JUNOScript tag elements.)

<load-configuration url="/tmp/add.conf"/>

Attributes

action—Specifies how to load the configuration data, particularly when the current candidate contains conflicting statements. There are three acceptable values:

If providing the configuration data as formatted ASCII (either in the file named by the url attribute or enclosed in a <configuration-text> tag element), also place the replace: statement on the line directly preceding the statements that represent the hierarchy level or object to replace. For more information, see the section about loading a configuration in the JUNOS Internet Software Configuration Guide: Getting Started.

If providing the configuration data as JUNOScript tag elements, also set the replace attribute to the value replace on the opening tag of the container tag element that represents the hierarchy level or object to replace.

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

rollback—Specifies the numerical index of the previous configuration to load. Valid values for the index are 0 (zero, for the most recently committed configuration) through 9 (for the oldest possible stored configuration).

url—Specifies the full pathname of the file that contains the configuration data to load. The file must reside on the router's local disk.

See Also

<configuration>, <configuration-text>, <rpc>


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