summaryrefslogtreecommitdiffstats
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:58 +0000
commit08377f8ff7e27f6986e3e7e6b398f87b3c861897 (patch)
treee77c8448f08b9e703eb438ca7b77b5cfa2257741
parent2544ca81c3c258c38ab82601f08fdab7d3c87b62 (diff)
VPP-365: Fix sending of bd_index in lisp_eid_table_add_del_mapv16.09-rc2
Change-Id: I1f8fd65fa33b0bc7ee07aa0eeb5f794a7ede9537 Signed-off-by: Filip Tehlar <ftehlar@cisco.com> (cherry picked from commit 5a4e2dde94262a6f93c0c87be81a10317f2ae426)
-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 3fc3f7b9d45..d47c16cb926 100644
--- a/vpp-api-test/vat/api_format.c
+++ b/vpp-api-test/vat/api_format.c
@@ -12273,11 +12273,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 */