summaryrefslogtreecommitdiffstats
path: root/vpp-api-test/vat
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2016-08-30 15:05:18 +0200
committerFlorin Coras <florin.coras@gmail.com>2016-08-30 19:28:37 +0000
commit5a4e2dde94262a6f93c0c87be81a10317f2ae426 (patch)
treecafa97d559781ca6efbe07cff9afb8f355f2a285 /vpp-api-test/vat
parent459f4d61a893a04e01b2a136f565e7593f008e95 (diff)
VPP-365: Fix sending of bd_index in lisp_eid_table_add_del_map
Change-Id: I1f8fd65fa33b0bc7ee07aa0eeb5f794a7ede9537 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'vpp-api-test/vat')
-rw-r--r--vpp-api-test/vat/api_format.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/vpp-api-test/vat/api_format.c b/vpp-api-test/vat/api_format.c
index d0b1dd01efe..fbe4aedbca5 100644
--- a/vpp-api-test/vat/api_format.c
+++ b/vpp-api-test/vat/api_format.c
@@ -12331,11 +12331,17 @@ api_lisp_eid_table_add_del_map (vat_main_t * vam)
return -99;
}
+ if (vrf_set && bd_index_set)
+ {
+ errmsg ("error: both vrf and bd entered!");
+ return -99;
+ }
+
M (LISP_EID_TABLE_ADD_DEL_MAP, lisp_eid_table_add_del_map);
mp->is_add = is_add;
mp->vni = htonl (vni);
- mp->dp_table = htonl (vrf);
+ mp->dp_table = vrf_set ? htonl (vrf) : htonl (bd_index);
mp->is_l2 = bd_index_set;
/* send */