diff options
Diffstat (limited to 'src/vnet/dpo/replicate_dpo.c')
-rw-r--r-- | src/vnet/dpo/replicate_dpo.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vnet/dpo/replicate_dpo.c b/src/vnet/dpo/replicate_dpo.c index 998a729dcd2..cd753dcd35b 100644 --- a/src/vnet/dpo/replicate_dpo.c +++ b/src/vnet/dpo/replicate_dpo.c @@ -687,7 +687,10 @@ replicate_show (vlib_main_t * vm, if (INDEX_INVALID != repi) { - vlib_cli_output (vm, "%U", format_replicate, repi, + if (pool_is_free_index (replicate_pool, repi)) + vlib_cli_output (vm, "no such index %d", repi); + else + vlib_cli_output (vm, "%U", format_replicate, repi, REPLICATE_FORMAT_DETAIL); } else |