undo

This command reverts a modified configuration to its previously saved configuration.

Syntax

undo type name

Parameters

type
Specifies the type of configuration. For a complete list, use the show command.
name
Specifies the name of the configuration.

Guidelines

The undo command reverts a modified configuration to its last persisted state. The persisted state is the configuration in the startup configuration. You use the write memory command to save configuration changes to the startup configuration.

For a modified configuration in the startup configuration, you receive the following message.
type name - Configuration reverted.
For a new configuration that in not saved to the startup configuration, you receive the following message.
Cannot undo new configuration.
For a configuration that is not modified, you receive the following message.
Cannot undo - configuration was not modified.
For a nonexistent configuration, you receive the following message.
Cannot undo last configuration change.
For a nonexistent type, you receive the following message.
Invalid class.

Example

Revert the gateway-1 multiprotocol gateway to its last saved configuration.
# undo mpgw gateway-1
mpgw gateway-1 - Configuration reverted.
#