Replacing The Entire Configuration; Replacing The Configuration With New Data - Juniper JUNOS OS 10.3 - XML MANAGEMENT PROTOCOL GUIDE 6-30-2010 Manual

Junos xml management protocol guide
Hide thumbs Also See for JUNOS OS 10.3 - XML MANAGEMENT PROTOCOL GUIDE 6-30-2010:
Table of Contents

Advertisement

Junos 10.3 Junos XML Management Protocol Guide

Replacing the Entire Configuration

Replacing the Configuration with New Data

108
/* formatted ASCII configuration data */
</configuration-text>
</load-configuration>
</rpc>
The
attribute can be combined with one or more of the following attributes:
format
, which is discussed in "Providing Configuration Data in a File" on page 105.
url
, which is discussed in "Replacing the Configuration with New Data" on page 108
action
and the subsections of "Creating, Modifying, or Deleting Configuration Elements" on
page 109.
For reference pages for the
the Junos XML API Operational Reference.
A client application can completely replace the current candidate configuration or a
private copy of it, either with new data or by rolling back to a previous configuration. See
the following sections:
Replacing the Configuration with New Data on page 108
Rolling Back to a Previous or Rescue Configuration on page 109
For instructions about modifying individual configuration elements, see "Creating,
Modifying, or Deleting Configuration Elements" on page 109.
To discard the entire candidate configuration or private copy and replace it with new
configuration data, a client application includes the
<load-configuration/>
tag or opening
<rpc>
<!-- For a file -->
<load-configuration action="override" url="file" [format="text"]/>
<!-- For a data stream -->
<load-configuration action="override" [format="text"]>
<!-- configuration data -->
</load-configuration>
</rpc>
For more information about the
configuration data, see "Specifying the Source and Format of New Configuration Data"
on page 105.
The following example shows how to specify that the contents of the file
replace the entire candidate configuration. The file contains Junos XML tag elements
(the default), so the
format
<configuration>
and
<configuration-text>
action="override"
<load-configuration>
and
attributes and the syntax for the new
url
format
attribute is omitted.
tag elements, see
attribute in the
tag:
/tmp/new.conf
Copyright © 2010, Juniper Networks, Inc.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os

Table of Contents