BGP route policy attribute reference
This page shows example BGP route policies, using the Common Expression Language (CEL) for Cloud Router.
Match attributes
The following table describes match attributes available for BGP route policies:
Attributes |
Description |
---|---|
|
IP range for the BGP route |
Match operations
The following table describes match operations available for BGP route policies:
Operation |
Description |
---|---|
|
Returns |
|
Returns |
|
Returns
Negatable with |
|
Returns a prefix object representing the CIDR range
|
|
Returns a prefix range object that's a copy of |
|
Returns a prefix range object that's a copy of |
|
Returns a prefix range object that's a copy of |
|
Returns a prefix range object that's a copy of |
|
Return x and y must be boolean expressions
using the same |
Due to the rules for ||
(OR) operations, all conditions are
effectively zero or more destination
match operations
connected by OR.
(D0 || D1 || ... || Dm)
The following table is an example of using prefix
to build complex regular
expressions compared to some router vendors:
Cloud Router | Cisco | Juniper | Explanation |
---|---|---|---|
|
|
|
Exactly match the prefix |
|
|
|
Exactly match the prefix |
|
|
|
Match the range within |
|
|
|
Match the range within |
|
|
|
Match the range within |
|
|
|
Match the range within |
Action attributes
The following table describes action attributes available for BGP route policies:
Attribute |
Description |
Restrictions |
---|---|---|
|
The list of AS numbers the BGP route update traversed |
Export and Import |
|
The route's multipath exit discriminator (MED) |
Export and Import |
Action operations
The following table describes action operations available for BGP route policies:
Operation |
Description |
|
---|---|---|
|
Accepts the BGP routeroute, and stop further evaluation of BGP route policies or terms, including any actions that come after this one. |
|
|
Filters out the BGP route, and stops further evaluation of BGP policies or terms, including any actions that come after this one. |
|
|
Stops the execution of remaining terms in this BGP route policy (including any actions after this term), and moves on to the next applied BGP route policy (if any). |
|
|
Prepends a list of AS numbers to the AS-PATH attribute, as a sequence.
|
|
|
Sets MED to |
None |