mpls te auto-frr attributes (Interface view)

Function

The mpls te auto-frr attributes affinity command configures an affinity for a bypass tunnel.

The undo mpls te auto-frr attributes affinity command deletes an affinity for a bypass tunnel.

By default, no affinity is configured for a bypass tunnel.

Format

mpls te auto-frr attributes { bandwidth bandwidth | priority setup-priority [ hold-priority ] | hop-limit hop-limit-value } *

mpls te auto-frr attributes affinity property properties [ mask mask-value ]

mpls te auto-frr attributes affinity { { include-all | include-any | exclude } { bit-name } &<1-32> } *

undo mpls te auto-frr attributes { bandwidth [ bandwidth ] | priority [ setup-priority [ hold-priority ] ] | hop-limit [ hop-limit-value ] } *

undo mpls te auto-frr attributes

undo mpls te auto-frr attributes affinity [ property [ properties [ mask [ mask-value ] ] ] ]

undo mpls te auto-frr attributes affinity { { include-all | include-any | exclude } { bit-name } &<1-32> } *

Parameters

Parameter Description Value
bandwidth bandwidth

Specifies the bandwidth value for a bypass tunnel.

The value is an integer ranging from 0 to 4000000000, and the actual maximum value is the maximum reservable bandwidth of a primary tunnel, in kbit/s. After bandwidth protection is enabled, the default bypass tunnel bandwidth is equal to the primary tunnel bandwidth.

priority setup-priority

Specifies the setup priority.

The value is an integer ranging from 0 to 7. The smaller the value, the higher the priority. The default setup priority is 7.

hold-priority

Specifies the holding priority.

The value is an integer ranging from 0 to 7. The smaller the value, the higher the priority. The default holding priority is 7.

hop-limit hop-limit-value

Specifies the hop limit value.

The value is an integer ranging from 1 to 32.

affinity

Specify affinity parameters.

-

property properties

Specifies the affinity value of a bypass tunnel.

The value ranges from 0x0 to 0xffffffff, in hexadecimal notation. The default value is 0x0.

mask mask-value

Specifies the mask for an affinity, which is used to determine which link attributes to be checked during path selection for a tunnel.

The 32-bit value ranges from 0x0 to 0xFFFFFFFF, each bit in which represents a property. The default value is 0x0.

include-all

Allows CSPF to include a link when calculating a path, only if each link administrative group bit has the same name as each affinity bit.

-

include-any

Allows CSPF to include a link when calculating a path, if at least one link administrative group bit has the same name as an affinity bit.

-

exclude

Allows CSPF to exclude a link when calculating a path, if any link administrative group bit has the same name as an affinity bit.

-

bit-name

Specifies the referenced affinity names.

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

Views

100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, GE optical interface view, GE sub-interface view, GE electrical interface view, GMPLS-UNI interface view, Tunnel interface view, XGE sub-interface view, XGE interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-te write

Usage Guidelines

Usage Scenario

If an affinity of an automatic bypass tunnel is changed, a node starts the make-before-break mechanism to reestablish the primary tunnel and checks the binding between the primary and automatic bypass tunnels.

  • If the existing automatic bypass tunnel satisfies a new affinity, the binding remains.
  • If the existing automatic bypass tunnel does not satisfy a new affinity, the node deletes the binding and reestablishes an automatic bypass tunnel.

Prerequisites

MPLS and MPLS TE have been enabled using the mpls and mpls te commands, respectively.

Configuration Impact

If an affinity of an automatic bypass tunnel is changed, a node starts the make-before-break mechanism to reestablish the primary tunnel and checks the binding between the primary and automatic bypass tunnels.

  • If the existing automatic bypass tunnel satisfies a new affinity, the binding remains.
  • If the existing automatic bypass tunnel does not satisfy a new affinity, the node deletes the binding and reestablishes an automatic bypass tunnel.

Precautions

The mpls te auto-frr attributes command is configured on the interface of the primary tunnel; the mpls te auto-frr attributes affinity command is configured on the interface of the bypass tunnel.

With an affinity configured, if an automatic bypass tunnel that satisfies the specified affinity cannot be established, a node will bind a manual bypass tunnel satisfying the affinity to the primary tunnel.

Example

# Set a hexadecimal number for an affinity of an automatic bypass tunnel.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls te
[*HUAWEI-mpls] quit
[*HUAWEI] interface GigabitEthernet0/1/0
[*HUAWEI-GigabitEthernet0/1/0] mpls te auto-frr attributes affinity property a04 mask e0c
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >