Documentation
¶
Overview ¶
Package igpcost carries the IGP metric of a resolved next-hop from whoever computes it to whoever ranks paths by it.
The producer is sysrib's next-hop resolver, which walks the unified Loc-RIB; the consumer is BGP best-path selection (RFC 4271 Section 9.1.2.2 (e), the "lowest interior cost to the NEXT_HOP" tiebreak). Both sides are optional: sysrib runs with no BGP engine compiled in (//go:build ze_bgp), and the BGP engine runs with no Loc-RIB wired. Keeping the seam here, in a leaf that neither side owns, lets each register or read independently -- previously sysrib pushed directly into the BGP RIB package, which pinned the engine into every binary.
An unset seam yields cost 0, the same value BGP already used before a resolver existed: every next-hop compares equal on that tiebreak and selection falls through to the next rule.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.