Juniper J2300 User Manual page 189

J-series services router
Hide thumbs Also See for J2300:
Table of Contents

Advertisement

Option
Function
replace
Replaces portions of the configuration based on the replace: tags in the incoming configuration. The
Services Router searches for the replace: tags, deletes the existing statements of the same name (if
any), and replaces them with the incoming configuration. If no statement of the same name exists in
the configuration, the replace operation adds it to the configuration.
If you are performing a replace operation and the incoming configuration does not contain any
replace: tags, the replace operation is equivalent to a merge operation. If you are running automated
scripts and cannot know in advance whether the scripts need to perform a replace or a merge
operation, the scripts can use the replace operation to cover either case.
If you are performing an override or merge operation and the incoming configuration contains
replace: tags, the tags are ignored and the override or merge operation is performed.
update
Replaces only the configuration that has changed. An update operation compares the current
configuration to the current candidate configuration, and loads only the changes between these
configurations in the incoming configuration.
Figure 41 through Figure 43 show the results of override, replace,
and merge operations.
Figure 41: Loading a Configuration with the Override Operation
Current configuration:
interfaces {
Io0 {
unit 0 {
family inet {
address 127.0.0.1;
}
}
}
t1-3/0/0 {
unit 0 {
family inet {
address 204.69.248.181/28:
}
}
}
}
File contents:
interfaces {
replace:
load override
t1-3/0/0 {
unit 0 {
family inet {
address 10.0.0.1/8;
}
}
}
}
Managing Configuration Files with the CLI
Using J-series Configuration Tools
New contents:
interfaces {
t1-3/0/0 {
unit 0 {
family inet {
address 10.0.0.1/8;
}
}
}
}
159

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

J2350J2320J4300J6300J6350J4350

Table of Contents