Figure 11: Committing a Model Update Package If NETCONG-YANG is enabled during package activation, NETCONF processes are restarted. All active NETCONF sessions are killed during package activation. Failure during a package verification terminates the activation process. Deactivating the Update Package You can deactivate an update package by using the install deactivate command. Enable the install commit command to make changes persistent. Table 43: Deactivating a Model Update Package When you deactivate an update, if more than one model update package is installed, the most recently committed model update package becomes the model package used by the device.
If there are no other previously committed model packages, then the base version of data models included with the standard image is used. Rollback of the Update Package Rollback provides a mechanism to move a device back to the state in which it was operating prior to an update. After a rollback, NETCONF-YANG processes are restarted before changes are visible. You can roll back an update to the base version, the last committed version, or a known commit ID by using the install rollback command. Model-Driven Programmability Deactivating the Update Package Action Command to Use To remove a package. Use the install remove command. Note Deactivate a package before removing it.
To deactivate a package Use the install deactivate command, followed by the install commit command. Note The install commit command must be used to ensure that the deactivation of the model package is persistent across reloads. Subsequent attempts at removal of the package will fail, if the deactivation is not committed. Programmability Configuration Guide, Cisco IOS XE 17.16.x 385