diff options
author | Dinesh G Dutt <ddutt@cumulusnetworks.com> | 2014-09-30 12:53:28 -0700 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2014-11-11 17:25:09 +0000 |
commit | 50f38b3500a6af6e1b0d1389d65c62d70c41e8c2 (patch) | |
tree | 0525b14ce3c53f891cd7f5a00fcf954f4893a99f /ospfd/ospf_vty.c | |
parent | 88d37b902bc8127379d3293b9671aa6a11479c23 (diff) | |
download | quagga-50f38b3500a6af6e1b0d1389d65c62d70c41e8c2.tar.bz2 quagga-50f38b3500a6af6e1b0d1389d65c62d70c41e8c2.tar.xz |
Compute and display SPF execution statistics
Detailed SPF statistics, all around time spent executing various pieces of SPF
such as the SPF algorithm itself, installing routes, pruning unreachable networks
etc.
Reason codes for firing up SPF are:
R - Router LSA, N - Network LSA, S - Summary LSA, ABR - ABR status change,
ASBR - ASBR Status Change, AS - ASBR Summary, M - MaxAge
Signed-off-by: Dinesh G Dutt <ddutt@cumulusnetworks.com>
Reviewed-by: JR Rivers <jrrivers@cumulusnetworks.com>
Reviewed-by: Scott Feldman <sfeldma@cumulusnetworks.com>
Reviewed-by: Ayan Banerjee <ayan@cumulusnetworks.com>
Reviewed-by: Paul Jakma <paul@opensourcerouting.org>
Diffstat (limited to 'ospfd/ospf_vty.c')
-rw-r--r-- | ospfd/ospf_vty.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c index 97fcffd1..5674da0c 100644 --- a/ospfd/ospf_vty.c +++ b/ospfd/ospf_vty.c @@ -2749,6 +2749,9 @@ DEFUN (show_ip_ospf, vty_out (vty, "last executed %s ago%s", ospf_timeval_dump (&result, timebuf, sizeof (timebuf)), VTY_NEWLINE); + vty_out (vty, " Last SPF duration %s%s", + ospf_timeval_dump (&ospf->ts_spf_duration, timebuf, sizeof (timebuf)), + VTY_NEWLINE); } else vty_out (vty, "has not been run%s", VTY_NEWLINE); |