Celestica Documentation Portal

Find your product documents here

random-detect color

Configures WRED threshold parameters for different colors in WRED CONFIGURATION mode.

Syntaxrandom-detect color <color-name> min-threshold <min-th-value> max-threshold <max-th-value> drop-probability <drop-rate>
Command modeWRED CONFIGURATION
Parameters
  • color-name – Enter the color of drop precedence for the WRED profile. Available options are green, yellow, and red.

  • min-th-value – Enter the minimum threshold value for the specified color, from 1 to 67108608.

  • max-th-value – Enter the maximum threshold value for the specified color, from 1 to 67108608.

  • drop-rate – Enter the rate of drop precedence in percentage, from 0 to 100.

Usage Use no random-detect color <color-name> to restore the default settings of a WRED drop profile. By default, the parameters are not configured.
Supported Releases1.0.0 or later
Click command None
Example
sonic(config-wred-test1)# random-detect color green min-threshold 100 max-threshold 300 drop-probability 100
sonic(config-wred-test1)# random-detect color yellow min-threshold 256 max-threshold 2560 drop-probability 50
sonic(config-wred-test1)#

sonic(config-wred-test1)# no random-detect color green
sonic(config-wred-test1)# no random-detect color yellow