aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/map
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2019-01-30 19:01:49 +0100
committerDamjan Marion <dmarion@me.com>2019-02-02 00:29:02 +0000
commit9bb20b310280a3c9604f9dd24fbb6757d7f9ca65 (patch)
treef2f6761a89e1d614ebf77fe8f262bd4371eaeb9e /src/plugins/map
parentbdf7fd62a0c6f33e5af5db326fa726f475960a85 (diff)
VPP-1543: show map stats crash when not configured.
Change-Id: I4c8bc3fb057d57339ce282a31b0bb70ad16dd03e Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src/plugins/map')
-rw-r--r--src/plugins/map/map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/map/map.c b/src/plugins/map/map.c
index 6b15ee1919e..47af8947fb9 100644
--- 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;