role

Function

The role command configures the role of a PW APS instance in an E-PW APS scenario.

The undo role command restores the default role of a PW APS instance.

By default, the role of a PW APS instance is PW APS.

Format

role { master | slave }

undo role

Parameters

Parameter Description Value
master

Specifies the role of a PW APS instance as master in an E-PW APS scenario.

-

slave

Specifies the role of a PW APS instance as slave in an E-PW APS scenario.

-

Views

PW-APS view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2vpn write

Usage Guidelines

Usage Scenario

A PW APS instance plays one of the following roles: PW APS, master (in E-PW APS), and slave (in E-PW APS). PW APS is the default role. In E-PW APS networking, two PW APS instances with the master and slave roles respectively are configured on each PE to which a CE is dual-homed. E-PW APS determines whether to implement protection switching based on the PW status of the master PW APS instance. To specify the master or slave role for a PW APS instance in an E-PW APS scenario, run the role command.

Prerequisites

A PW APS instance has been created using the pw-aps command.

Configuration Impact

In E-PW APS networking, after roles are specified for PW APS instances, the E-PW APS status is determined by the master PW APS instance.

Follow-up Procedure

Run the remote-aps command to configure the remote number of each PW APS instance.

Configure the attributes of the master PW APS instance as needed, such as its description, operating mode, WTR time, manual operation, and switching delay time.

Precautions

  • The role command can be used to change the role of a PW APS instance from PW APS to master or slave or between master and slave. If a PW APS instance has been associated with PW protection groups, its role cannot be changed between master and slave.
  • After you run the undo role command, the role of a PW APS instance changes to PW APS and the remote number of the PW APS instance is automatically deleted.

Only the NetEngine 8000 F1A supports this command.

Example

# Configure the role of a PW APS instance numbered 1 as master in E-PW APS.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] pw-aps 1
[*HUAWEI-pw-aps-1] role master
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >