summaryrefslogtreecommitdiff
path: root/lib/routemap.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-06-20 14:10:44 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-06-20 14:10:44 -0400
commit1fa305095af42c21c934db8c251e20c3e9825f5d (patch)
treee85047e0647ce1b01ded511c16873f8973a8cb46 /lib/routemap.h
parent67e42128db3c380e8b8067da164675c282a1dca5 (diff)
lib: Add `clear route-map counters [WORD]` command
This will allow the end-user to clear the counters associated with the route-map. Subsuquent `show route-map ..` commands will display counters since the last clear. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/routemap.h')
-rw-r--r--lib/routemap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/routemap.h b/lib/routemap.h
index 3781d227df..90df1048ed 100644
--- a/lib/routemap.h
+++ b/lib/routemap.h
@@ -153,6 +153,7 @@ struct route_map_index {
/* Keep track how many times we've try to apply */
uint64_t applied;
+ uint64_t applied_clear;
QOBJ_FIELDS
};
@@ -177,6 +178,7 @@ struct route_map {
/* How many times have we applied this route-map */
uint64_t applied;
+ uint64_t applied_clear;
/* Counter to track active usage of this route-map */
uint16_t use_count;