Skip to content

Commit

Permalink
OpenBGPD: Restore Neighbor IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
jof committed Feb 15, 2024
1 parent 4e88ca3 commit 848a802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sources/openbgpd/decoders.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")),
Expand Down

0 comments on commit 848a802

Please sign in to comment.