You can upgrade the system when a newer version is available. A system upgrade replaces the existing version of the software
with a newer version. By keeping the software up to date, you can ensure that the device works with the latest features and
bug fixes.
You can replace the currently active software on your system with the software from a specified ISO image or GISO image. Only
a minimal set of changes is performed to upgrade to the new software. Packages are not removed and reinstalled if they have
the same name and version. For example, an upgrade that differs by only one package, removes and install only that one modified
package.
Note |
The instructions in this section also apply to system downgrade.
|
This section shows replacing the current software version with image.
Table 1. Feature History Table
Feature Name
|
Release Information
|
Description
|
IOS XR Configuration File in Golden ISO (GISO)
|
Release 7.5.2
|
GISO is a customized image with the standard functional components and additional configuration files. This feature extracts
the IOS XR configuration file in GISO and automates the updating of configuration files when the router is reloaded with the
new GISO.
This feature introduces iso-config [ignore | replace] keywords to the install replace and install package replace commands.
|
In this scenario, you replace the current software with image, apply the changes, and commit the install operation. Committing
the changes indicates the end of the current transaction. The updated software is used after the changes are applied, before
the install transaction is committed.
A reboot is not always necessary. Bugfixes can be applied using a GISO that contains the current running software and the
additional bugfix. These fixes may not require a reboot. Reboots are required for a system version change, if too many processes
need restarting, there is configuration in the GISO to apply or if the bugfix is marked as requiring a reload.
Note |
The ztp.ini is an initialization file for ZTP that is provided when building a golden ISO (GISO). This file defines the GISO
ZTP configuration. If the .ini file is used, the next time ZTP starts, this custom .ini file that was used is picked up. For example, if the install starts a reload operation or when ZTP is initiated manually,
the ZTP runs with the custom ini . This file is carried over during install replace and install rollback, as long as both the from-version and the to-version are Cisco IOS XR, Release 7.3.1 or higher.
|
If you start an install replace or install package replace operation with a GISO that has a ztp.ini file, the GISO ZTP configuration is updated on both RPs when the operation is applied.
To undo this install operation and also the change in GISO ZTP configuration, use install package abort command. If you replace the image using an ISO without a ztp.ini file, the GISO ZTP configuration is removed from both RPs,
if it exists, when the operation is applied.
Cisco IOS XR Software Release 7.5.2 introduces iso-config [ignore | replace] keywords to the install replace and install package replace commands. Before this release, the configuration file in GISO is ignored by default. If the GISO has a configuration file
and it is not ignored using the iso-config ignore option, then the configuration in the file is applied, and the install operation requires a reboot. With the iso-config keyword, the default value is set to replace to replace the running configuration with the configuration in the file.
You can extract the configuration file from GISO using image.py
script that is embedded in the ISO. This script interprets the GISO, and serves as an API to the ISO content at the filesystem
level. The extracted configuration file replaces the running configuration after the router reloads.
Table 2. Configuration File in GISO
Scenario
|
iso-config replace
|
iso-config ignore
|
Nothing Specified
|
Configuration is present in GISO
|
Extracts the configuration and replaces the running configuration after the changes are applied via router reload. The output
of the show install log command displays ISO config replace requested (ISO config present) .
|
Does not extract or apply the configuration. The output of the show install log command does not display any information related to the configuration.
|
Extracts the configuration and replaces the running configuration after the changes are applied via router reload. The behavior
is similar to iso-config replace operation.
|
Configuration is not present in GISO
|
Attempts to extract the configuration, and the operation continues as if configuration is not requested. The output of the
show install log command displays ISO config replace requested (ISO config not present) .
|
Does not extract or apply the configuration. The output of the show install log command does not display any information related to the configuration.
|
Attempts to extract the configuration, and the operation continues as if configuration is not requested. The behavior is similar
to iso-config replace operation.
|
Configuration extraction is not supported in target GISO (downgrade)
|
Attempts to extract the configuration, and the operation continues as if configuration is not requested. The output of the
show install log command does not display any information related to the configuration.
|
Does not extract or apply the configuration. The output of the show install log command does not display any information related to the configuration.
|
Attempts to extract the configuration, and the operation continues as if configuration is not requested. The behavior is similar
to iso-config replace operation.
|
Configuration is supported but the extraction fails
|
Attempts to extract the configuration. But the operation fails with error Failed to extract the gISO config file from the ISO: <path to ISO> .
|
Does not extract or apply the configuration. The output of the show install log command does not display any information related to the configuration.
|
The behavior is similar to iso-config replace operation.
|