path-constraint affinity-mapping

Function

The path-constraint affinity-mapping command configures a template used to map each affinity bit name and value.

The undo path-constraint affinity-mapping command deletes a template used to map each affinity bit name and value.

By default, no template is configured.

Format

path-constraint affinity-mapping

undo path-constraint affinity-mapping

Parameters

None

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-te write

Usage Guidelines

Usage Scenario

Hexadecimal numbers are set for affinities and administrative groups, which involves complex mathematical calculation and causes maintenance difficulties. To streamline the plan, configuration, and maintenance, the VRP allows you to name affinity bits and administrative group bits.

Before configuring names for affinity and link administrative group bits, mappings between affinity bits and names must be configured on each node that is used to calculate a path for an MPLS TE tunnel. The VRP uses a template to manage the mappings. To configure such a template, run the path-constraint affinity-mapping command.

Follow-up Procedure

Mappings between names and bit values in an affinity have been configured using the attribute command.

Precautions

The mappings on each node must be the same to achieve a semantic consistency during path calculation.

Example

# Configure an affinity name mapping template.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls te
[*HUAWEI-mpls] quit
[*HUAWEI] path-constraint affinity-mapping
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >