From 4aa11770622ae9009074d68cc8c340821b19adf3 Mon Sep 17 00:00:00 2001 From: Jacob Erlbeck Date: Tue, 27 Oct 2015 11:55:20 +0100 Subject: stats: Add missing mtu command to 'write' output Currently the config_write_stats_reporter function does not output the mtu value, which is fixed by this commit. Sponsored-by: On-Waves ehf --- src/vty/stats_vty.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vty/stats_vty.c b/src/vty/stats_vty.c index 775184c9..0911fbb8 100644 --- a/src/vty/stats_vty.c +++ b/src/vty/stats_vty.c @@ -290,6 +290,9 @@ static int config_write_stats_reporter(struct vty *vty, struct stats_reporter *s if (srep->bind_addr_str) vty_out(vty, " local-ip %s%s", srep->bind_addr_str, VTY_NEWLINE); + if (srep->mtu) + vty_out(vty, " mtu %d%s", + srep->mtu, VTY_NEWLINE); if (srep->name_prefix && *srep->name_prefix) vty_out(vty, " prefix %s%s", srep->name_prefix, VTY_NEWLINE); -- cgit v1.2.3