Why ospf not needed to redistribute into bgp to be carried over to MX-PE2 as cisco does?
<Vishal> For the route learned from CE (local route) you don't need specific policy to advertise those route to remote PE. All the local routes will be advertised to remote PE unless to apply a specific export policy.
Refer the Example Below:
set logical-systems r1 routing-instances test instance-type vrf
set logical-systems r1 routing-instances test interface xe-1/3/1.1
set logical-systems r1 routing-instances test route-distinguisher 100:11111
set logical-systems r1 routing-instances test vrf-target target:100:111111 <<< no export policy
set logical-systems r1 routing-instances test protocols ospf export mpbgp_to_ospf
set logical-systems r1 routing-instances test protocols ospf area 0.0.0.0 interface xe-1/3/1.1
labroot@rigel-re0# run show route logical-system r1 table test.inet.0
test.inet.0: 6 destinations, 8 routes (6 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
1.1.1.0/30 *[Direct/0] 00:02:31
> via xe-1/3/1.1
1.1.1.2/32 *[Local/0] 00:02:31
Local via xe-1/3/1.1
192.168.1.100/32 *[OSPF/10] 00:01:39, metric 1 <<<< this is the local CE loopback leanred from OSPF
labroot@rigel-re0# run show route advertising-protocol bgp 192.168.1.104 logical-system r1
test.inet.0: 6 destinations, 8 routes (6 active, 0 holddown, 0 hidden)
Prefix Nexthop MED Lclpref AS path
* 1.1.1.0/30 Self 100 I
* 192.168.1.100/32 Self 1 100 I <<<<< getting advertised to RR
PS: Please accept my response as solution if it answers you query, kudos are appreciated too!
Thanks
Vishal