Thanks Sarathirao. Please see below the policy statements for OSPF. I have included the policy statement for the IPVPN also.
set policy-options policy-statement OSPF-EXPORT term 10 from protocol bgp
set policy-options policy-statement OSPF-EXPORT term 10 then tag 65532
set policy-options policy-statement OSPF-EXPORT term 10 then accept
set policy-options policy-statement OSPF-IMPORT term 10 from protocol ospf3
set policy-options policy-statement OSPF-IMPORT term 10 from tag 65532
set policy-options policy-statement OSPF-IMPORT term 10 then reject
set policy-options policy-statement OSPF-IMPORT then accept
set policy-options policy-statement VPN-EXPORT term 10 from protocol direct
set policy-options policy-statement VPN-EXPORT term 10 from protocol static
set policy-options policy-statement VPN-EXPORT term 10 from protocol ospf3
set policy-options policy-statement VPN-EXPORT term 10 then metric 10
set policy-options policy-statement VPN-EXPORT term 10 then community add SET-RT-1:2888
set policy-options policy-statement VPN-EXPORT term 10 then accept
set policy-options policy-statement VPN-EXPORT then reject
set policy-options policy-statement VPN-IMPORT term 10 from protocol bgp
set policy-options policy-statement VPN-IMPORT term 10 from community MATCH-RT-1:2888
set policy-options policy-statement VPN-IMPORT term 10 then metric add 10
set policy-options policy-statement VPN-IMPORT term 10 then accept
set policy-options policy-statement VPN-IMPORT then reject
set policy-options community MATCH-RT-1:2888 members target:1:2888
set policy-options community SET-RT-1:2888 members target:1:2888