Skip to content

metrics: fix the peer type values in the bgp_peer_type help text - #3592

Open
fdomain wants to merge 1 commit into
osrg:masterfrom
fdomain:fix-metric-help
Open

metrics: fix the peer type values in the bgp_peer_type help text#3592
fdomain wants to merge 1 commit into
osrg:masterfrom
fdomain:fix-metric-help

Conversation

@fdomain

@fdomain fdomain commented Sep 10, 2026

Copy link
Copy Markdown

The help text and inline comment documented internal as 0 and external as 1, but the metric reports the api.PeerType protobuf enum, where internal is 1 and external is 2. Unspecified (0) is never emitted: toPeerType maps every non-external value to internal.

The help text and inline comment documented internal as 0 and
external as 1, but the metric reports the api.PeerType protobuf
enum, where internal is 1 and external is 2. Unspecified (0) is
never emitted: toPeerType maps every non-external value to
internal.

Signed-off-by: Florian Domain <f.domain@criteo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant