aboutsummaryrefslogtreecommitdiffstats
path: root/src/vty
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2016-10-14 13:54:47 +0200
committerAlexander Couzens <lynxis@fe80.eu>2016-10-18 12:19:13 +0200
commiteb604cf44f2182904e9e104c5d226d7391e54102 (patch)
tree21f25feeda574077c2b69e3bc4b679d2d02b5f8b /src/vty
parente052dc285d094df565b2de2974e76d522fe15195 (diff)
vty/show asciidoc: counters: improve table headers
add [options=header] to every table header vty/show asciidoc: rename reference field into "Reference" vty/show asciidoc: capilize table header field names Change-Id: Ie991f4db77a60afb86a2a0b35c137586527f6228
Diffstat (limited to 'src/vty')
-rw-r--r--src/vty/stats_vty.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/vty/stats_vty.c b/src/vty/stats_vty.c
index 2ca436a..c03546b 100644
--- a/src/vty/stats_vty.c
+++ b/src/vty/stats_vty.c
@@ -383,8 +383,9 @@ static void asciidoc_counter_generate(struct vty *vty)
{
vty_out(vty, "// ungrouped osmo_counters%s", VTY_NEWLINE);
vty_out(vty, ".ungrouped osmo counters%s", VTY_NEWLINE);
+ vty_out(vty, "[options=\"header\"]%s", VTY_NEWLINE);
vty_out(vty, "|===%s", VTY_NEWLINE);
- vty_out(vty, "| name | This document & | description%s", VTY_NEWLINE);
+ vty_out(vty, "| Name | Reference | Description%s", VTY_NEWLINE);
osmo_counters_for_each(asciidoc_handle_counter, vty);
vty_out(vty, "|===%s", VTY_NEWLINE);
}
@@ -398,7 +399,7 @@ static int asciidoc_rate_ctr_handler(
char *description = osmo_asciidoc_escape(desc->description);
char *group_name_prefix = osmo_asciidoc_escape(ctrg->desc->group_name_prefix);
- /* | name | This document & | description | */
+ /* | Name | This document & | Description | */
vty_out(vty, "| %s | <<%s_%s>> | %s%s",
name,
group_name_prefix,
@@ -423,8 +424,9 @@ static int asciidoc_rate_ctr_group_handler(struct rate_ctr_group *ctrg, void *sc
vty_out(vty, "// rate_ctr_group table %s%s", group_description, VTY_NEWLINE);
vty_out(vty, ".%s - %s %s", group_name_prefix, group_description, VTY_NEWLINE);
+ vty_out(vty, "[options=\"header\"]%s", VTY_NEWLINE);
vty_out(vty, "|===%s", VTY_NEWLINE);
- vty_out(vty, "| name | This document & | description%s", VTY_NEWLINE);
+ vty_out(vty, "| Name | Reference | Description%s", VTY_NEWLINE);
rate_ctr_for_each_counter(ctrg, asciidoc_rate_ctr_handler, sctx_);
vty_out(vty, "|===%s", VTY_NEWLINE);
@@ -444,7 +446,7 @@ static int asciidoc_osmo_stat_item_handler(
char *group_name_prefix = osmo_asciidoc_escape(statg->desc->group_name_prefix);
char *unit = osmo_asciidoc_escape(item->desc->unit);
- /* | name | This document & | description | unit | */
+ /* | Name | Reference | Description | Unit | */
vty_out(vty, "| %s | <<%s_%s>> | %s | %s%s",
name,
group_name_prefix,
@@ -471,8 +473,9 @@ static int asciidoc_osmo_stat_item_group_handler(struct osmo_stat_item_group *st
vty_out(vty, "// osmo_stat_item_group table %s%s", group_description ? group_description : "", VTY_NEWLINE);
vty_out(vty, ".%s - %s %s", group_name_prefix, group_description ? group_description : "", VTY_NEWLINE);
+ vty_out(vty, "[options=\"header\"]%s", VTY_NEWLINE);
vty_out(vty, "|===%s", VTY_NEWLINE);
- vty_out(vty, "| name | This document & | description | unit%s", VTY_NEWLINE);
+ vty_out(vty, "| Name | Reference | Description | Unit%s", VTY_NEWLINE);
osmo_stat_item_for_each_item(statg, asciidoc_osmo_stat_item_handler, sctx_);
vty_out(vty, "|===%s", VTY_NEWLINE);