Controlling OSPF cost for redistributed routes

Hi there!

I need a bit of help here. I’m redistributing from BGP to OSPF, and I want tighter control of the resulting metric. I run everything as external-type-1, because I want to reflect the cost throughout my network. I’ve tried to see if it was possible to bump up the cost with the ospf-in chain, but there is no set-ospf-cost or similar option under /routing filter.

Can anyone come up with any other suggestions on how to manipulate ospf cost for redistributed routes?

Hmm,
/routing ospf instance set default metric-bgp=nn does the trick, but I would really like if someone could clarify how metric-bgp=auto is calculated!

If metric-bgp=auto, then OSPF uses BGP med attribute. If BGP med is not set then it uses default value 20.