Here are the relevant configurations. Note that the aggregate route has been configured with metric 10 on the virtual router. For the sample route, you can see that there is only one entry in the master instance routing table, but two entries in the virtual router routing table.
> show configuration routing-options instance-import
instance-import AGGREGATE_EXPORT;
> show configuration policy-options policy-statement AGGREGATE_EXPORT
term AGGREGATE_ALLOW {
from {
instance VIRTUAL;
protocol aggregate;
}
then accept;
}
term DEFAULT_DENY {
then reject;
}
> show configuration routing-instances VIRTUAL routing-options instance-import
instance-import AGGREGATE_IMPORT;
> show configuration policy-options policy-statement AGGREGATE_IMPORT
term AGGREGATE_ALLOW {
from {
instance master;
protocol aggregate;
}
then accept;
}
term DEFAULT_DENY {
then reject;
}
> show route protocol aggregate x.x.x.0/24
inet.0: 516026 destinations, 684705 routes (513244 active, 8 holddown, 171323 hidden)
+ = Active Route, - = Last Active, * = Both
x.x.x.0/24 *[Aggregate/130] 00:23:40
Reject
VIRTUAL.inet.0: 193 destinations, 285 routes (193 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
x.x.x.0/24 *[Aggregate/130] 00:22:25
Reject
[Aggregate/130] 00:23:40, metric 10
Reject