Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
VPP-1543: show map stats crash when not configured.
[vpp.git]
/
src
/
plugins
/
map
/
map.c
diff --git
a/src/plugins/map/map.c
b/src/plugins/map/map.c
index
6b15ee1
..
47af894
100644
(file)
--- a/
src/plugins/map/map.c
+++ b/
src/plugins/map/map.c
@@
-1048,7
+1048,7
@@
show_map_stats_command_fn (vlib_main_t * vm, unformat_input_t * input,
map_main_t *mm = &map_main;
map_domain_t *d;
int domains = 0, rules = 0, domaincount = 0, rulecount = 0;
- if (pool_elts (mm->domains)
== 0
)
+ if (pool_elts (mm->domains)
<= 1
)
{
vlib_cli_output (vm, "No MAP domains are configured...");
return 0;