Affinity maps allow network operators to associate human-readable names (such as "red," "low delay," or "high bandwidth") with specific bit positions that represent link attributes. If an affinity mapping is not defined in the Crosswork Network Controller UI, the affinity name is displayed as "UNKNOWN". To configure the affinity attribute for visualization purposes as part of an SR-TE policy, Tree-SID, RSVP-TE tunnel, or any other policy supported by Crosswork Network Controller, the affinity map configured on the device must also be recreated in Crosswork Network Controller. Start by collecting the affinity mappings configured on the device, and then define the same mappings in the Crosswork Network Controller UI with matching names and bit positions.
SR-TE affinity map configuration on a device
This example is a sample SR-TE affinity mapping configuration on a device. For more information, see Configure TE link affinities.
RP/0/RP0/CPU0:c12#sh running-config segment-routing traffic-eng affinity-map
segment-routing
traffic-eng
affinity-map
name red bit-position 1
name blue bit-position 5
name green bit-position 4
!
!
!
Flexible algorithm affinity map configuration on a device
This example is a sample flexible algorithm affinity mapping configuration on a device. For more information, see Configure flexible algorithm affinities.
router isis CORE
is-type level-2-only
net 49.0001.0000.0000.0002.00
log adjacency changes
affinity-map b33 bit-position 33
affinity-map red bit-position 1
affinity-map blue bit-position 5
flex-algo 128
priority 228
advertise-definition
affinity exclude-any blue indigo violet black
!
Note
Similar to affinity maps, flexible algorithms can also use Shared Risk Link Group (SRLG) exclusion constraints to prune links from the topology. These exclusions are configured on the device and then discovered by Crosswork Network Controller. For detailed configuration and visualization steps, see Configure and visualize flexible algorithm SRLG exclusion.