Hi,
If I understand correctly, routes towards AS100 from AS300 are going through the direct link due to shortest AS-PATH.
To prefer the routes towards AS200, you can tag the routes at the source [AS100] with BGP communities and then at AS300 make those routes preferred towards AS200 by AS-Prepending direct from AS100 to increase the AS-PATH.
Example of BGP import policy on AS300:
policy-statement EXPAND { term AS-EXPAND { from { as-path AS100; community TEST; } then { as-path-expand last-as count 2;
accept; } } } as-path AS100 "100 .*";
Cheers,
Ashvin