From 2fdaece0876465d6980ac6922099502a84e1e029 Mon Sep 17 00:00:00 2001 From: Filip Tehlar Date: Wed, 28 Sep 2016 14:27:59 +0200 Subject: VPP-450 Fix adding LISP adjacencies via CLI Change-Id: If90c9c630629e727fffc5d450516045a04433661 Signed-off-by: Filip Tehlar --- vpp/vpp-api/api.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'vpp/vpp-api/api.c') diff --git a/vpp/vpp-api/api.c b/vpp/vpp-api/api.c index 6bf5fed7..a1c016d4 100644 --- a/vpp/vpp-api/api.c +++ b/vpp/vpp-api/api.c @@ -5465,7 +5465,7 @@ static void if (!mp->is_add) { vnet_lisp_add_del_adjacency_args_t _a, *a = &_a; - gid_address_copy (&a->deid, eid); + gid_address_copy (&a->reid, eid); a->is_add = 0; rv = vnet_lisp_add_del_adjacency (a); if (rv) @@ -5497,10 +5497,10 @@ vl_api_lisp_add_del_adjacency_t_handler (vl_api_lisp_add_del_adjacency_t * mp) int rv = 0; memset (a, 0, sizeof (a[0])); - rv = unformat_lisp_eid_api (&a->seid, clib_net_to_host_u32 (mp->vni), - mp->eid_type, mp->seid, mp->seid_len); - rv |= unformat_lisp_eid_api (&a->deid, clib_net_to_host_u32 (mp->vni), - mp->eid_type, mp->deid, mp->deid_len); + rv = unformat_lisp_eid_api (&a->leid, clib_net_to_host_u32 (mp->vni), + mp->eid_type, mp->leid, mp->leid_len); + rv |= unformat_lisp_eid_api (&a->reid, clib_net_to_host_u32 (mp->vni), + mp->eid_type, mp->reid, mp->reid_len); if (rv) goto send_reply; -- cgit 1.2.3-korg