Skip to content

Routeset Discriminators

Routeset Discriminators control how Yeti performs longest-prefix match (LPM) during Dialpeer lookup.

During routing, Yeti groups candidate dialpeers by Vendor + Routeset Discriminator and performs LPM independently within each group. The single best-matching dialpeer from each group is selected and passed to the sorting stage.

Every dialpeer always has a Routeset Discriminator assigned — there is a built-in Default discriminator used when no specific one is chosen. By default all dialpeers for a vendor share the same Default discriminator and therefore belong to the same group.

The main use case is to allow selecting multiple independent dialpeers from the same vendor — for example, when a vendor provides separate pricelists (route sets) and you want the routing engine to pick one route from each pricelist rather than only the globally best-matching prefix across all of them.

Example

Consider a call to destination 12345 with the following dialpeers configured:

DialpeerVendorRouteset DiscriminatorPrefixResult
DP-1Vendor APricelist 11shorter match
DP-2Vendor APricelist 11234selected
DP-3Vendor APricelist 21shorter match
DP-4Vendor APricelist 2123selected
DP-5Vendor BDefault1selected

Yeti forms three independent groups and runs LPM within each:

Three dialpeers — DP-2, DP-4, and DP-5 — are passed to the sorting stage. Both pricelists from Vendor A contribute a route independently.

Using only the Default Discriminator

If DP-1 through DP-4 all use the Default discriminator, they form a single group for Vendor A. LPM selects only DP-2 (longest match 1234), and DP-3 and DP-4 from the second pricelist are discarded:

DialpeerVendorRouteset DiscriminatorPrefixResult
DP-1Vendor ADefault1shorter match
DP-2Vendor ADefault1234selected
DP-3Vendor ADefault1shorter match
DP-4Vendor ADefault123shorter match
DP-5Vendor BDefault1selected

Only DP-2 and DP-5 reach the sorting stage — the second pricelist is effectively invisible.

Id
Unique identifier.
Name
Name of the routeset discriminator.