affinity
Use this command to set a set affinity constraints for a dynamic candidate path.
Use the no form of this command to remove affinity constraints from a dynamic candidate path.
Command Syntax
affinity (exclude-any|incude-all|include-any) ADMIN-GROUP-NAME
no affinity (exclude-any|incude-all|include-any) ADMIN-GROUP-NAME
Parameters
exclude-any
Exclude any attribute
include-all
Include all attribute
include-any
Include any attribute
ADMIN-GROUP-NAME
Administrative group name
Default
By default, no affinity constraint is configured.
Command Mode
ODN Candidate path constraint mode
Applicability
This command was introduced in OcNOS version 6.2.0.
Example
OcNOS(config)#
OcNOS(config)#segment-routing
OcNOS(config-sr)#traffic-engineering
OcNOS(config-sr-te)#on-demand-nexthop 101
OcNOS(config-sr-odn)#candidate-path 1
OcNOS(config-sr-odn-cp)#constraints
OcNOS(config-sr-odn-dyn-cp-cons)#affinity include-all a1
OcNOS(config-sr-odn-dyn-cp-cons)#
Last modified date: 10/20/2023