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.
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.