aboutsummaryrefslogtreecommitdiffstats
path: root/vpp-api-test/vat
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2016-06-06 13:13:16 +0200
committerFilip Tehlar <ftehlar@cisco.com>2016-06-06 13:29:10 +0200
commit3f23e9a3c821b854597ea714bf725a1488fda25c (patch)
treec8e1495a57f9f02bcdbce0ee2f6aab80b90fbcaf /vpp-api-test/vat
parentfe82e14267a0f223060b9f53157500eeeaf8445b (diff)
ONE-18: Fix trailing garbage string in LISP status dump API
Change-Id: I5cba5eae5a981e41df3f227834a079e10982537f Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'vpp-api-test/vat')
-rw-r--r--vpp-api-test/vat/api_format.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vpp-api-test/vat/api_format.c b/vpp-api-test/vat/api_format.c
index 76c068fdaee..0cb54a120f0 100644
--- a/vpp-api-test/vat/api_format.c
+++ b/vpp-api-test/vat/api_format.c
@@ -2122,6 +2122,8 @@ vl_api_lisp_enable_disable_status_details_t_handler_json
gpe_status = format (0, "%s", mp->gpe_status ? "enabled" : "disabled");
feature_status = format (0, "%s",
mp->feature_status ? "enabled" : "disabled");
+ vec_add1 (gpe_status, 0);
+ vec_add1 (feature_status, 0);
if (VAT_JSON_ARRAY != vam->json_tree.type) {
ASSERT(VAT_JSON_NONE == vam->json_tree.type);