undo

Function

The undo command deletes configurations in a configuration template.

Format

undo command-string

Parameters

Parameter Description Value
command-string

Specifies a command.

The value is a string of 1 to 2047 case-insensitive characters, with spaces supported.

Views

Command template view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
cli write

Usage Guidelines

Usage Scenario

If a service view instance does not need configurations in a configuration template, run the undo command-string command in the configuration template view to delete the specified service view instance.

If redundant or incorrect configurations exist in a service view instance, access the specified instance in the configuration template view and run the undo command-string command to delete the configurations.

Precautions

The command specified in the undo command-string command can only be a service view instance that is associated with the configuration template or the command that has been run in that service view instance. If a service view instance is deleted, all configurations in the configuration template that applies to the instance are also deleted.

Example

# Delete the Loopback1 view instance that is associated with the configuration template named g1.
<HUAWEI> system-view
[~HUAWEI] command group g1
[*HUAWEI-group-g1] undo interface loopback1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic