< Home

affinity property

Function

The affinity property command configures the affinity property for a CR-LSP attribute template.

The undo affinity property command deletes the affinity property from a CR-LSP attribute template.

By default, no affinity property for a CR-LSP attribute template is configured.

Format

affinity property affinity-value [ mask mask-value ]

undo affinity property

Parameters

Parameter Description Value
affinity-value Specifies the value of the affinity property. The value ranges from 0x0 to 0xFFFFFFFF, in hexadecimal format. By default, the affinity value is 0.
mask mask-value Specifies the mask value of an affinity property. Then an operation is performed between the mask value and the affinity property value, and the result indicates the bits of the affinity property to be checked. The value ranges from 0x0 to 0xFFFFFFFF, in hexadecimal format. By default, the value is 0.

Views

LSP attribute view

Default Level

2: Configuration level

Usage Guidelines

Affinity property and masks determine the link properties that should be checked by a device.

Example

# Set the affinity property to 123 and the mask to fff in the CR-LSP attribute template.

<HUAWEI> system-view
[HUAWEI] lsp-attribute lsp-attribute-name
[HUAWEI-lsp-attribute-lsp-attribute-name] affinity property 123 mask fff
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >