From 78d4d89b478736300bf3dcd691e97af22b8f10fb Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Wed, 14 Dec 2022 11:23:42 +0000 Subject: Add missing type for OMT_INFO. Changes output like this: # HELP bgpd bgpd information -# TYPE bgpd unknown +# TYPE bgpd info bgpd_info{nodename="xxx",domainname="xxx",release="7.7"} 1 --- usr.sbin/bgpctl/ometric.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.sbin/bgpctl/ometric.c b/usr.sbin/bgpctl/ometric.c index b2a9d80599a..e525426206d 100644 --- a/usr.sbin/bgpctl/ometric.c +++ b/usr.sbin/bgpctl/ometric.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ometric.c,v 1.8 2022/12/12 09:51:04 claudio Exp $ */ +/* $OpenBSD: ometric.c,v 1.9 2022/12/14 11:23:41 claudio Exp $ */ /* * Copyright (c) 2022 Claudio Jeker @@ -278,6 +278,8 @@ ometric_type(enum ometric_type type) return "histogram"; case OMT_SUMMARY: return "summary"; + case OMT_INFO: + return "info"; default: return "unknown"; } -- cgit v1.2.3