When importing BGP route to OSPF, MED of BGP route cannot be changed as cost of OSPF route. MED is special attribute of BGP. OSPF does not support the attribute. But it can import cost of the route with route policy setting when importing BGP. Refer to the following configuration: Set the cost of BGP route that agrees with cost of ACL 2000 route as 100.
acl number 2000
rule permit soucre X.X.X.X X.X.X.X
route-policy aaa permit node 10
if-match acl 2000
apply cost 100
route-policy aaa permit node 11
import-route bgp route-policy aaa