Expand description
The intermediate representation (Ir
) for
the Routing Policy Specification Language (RPSL).
Modules§
Structs§
- Addr
PfxRange - An address prefix
IpNet
followed by an optional range operatorRangeOperator
. - AsSet
- https://www.rfc-editor.org/rfc/rfc2622#section-5.1
- AutNum
- Call
- Casts
- Clustered by their cast types (unicast vs. multicast), a collection of rule entries.
- Counts
- Entry
- Representation of an RPSL rule entry, consisting of one or
more
<mp-peering> [<actions>]
and a<mp-filter>
. - Filter
Set - Ir
- Parsed RPSL intermediate representation.
- Peering
- Peering
Action - Representation of
<mp-peering> [<actions>]
in an RPSL rule. - Peering
Set - Route
Set The attributes of the route-set class are shown in Figure 12. The route-set attribute defines the name of the set. It is an RPSL name that starts with “rs-”. The members attribute lists the members of the set. The members attribute is a list of address prefixes or other route-set names. Note that, the route-set class is a set of route prefixes, not of RPSL route objects.
- Versions
- Clustered by their IP versions, a collection of rule entries.
Enums§
- Action
- AsExpr
- AsName
- Filter
The filter attribute defines the set’s policy filter. A policy filter is a logical expression which when applied to a set of routes returns a subset of these routes. We say that the policy filter matches the subset returned. The policy filter can match routes using any BGP path attribute, such as the destination address prefix (or NLRI), AS-path, or community attributes.
- Range
Operator - Route
SetMember - Router
Expr - Expressions over router IP addresses, inet-rtr names, and rtr-set names using operators AND, OR, and EXCEPT. https://www.rfc-editor.org/rfc/rfc2622#page-25
Functions§
- is_any
- is_
as_ set - is_
filter_ set - is_
peering_ set - is_
pseudo_ set - is_
route_ set_ name - match_
ips ips
must be sorted. Starting from the index of the closest element inips
, search right and left for address prefix that, combined withrange_operator
, containsip
. Stop searching either end when the index do not point toip
’s siblings.- merge_
irs - Merge
irs
into a singleIr
in parallel, with no ordering guarantee. - parse_
as_ name - A simple AS field is either a AS number or a AS set.
Otherwise, return
AsExpr::Invalid
. - parse_
aut_ num_ name - parse_
simple_ router_ expr - parse_
single_ as_ expr