Many years later, Junipers configuration here is inconsistent, I'm here for exact the same issue I have managed this.
it seems rib groups have no facility to move aggregates from one instance to another
and "instance import " has no facility to move interfaces so you have to use a combination of both :-/
[edit policy-options policy-statement master>instance]
lab@vmx2# show
term 10 {
from {
instance master;
protocol aggregate;
route-filter 0.0.0.0/0 exact;
}
then accept;
}
[edit routing-instances]
lab@vmx2# show prefer_other_exit
instance-type forwarding;
routing-options {
instance-import master>instance;
}
lab@vmx2# run show route 0/0 exact
inet.0: 250 destinations, 389 routes (250 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
0.0.0.0/0 *[Aggregate/130] 01:29:11
Discard
[BGP/170] 01:29:10, localpref 50, from 192.168.0.1
AS path: 1111 ?, validation-state: unverified
> to 192.168.12.1 via ge-0/0/4.0
prefer_other_exit.inet.0: 249 destinations, 487 routes (249 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
0.0.0.0/0 *[Aggregate/130] 00:04:33
Discard
------------------------------
Simon Bingham
------------------------------
Original Message:
Sent: 12-06-2016 04:11
From: Paul Herbert
Subject: Rib-groups with aggregate routes
Yes, I agree that would work as a solution. I have decided to go with the static discard option and use rib-groups as that works for our scenario. I am a little puzzled why this option is not available for aggragte routes but appears to be available for other protocols.
Thanks