From: claudio Date: Mon, 17 Oct 2022 15:04:12 +0000 (+0000) Subject: Use metrics as the command name and document show metrics. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8667978e1a2c792485b0575523b32ce4edc23dc3;p=openbsd Use metrics as the command name and document show metrics. OK tb@ --- diff --git a/usr.sbin/bgpctl/bgpctl.8 b/usr.sbin/bgpctl/bgpctl.8 index 72e1b612f65..2a85f755ade 100644 --- a/usr.sbin/bgpctl/bgpctl.8 +++ b/usr.sbin/bgpctl/bgpctl.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: bgpctl.8,v 1.101 2022/09/01 22:24:40 job Exp $ +.\" $OpenBSD: bgpctl.8,v 1.102 2022/10/17 15:04:12 claudio Exp $ .\" .\" Copyright (c) 2003 Henning Brauer .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: September 1 2022 $ +.Dd $Mdocdate: October 17 2022 $ .Dt BGPCTL 8 .Os .Sh NAME @@ -211,6 +211,8 @@ instead of the default routing table with ID 0. .El .It Cm show interfaces Show the interface states. +.It Cm show metrics +Dump various BGP statistics in OpenMetrics format. .It Xo .Cm show mrt .Op Ar options diff --git a/usr.sbin/bgpctl/parser.c b/usr.sbin/bgpctl/parser.c index 7838deb0dfc..730fc8ebc42 100644 --- a/usr.sbin/bgpctl/parser.c +++ b/usr.sbin/bgpctl/parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parser.c,v 1.115 2022/10/17 12:01:19 claudio Exp $ */ +/* $OpenBSD: parser.c,v 1.116 2022/10/17 15:04:12 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -141,7 +141,7 @@ static const struct token t_show[] = { { KEYWORD, "sets", SHOW_SET, NULL}, { KEYWORD, "rtr", SHOW_RTR, NULL}, { KEYWORD, "mrt", SHOW_MRT, t_show_mrt}, - { KEYWORD, "metric", SHOW_METRIC, NULL}, + { KEYWORD, "metrics", SHOW_METRIC, NULL}, { ENDTOKEN, "", NONE, NULL} };