commit label

Function

The commit label command commits a configuration and specifies a user label for a configuration rollback point.

Format

commit label label [ description description ]

Parameters

Parameter Description Value
label

Specifies a user label for a configuration rollback point.

The value is a string of 1 to 256 case-sensitive characters. It can be any visible ASCII character except for the space. However, the string can contain spaces if it is enclosed with double quotation marks (" "). The string cannot start with a digit or be a hyphen (-).

description description

Specifies information about a configuration rollback point.

The value is a string of 1 to 60 case-sensitive ASCII characters, spaces supported.

Views

All views except the user view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
config write

Usage Guidelines

Usage Scenario

  • For the committed configuration, description must be configured to provide guidance and assistance for future configuration rollbacks, run the commit description command in the two-phase configuration validation mode. All the generated description information can be viewed using the display configuration commit list verbose command.
  • In two-phase validation mode, if a configuration has not been committed, the symbol "*" is displayed in the corresponding view (except the user view). If all configurations have been configured, the symbol "~" is displayed in the corresponding view (except the user view).

Prerequisites

The system view for the two-phase configuration validation mode has been displayed using the system-view command, and the configuration has been modified.

Configuration Impact

After the commit command is run, the changes in system configurations take effect. The changes include only configuration changes committed after the two-phase configuration validation mode is configured.

Precautions

Configurations made by running commands in the user view take effect without being committed.

Example

# Modify a configuration and commit the modified configuration.
<HUAWEI> system-view
[~HUAWEI] sysname DeviceA
[*HUAWEI] commit label a123
[~DeviceA]
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >