Agree with Ashwin.
Below are the configs:
R1
set policy-options policy-statement ADV_BGP_TO_OSPF term Default-Route from protocol bgp
set policy-options policy-statement ADV_BGP_TO_OSPF term Default-Route from route-filter 0.0.0.0/0 exact
set policy-options policy-statement ADV_BGP_TO_OSPF term Default-Route then accept
set policy-options policy-statement ADV_BGP_TO_OSPF term rest then reject
R3
set policy-options policy-statement filter-default term Default-Route from route-filter 0.0.0.0/0 exact
set policy-options policy-statement filter-default term Default-Route then reject
[edit]
R3
R3 show protocols ospf
import filter-default;
area 0.0.0.18 {
interface ge-0/0/1.0;
interface lo0.0;
}
R3 commit
commit complete
[edit]