Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
VPP-365: Fix sending of bd_index in lisp_eid_table_add_del_map
[vpp.git]
/
vpp-api-test
/
vat
/
api_format.c
diff --git
a/vpp-api-test/vat/api_format.c
b/vpp-api-test/vat/api_format.c
index
d0b1dd0
..
fbe4aed
100644
(file)
--- 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;
}
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);
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 */
mp->is_l2 = bd_index_set;
/* send */