Deactivate and Reactivate Statements and Identifiers in a Configuration
In a configuration, you can deactivate statements and identifiers so that they do not take effect when you issue the
commitcommand. Any deactivated statements and identifiers are marked with theinactive:tag. They remain in the configuration, but are not activated when you issue acommitcommand.To deactivate a statement or identifier, use the
deactivateconfiguration mode command:deactivate (statement|identifier)To reactivate a statement or identifier, use the
activateconfiguration mode command:activate (statement|identifier)In both commands, the
statementoridentifieryou specify must be at the current hierarchy level.In some portions of the configuration hierarchy, you can include a
disablestatement to disable functionality. One example is disabling an interface by including thedisablestatement at the[edit interfaceinterface-name]hierarchy level. When you deactivate a statement, that specific object or property is completely ignored and is not applied at all when you issue acommitcommand. When you disable a functionality, it is activated when you issue acommitcommand but is treated as though it is down or administratively disabled.Examples: Deactivate and Reactivate Statements and
Identifiers in a ConfigurationDeactivate an interface in the configuration:
[edit interfaces]user@host#showat-5/2/0 {traceoptions {traceflag all;}atm-options {vpi 0 maximum-vcs 256;}unit 0 {...[edit interfaces]user@host#deactivate at-5/2/0[edit interfaces]user@host#showinactive: at-5/2/0 {traceoptions {traceflag all;}...[edit interfaces]user@host#activate at-5/2/0[edit interfaces]user@host#showat-5/2/0 {traceoptions {traceflag all;}...