Hi,
On Thu, Aug 18, 2016 at 4:45 PM, Michael Hare <[email protected]> wrote:
> Anyone have experience using conditions in bgp import policies?
condition match condition can only be used in BGP export policies, not
on import.
You could do something like the following:
aggregate {
route 0/0 {
discard;
policy 0/0-CONTRIBUTORS;
}
}
policy-statement 0/0-CONTRIBUTORS {
term google-dns {
from route-filter 8.8.8.0/24 exact;
then accept;
}
term reject-everything-else {
then reject;
}
}
This will make the aggregate discard route active when the Google
prefix is present. If it disappears, the aggregate will lose its
contributing route and become hidden, making the BGP-received default
route active.
--Daniel.
_______________________________________________
juniper-nsp mailing list [email protected]
https://puck.nether.net/mailman/listinfo/juniper-nsp