summaryrefslogtreecommitdiffstats
path: root/vpp-api-test
diff options
context:
space:
mode:
authorChris Luke <chrisy@flirble.org>2016-05-20 12:13:02 -0400
committerChris Luke <chrisy@flirble.org>2016-05-20 12:15:30 -0400
commitd686c632d1b1d9a993e53df941fd9696035e91a7 (patch)
tree148c43846dab9fc21fb92589baccec71c0481929 /vpp-api-test
parente855480acd9bbb75e39047144500df03485fcfa1 (diff)
VPP-77 Creating VXLAN over IPv6 via API fails
Tunnel dst is incorrectly being set to the requested src address. Change-Id: I44e2ee475f0572e78d148951c5d4684e85e08ce7 Signed-off-by: Chris Luke <chrisy@flirble.org>
Diffstat (limited to 'vpp-api-test')
-rw-r--r--vpp-api-test/vat/api_format.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vpp-api-test/vat/api_format.c b/vpp-api-test/vat/api_format.c
index 6e1db76c25b..0b4ef5590e5 100644
--- a/vpp-api-test/vat/api_format.c
+++ b/vpp-api-test/vat/api_format.c
@@ -7492,8 +7492,8 @@ static int api_vxlan_add_del_tunnel (vat_main_t * vam)
M (VXLAN_ADD_DEL_TUNNEL, vxlan_add_del_tunnel);
if (ipv6_set) {
- clib_memcpy(&mp->dst_address, &src6, sizeof(src6));
- clib_memcpy(&mp->dst_address, &src6, sizeof(dst6));
+ clib_memcpy(&mp->src_address, &src6, sizeof(src6));
+ clib_memcpy(&mp->dst_address, &dst6, sizeof(dst6));
} else {
clib_memcpy(&mp->src_address, &src4, sizeof(src4));
clib_memcpy(&mp->dst_address, &dst4, sizeof(dst4));