Diggers,
You're on the right track. But you will need to reference your rib group under the [ routing-instances vpna protocols bgp ] stanza.
Basically a rib-group is a macro that copies routes from one place to multiple places. You have to reference the rib-group in a place where a process would normally install the routes into the routing table. Think of it this way: you have to put the rib-group in the way of a place where JUNOS would normally propagate routes into a routing table.
So, if you want routes learned from a PE-CE BGP session, you will need to extend the BGP route installation to copy routes not only into vpna.inet.0, but also to inet.0.
ex:
[edit]
routing-options {
rib-groups {
test {
import-rib [ vpna.inet.0 inet.0 ];
}
}
}
[edit]
routing-instances {
vpna {
instance-type vrf;
interface fe-1/0/0.0;
route-distinguisher 10.255.14.175:3;
vrf-import vpna-import;
vrf-export vpna-export;
protocols {
bgp {
group vpna-site1 {
family inet {
unicast {
rib-group test;
}
}
peer-as 1;
neighbor 192.168.197.141;
}
}
}
In your example, you applied the rib-group to [ edit routing-instances vpna routing-options interface-routes ], which would take any directly-connected interface routes in the vpna instance and send them into the rib-group.