Hi,
As fas as I know the solution is as follows:
1. Use MQC on the inbound interface of your P/PE LSR to match your desired traffic and set discard-class
2. Use MQC on the outbound interface of your P/PE
LSR to set desired WRED policy based on discard-class you marked in previous step. You also need to mark WRED as "discard-class-based"
Here is an example:
Inbound:
class-map class1
match XXXXX
class-map class2
match YYYYY
policy-map in-policy
class class1
set discard-class 0
class class2
set discard-class 1
Outbound:
policy-map out-policy
class class-default
random-detect discard-class-based
random-detect discard-class 0 10 20 5
random-detect discard-class 1 20 30 5
Hope that helped.
David