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:
| Dialpeer | Vendor | Routeset Discriminator | Prefix | Result |
|---|---|---|---|---|
| DP-1 | Vendor A | Pricelist 1 | 1 | shorter match |
| DP-2 | Vendor A | Pricelist 1 | 1234 | selected |
| DP-3 | Vendor A | Pricelist 2 | 1 | shorter match |
| DP-4 | Vendor A | Pricelist 2 | 123 | selected |
| DP-5 | Vendor B | Default | 1 | selected |
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:
| Dialpeer | Vendor | Routeset Discriminator | Prefix | Result |
|---|---|---|---|---|
| DP-1 | Vendor A | Default | 1 | shorter match |
| DP-2 | Vendor A | Default | 1234 | selected |
| DP-3 | Vendor A | Default | 1 | shorter match |
| DP-4 | Vendor A | Default | 123 | shorter match |
| DP-5 | Vendor B | Default | 1 | selected |
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.