Technical Documentation

Deactivating and Reactivating Statements and Identifiers in a JUNOS Configuration

In a JUNOS configuration, you can deactivate statements and identifiers so that they do not take effect when you issue the commit command. Any deactivated statements and identifiers are marked with the inactive: tag. They remain in the configuration, but are not activated when you issue a commit command.

To deactivate a statement or identifier, use the deactivate configuration mode command:

user@host# deactivate (statement | identifier )

To reactivate a statement or identifier, use the activate configuration mode command:

user@host# activate (statement | identifier )

In both commands, the statement or identifier you specify must be at the current hierarchy level.

In some portions of the configuration hierarchy, you can include a disable statement to disable functionality. One example is disabling an interface by including the disable statement at the [edit interface interface-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 a commit command. When you disable a functionality, it is activated when you issue a commit command but is treated as though it is down or administratively disabled.

Published: 2010-01-17