Merging the Active Configuration with Another Configuration
A merge operation is useful when you are adding a new section to an existing configuration. If the existing configuration and the incoming configuration contain conflicting statements, the statements in the incoming configuration override those in the existing configuration.
You can merge a configuration from text or XML files. The examples in this section use the configurations in XML files.
![]() | Note: You cannot use the text file saved by using the save filename format set command to load the CLI configurations. |
You can merge all of the configuration, or the configuration at a specified hierarchy level. For information about loading a configuration at a specified hierarchy level, see Loading a Configuration at a Specified Hierarchy Level.
To combine the active configuration and the configuration in a specified file:
- In configuration mode, specify the load merge command. For example:[edit]user@host# load merge newcfg.xml format xml
The following example shows part of an existing configuration, the configuration in the file to be loaded, and the resulting configuration. In the resulting configuration, bold text indicates the configuration that changed.
Existing configuration:
Configuration in the file to be loaded:
Resulting configuration: