Hi Folks,
I did some quick testing in lab and please find my suggestions,
In my case, I have 2 VR in r2, and I have created rib-groups vr1vr2 and vr2vr1 to leak advertise routes between the two VR.
I1.24 I2.43
+-----+ +--+--+I1.23 +--+--+ +-----+
+ R1 |I1.12 | R2 +---------+ R3 |I1.35 | R5 +
| PE1 +---------+ P1 | | P2 +---------+ PE2 |
+-----+ I2.12+--+--+ I2.23+--+--+ I2.35+-----+
I1.27 I2.73 LHR
labroot@re0_re0:r2> show configuration routing-instances | display set
set logical-systems r2 routing-instances vr1 instance-type virtual-router
set logical-systems r2 routing-instances vr1 interface ge-0/0/1.12
set logical-systems r2 routing-instances vr1 interface lo0.1000
set logical-systems r2 routing-instances vr1 routing-options interface-routes rib-group inet vr1vr2
set logical-systems r2 routing-instances vr1 protocols ospf rib-group vr1vr2
set logical-systems r2 routing-instances vr1 protocols ospf area 0.0.0.0 interface all
set logical-systems r2 routing-instances vr2 instance-type virtual-router
set logical-systems r2 routing-instances vr2 interface ge-0/0/0.23
set logical-systems r2 routing-instances vr2 interface lo0.2000
set logical-systems r2 routing-instances vr2 routing-options interface-routes rib-group inet vr2vr1
set logical-systems r2 routing-instances vr2 protocols ospf rib-group vr2vr1
set logical-systems r2 routing-instances vr2 protocols ospf export fromrib
set logical-systems r2 routing-instances vr2 protocols ospf import ospfimport
set logical-systems r2 routing-instances vr2 protocols ospf area 0.0.0.0 interface all
labroot@re0_re0:r2> show route table vr2 192.168.1.101/32 extensive
vr2.inet.0: 13 destinations, 13 routes (13 active, 0 holddown, 0 hidden)
192.168.1.101/32 (1 entry, 1 announced)
TSI:
KRT in-kernel 192.168.1.101/32 -> {1.1.12.1}
OSPF area : 0.0.0.0, LSA ID : 192.168.1.101, LSA type : Extern
*OSPF Preference: 10
Next hop type: Router, Next hop index: 996
Address: 0x97f03d0
Next-hop reference count: 4
Next hop: 1.1.12.1 via ge-0/0/1.12, selected
Session Id: 0x197
State: <Secondary Active Int>
Age: 36:04 Metric: 1
Validation State: unverified
Area: 0.0.0.0
Task: vr1-OSPF
Announcement bits (2): 0-KRT 1-vr2-OSPF ///// advertised to ospf with the help of fromrib
AS path: I
Primary Routing Table vr1.inet.0
labroot@re0_re0:r2>
labroot@re0_re0:r2> show route table vr2 192.168.1.103/32 extensive
vr2.inet.0: 13 destinations, 13 routes (13 active, 0 holddown, 0 hidden)
192.168.1.103/32 (1 entry, 1 announced)
TSI:
KRT in-kernel 192.168.1.103/32 -> {1.1.23.2}
*OSPF Preference: 10
Next hop type: Router, Next hop index: 995
Address: 0x97f0560
Next-hop reference count: 20
Next hop: 1.1.23.2 via ge-0/0/0.23, selected
Session Id: 0x198
State: <Active Int>
Age: 2:08:41 Metric: 1
Validation State: unverified
Area: 0.0.0.0
Task: vr2-OSPF
Announcement bits (1): 0-KRT //// by default this route is not advertised
AS path: I
Secondary Tables: vr1.inet.0
labroot@re0_re0:r2>
In order to advertise the routes leaked, I used the below export policy in ospf,
labroot@re0_re0:r2> ...nfiguration policy-options policy-statement fromrib | display set
set logical-systems r2 policy-options policy-statement fromrib term 1 from rib vr2.inet.0
set logical-systems r2 policy-options policy-statement fromrib term 1 then accept
labroot@re0_re0:r2>
Next Action Plan
----------------
Change the configured policy as below and let me know the behavior,
set policy-options policy-statement from_customer_to_ninegroup term 1 from rib NineGroup-VR.inet.0
set policy-options policy-statement from_customer_to_ninegroup term 1 then accept
set routing-instance NineGroup-VR protocols isis export from_cusotmer_to_ninegroup