The apply-command-group command applies configurations in a specified configuration template in a specified view.
The undo apply-command-group command cancels the application of the configuration template.
By default, configurations in a configuration template are not applied.
Parameter | Description | Value |
---|---|---|
group-name |
Specifies the name of a configuration template. |
The value is a string of 1 to 32 case-insensitive characters. The name contains English letters, digits, hyphens (-), and underscores (_). The name must start with a letter and cannot contain special characters or blank space. |
Usage Scenario
After a configuration template is created, to apply the configurations in the configuration template, run the apply-command-group command.
The apply-command-group command is not supported in the NULL interface view.
Prerequisites
Configuration templates have been configured using the command group command.
Precautions
The configuration priorities are as follows:
<HUAWEI> system-view [~HUAWEI] command group g1 [~HUAWEI] end-group Warning: The configuration in the view of the current group will be committed. Are you sure you want to continue? [Y/N]:y [~HUAWEI] apply-command-group g1 Warning: The template configurations will be applied to the matched view. Are you sure you want to continue? [Y/N]:y
<HUAWEI> system-view [~HUAWEI] command group g1 [~HUAWEI] end-group Warning: The configuration in the view of the current group will be committed. Are you sure you want to continue? [Y/N]:y [~HUAWEI] interface LoopBack 2 [*HUAWEI-LoopBack2] commit [~HUAWEI-LoopBack2] apply-command-group g1 Warning: The template configurations will be applied to the matched view. Are you sure you want to continue? [Y/N]:y