]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Static: Fix ASPA static route argument
authorOndrej Zajicek <santiago@crfreenet.org>
Tue, 3 Dec 2024 16:05:23 +0000 (17:05 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Tue, 3 Dec 2024 16:05:23 +0000 (17:05 +0100)
It seems that it should be 'providers' instead of 'provider'.

It matches keyword declaration and documentation. Mismatch beween keyword
declaration also breaks static-only builds.

proto/static/config.Y

index 58d22d3a6a3eca15156cf8195f6a4b051cbc2618..817ee3b771d75061b8705f4d8eb0402147ef0f54 100644 (file)
@@ -150,7 +150,7 @@ stat_route:
  | stat_route0 BLACKHOLE       { this_srt->dest = RTD_BLACKHOLE; }
  | stat_route0 UNREACHABLE     { this_srt->dest = RTD_UNREACHABLE; }
  | stat_route0 PROHIBIT                { this_srt->dest = RTD_PROHIBIT; }
- | stat_route0 PROVIDER {
+ | stat_route0 PROVIDERS {
     if (this_srt->net->type != NET_ASPA) cf_error("Provider settings available only for ASPA");
     this_srt->aspa = cfg_alloc(sizeof (adata) + (this_srt_aspa_max = 8) * sizeof (u32));
     this_srt->aspa->length = 0;