# tunnel mpls affinity

#### Syntax

tunnel mpls [ traffic-eng ] affinity affinity [ mask mask ]

no tunnel mpls [ traffic-eng ] affinity

#### Release Information

Command introduced before JunosE Release 7.1.0.

#### Description

Assigns an affinity to the tunnel that specifies the class of resources—resource attributes—associated with the tunnel. The no version removes the affinity from the tunnel.

#### Options

- traffic-eng—Specifies optional keyword for compatibility with non–E Series implementations
- affinity—Attributes that must be configured on the interface in order to be considered by the tunnel; in the range 0x0–0xFFFFFFFF; default value is 0x0
- mask—Mask to identify attributes to be checked and therefore the attribute flags that a link (interface) must have in order to be used by a tunnel: a 1 signifies that the attribute value must match the tunnel’s corresponding affinity bit; a 0 signifies that the attribute value does not matter and does not have to match the tunnel’s affinity bit; in the range 0x0–0xFFFFFFFF; default value is 0x0000FFFF

#### Mode

Interface Configuration, Tunnel Profile Configuration