diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-04-06 18:36:33 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-04-06 18:36:33 +0000 |
commit | 47c50248c1d6305fed37f4b7429b498f2e445611 (patch) | |
tree | 9e652f6009cee6405f67c4dc45e2bd3fc25503f4 /usr.sbin/bgpctl/parser.c | |
parent | ec923d2c209408ddb282e1be4e1f50b365574b73 (diff) |
Implement "bgpctl show neighbor <peer> terse" this will print all statistics
in an easily parseable form. This output can be used to implement SNMP MIBs
or rrdtool/mrtg update scripts. OK henning@
Diffstat (limited to 'usr.sbin/bgpctl/parser.c')
-rw-r--r-- | usr.sbin/bgpctl/parser.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/bgpctl/parser.c b/usr.sbin/bgpctl/parser.c index 710b07cb74a..1e63514c73e 100644 --- a/usr.sbin/bgpctl/parser.c +++ b/usr.sbin/bgpctl/parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parser.c,v 1.42 2007/03/31 12:46:55 henning Exp $ */ +/* $OpenBSD: parser.c,v 1.43 2007/04/06 18:36:32 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -141,7 +141,7 @@ static const struct token t_show_rib[] = { { FLAG, "in", F_CTL_ADJ_IN, t_show_rib}, { FLAG, "out", F_CTL_ADJ_OUT, t_show_rib}, { KEYWORD, "neighbor", NONE, t_show_rib_neigh}, - { KEYWORD, "summary", SHOW_SUMMARY, NULL}, + { KEYWORD, "summary", SHOW_SUMMARY, t_show_summary}, { KEYWORD, "memory", SHOW_RIB_MEM, NULL}, { FAMILY, "", NONE, t_show_rib}, { PREFIX, "", NONE, t_show_prefix}, @@ -165,6 +165,7 @@ static const struct token t_show_neighbor_modifiers[] = { { NOTOKEN, "", NONE, NULL}, { KEYWORD, "timers", SHOW_NEIGHBOR_TIMERS, NULL}, { KEYWORD, "messages", SHOW_NEIGHBOR, NULL}, + { KEYWORD, "terse", SHOW_NEIGHBOR_TERSE, NULL}, { ENDTOKEN, "", NONE, NULL} }; |