AS Path Set#
Routing Policies → APAS Path Sets
The ASPathSet resource groups one or more autonomous system numbers (ASNs) and can be referenced by a routing policy to match a route that has none, any, or all of these AS numbers.
Match options#
Whether the route is matched if all, any, or none of the members are found in the route's AS path is determined by the Policy statement, not the ASPathSet.
Members of the ASPathSet are regexes, which are checked against either the entire AS path or the individual AS numbers (see section about regex modes).
Regex modes#
When regexMode is set to ASN, each ASN is treated as a single element that is matched against the member regexes defined in the ASPathSet. If regexMode is set to Character, the route's entire AS path is treated as a string and matched character by character, similar to traditional regex matching.
Example 1: matching any path that contains ASN 100 or 101
In Character mode, AS paths containing ASNs such as 1000 or 2101 would also be matched.
Example 2: matching any path where at least one ASN has a 9 in it
In ASN mode, this expression would match only ASN 9, not any ASN containing the digit 9.
Example 3: matching any path containing a single ASN from 100 through 109
In Character mode, this path would also match paths with ASN 1000 or 1099
Dependencies#
This resource does not have any dependencies.
Referenced resources#
This resource does not reference any other resource.
Examples#
Custom Resource Definition#
To browse the Custom Resource Definition go to crd.eda.dev.
ASPathSet
SPEC
ASPathSetSpec defines the desired state of ASPathSet
-
Members is a list of AS path regular expressions.
-
Defines how AS_PATH attribute is converted into a string for regex matching.
enum: "ASN", "Character"
STATUS
ASPathSetStatus defines the observed state of ASPathSet