From: claudio Date: Wed, 14 Dec 2022 11:23:41 +0000 (+0000) Subject: Add missing type for OMT_INFO. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=02b39b0008a0a03d81faad0bc03df7c071b93f02;p=openbsd 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 --- 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"; }