apply traffic-index

Use apply traffic-index to set a traffic index for BGP routes.

Use undo apply traffic-index to restore the default.

Syntax

apply traffic-index { value | clear }

undo apply traffic-index

Default

No traffic index is set for BGP routes.

Views

Routing policy node view

Predefined user roles

network-admin

Parameters

value: Specifies the traffic index in the range of 1 to 64.

clear: Clear the traffic index of BGP routes.

Examples

# Configure node 10 in permit mode for routing policy policy1 to set a traffic index of 6 for BGP routes matching extended community list 100.

<Sysname> system-view
[Sysname] ip extcommunity-list 100 permit rt 100:100
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy-policy1-10] if-match extcommunity 100
[Sysname-route-policy-policy1-10] apply traffic-index 6