[j-nsp] conditions [and negation] in bgp import policies
Daniel Verlouw
daniel at shunoshu.net
Thu Aug 18 16:55:28 EDT 2016
Hi,
On Thu, Aug 18, 2016 at 4:45 PM, Michael Hare <michael.hare at wisc.edu> 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.
More information about the juniper-nsp
mailing list