From 5cd626eb1e19e9906ee780cbf86cb54abda226e2 Mon Sep 17 00:00:00 2001 From: Nathan Skrzypczak Date: Thu, 3 Sep 2020 12:45:20 +0200 Subject: [PATCH] vpp: Fix node APIs Type: fix Change-Id: Ic6e2b7e05b50945a8e2222019c2942a6ee52e465 Signed-off-by: Nathan Skrzypczak --- src/vpp/api/api.c | 8 ++++---- test/test_geneve.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/vpp/api/api.c b/src/vpp/api/api.c index c3380be0b80..99e9eb5df56 100644 --- a/src/vpp/api/api.c +++ b/src/vpp/api/api.c @@ -342,7 +342,7 @@ vl_api_get_node_index_t_handler (vl_api_get_node_index_t * mp) /* *INDENT-OFF* */ REPLY_MACRO2(VL_API_GET_NODE_INDEX_REPLY, ({ - rmp->node_index = ntohl(node_index); + rmp->node_index = htonl(node_index); })); /* *INDENT-ON* */ } @@ -389,7 +389,7 @@ out: /* *INDENT-OFF* */ REPLY_MACRO2(VL_API_GET_NEXT_INDEX_REPLY, ({ - rmp->next_index = ntohl(next_index); + rmp->next_index = htonl(next_index); })); /* *INDENT-ON* */ } @@ -420,9 +420,9 @@ vl_api_add_node_next_t_handler (vl_api_add_node_next_t * mp) out: /* *INDENT-OFF* */ - REPLY_MACRO2(VL_API_GET_NODE_INDEX_REPLY, + REPLY_MACRO2(VL_API_ADD_NODE_NEXT_REPLY, ({ - rmp->next_index = ntohl(next_index); + rmp->next_index = htonl(next_index); })); /* *INDENT-ON* */ } diff --git a/test/test_geneve.py b/test/test_geneve.py index 11d69358b96..9ce1f8ff643 100644 --- a/test/test_geneve.py +++ b/test/test_geneve.py @@ -273,7 +273,7 @@ class TestGeneveL3(VppTestCase): remote_address=self.pg0.remote_ip4, vni=vni, l3_mode=1, - decap_next_index=r.node_index) + decap_next_index=r.next_index) self.vapi.sw_interface_add_del_address( sw_if_index=r.sw_if_index, prefix="10.0.0.1/24") -- 2.16.6