lisp: fix lisp|one_eid_table_dump's local|remote options in vat 35/28835/2
authorOnong Tayeng <otayeng@cisco.com>
Tue, 15 Sep 2020 08:25:29 +0000 (13:55 +0530)
committerFlorin Coras <florin.coras@gmail.com>
Tue, 15 Sep 2020 14:40:57 +0000 (14:40 +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

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;