lisp: fix lisp|one_eid_table_dump's local|remote options in vat 63/28863/2
authorOnong Tayeng <otayeng@cisco.com>
Tue, 15 Sep 2020 08:25:29 +0000 (13:55 +0530)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 16 Sep 2020 10:32:29 +0000 (10:32 +0000)
The local|remote options to vat's lisp|one_eid_table_dump api command
does not print the eid details instead it produces the following error
messages:

    Filter error, unknown filter: 1
    Filter error, unknown filter: 2

Type: fix
Signed-off-by: Onong Tayeng <otayeng@cisco.com>
Change-Id: I000c290b400dbf39bd883d57115923167092c9bd
(cherry picked from commit 2237cc8ce1e0eb7222a34bb30bdeb2f3f1df9a81)

src/vnet/lisp-cp/one_api.c

index f7a972b..452a756 100644 (file)
@@ -840,7 +840,7 @@ send_one_eid_table_details (mapping_t * mapit,
   if (mapit->pitr_set || mapit->nsh_set)
     return;
 
-  switch (ntohl (filter))
+  switch (filter)
     {
     case ONE_FILTER_API_ALL:   /* all mappings */
       break;