From 848a8026efd9359a734dc924f4f07c91eba7eb7b Mon Sep 17 00:00:00 2001 From: Jonathan Lassoff Date: Wed, 14 Feb 2024 23:35:27 -0800 Subject: [PATCH] OpenBGPD: Restore Neighbor IDs --- pkg/sources/openbgpd/decoders.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/sources/openbgpd/decoders.go b/pkg/sources/openbgpd/decoders.go index e2672435..b66d105f 100644 --- a/pkg/sources/openbgpd/decoders.go +++ b/pkg/sources/openbgpd/decoders.go @@ -43,7 +43,7 @@ func decodeNeighbor(n interface{}) (*api.Neighbor, error) { prefixes := decoders.MapGet(stats, "prefixes", map[string]interface{}{}) neighbor := &api.Neighbor{ - // ID: decoders.MapGetString(nb, "remote_addr", "invalid_id"), + ID: decoders.MapGetString(nb, "remote_addr", "invalid_id"), Address: decoders.MapGetString(nb, "remote_addr", "invalid_address"), ASN: decoders.IntFromString(decoders.MapGetString(nb, "remote_as", ""), -1), State: decodeState(decoders.MapGetString(nb, "state", "unknown")),