Usually there might be two approaches:
first:
create static route pointing to null, eg:
set routing-options static route 10.0.0.0/8 discard
Once it's in routing table, then redistribute particular static route into ospf process.
Second:
Create loopback interface with VIP subnet