Documentation
¶
Overview ¶
Design: docs/architecture/core-design.md -- in-process test producer for the AS112 redistribute source
Package fakeas112 is a test-only internal plugin that drives the AS112 redistribute producer namespace on demand, so `.ci` tests can exercise the bgp-redistribute origin-AS + community path without starting the real AS112 DNS engine (no watchdog, no name server, no lo host addresses).
It emits on the SAME (as112, route-change) typed handle the real producer uses (as112events.RouteChange / as112events.ProtocolID), and announces the SAME four fixed covering prefixes the real producer announces -- read from the shared as112events.CoveringPrefixesV4/V6 source so the announced set cannot drift from the real producer:
v4: 192.175.48.0/24 (Direct Delegation), 192.31.196.0/24 (DNAME Redirection) v6: 2620:4f:8000::/48 (Direct Delegation), 2001:4:112::/48 (DNAME Redirection)
It NEVER emits the /32,/128 host addresses bound on lo -- conflating the covering prefixes with the host addresses is the documented AS112 mistake.
Command:
fakeas112 emit <add|del> [family <ipv4|ipv6|both>] [asn <N>] [community <c1,c2,...>]
`family` (default both) selects which address family(ies) to emit, so a single-stack test can drive one family the way the real producer does under an ipv4-only/ipv6-only config. One `emit add` builds one batch per selected family (all covering prefixes of that family) tagged with OriginASN (default 112) and the parsed community list, so the consumer emits `update text origin igp origin-as <asn> [community ...]`. A `del` withdraws only the families that are currently announced (never a family that was not added).
Index ¶
Constants ¶
const Name = "fakeas112"
Name is the canonical plugin name.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.