[Contents] [Prev] [Next] [Index] [Report an Error]

Example: Configuring a Subroutine

Create the subroutine is-customer and call it from the routing policies export-customer and import-customer. In import-customer, the action is taken only on routes that match the route filters defined in is-customer.

[edit]
policy-options {
policy-statement is-customer {
term match-customer {
from {
route-filter 10.100.1.0/24 exact;
route-filter 10.186.100.0/24 exact;
}
then accept;
}
term drop-others {
then reject;
}
}
policy-statement export-customer {
from policy is-customer;
then accept;
}
policy-statement import-customer {
from {
protocol bgp;
policy is-customer;
}
then {
local-preference 10;
accept;
}
}
}

[Contents] [Prev] [Next] [Index] [Report an Error]