You can deactivate a statement or identifier so that it does not take effect when you enter the commit command. Any deactivated statements and identifiers are marked with the inactive: tag and remain in the configuration.
To deactivate a statement or identifier, use the deactivate command:
-
deactivate (statement | identifier)
To reactivate a statement or identifier, use the reactivate command:
-
reactivate (statement | identifier)
Reactivate removes the inactive: tag so that a statement or identifier takes effect when you commit the configuration.
In both commands, statement or identifier must be at the current hierarchy level.
The following example shows how to deactivate interface ge-0/0/0 at the [edit interfaces] hierarchy level:
- [edit interfaces]
- user@host# deactivate ge-0/0/0
-
- [edit interfaces]
- user@host# show
- inactive: ge–0/0/0 {
-
- unit 0 {
-
- family inet {
- address 10.14.1.1/24;
- }
- }
- }