reset pw pw-template

Function

The reset pw pw-template command re-creates a PW or a PW template.

Format

reset pw pw-template pw-template-name

Parameters

Parameter Description Value
pw-template pw-template-name

Specifies the name of a PW template.

Re-creating a PW template will re-create all PWs applying this PW template.

The name is a string of 1 to 19 case-sensitive characters, spaces not supported.

The string can contain spaces if it is enclosed in double quotation marks (").

Views

User view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2vpn execute

Usage Guidelines

Usage Scenario

When modifying the attributes for a PW template, you need to run the reset pw command to commit the new configuration, so that the new configuration takes effect on all PWs applying the PW template. PW attributes can be configured by using a PW template or commands. The attributes configured using commands take precedence over those configured using the PW template. If you configure PW attributes using commands, the attributes in the PW template do not take effect. If you run the reset pw command in this situation, the PW attributes remain unchanged. You can configure the PW attributes to be modified in the PW template rather than configure the attributes using commands.

Prerequisites

A PW or PW template has been created.

Configuration Impact

Running the reset pw command to re-create a PW or a PW template may interrupt services on the PW or PWs applying the PW template.

Precautions

If you create a PW template with the same name as an existing one, the PWs applying the existing PW template are re-created. If a PW applies a PW template, the attributes of the PW change along with the attributes of the PW template.

Example

# Re-create all PWs that apply the PW template named pwt1.
<HUAWEI> reset pw pw-template pwt1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >