The 'W' weight flag is ignored while calling do_routing.
If in the dr_rules, under gwlist we provision actual gateways with weight, the weight flag is taken into consideration while routing.
If in the dr_rules, under gwlist we use a carrier (marked with '#') and if the carrier has multiple gateways configured with weigh (gwlist field on dr_cariers table), the weight flag is ignored for those gateways.
Regards,
Ovidiu Sas
Hi Ovidiu,
The W flag affects only the ordering inside a rule ( entities in gwlist ).
The ordering inside a carrier is not affected by that flag (by design) - for inside the carrier, each carrier has a flag (see the dr_carrier table) to enable the weight based selection.
So, the weight based orering is controled:
Regards,
Bogdan