lb: fix that lb_add_del_vip and lb_add_del_as api doesn't work correctly 37/24237/2
authorYulong Pei <yulong.pei@intel.com>
Wed, 8 Jan 2020 17:12:43 +0000 (01:12 +0800)
committerOle Trøan <otroan@employees.org>
Fri, 17 Jan 2020 14:21:03 +0000 (14:21 +0000)
commitdb43bb6af78c33e47d29889b047cced4b11fe4d7
tree125108d5ae646765cce8cbaff9240058eb3f05ad
parent720435d03531da68e18c2a0dc867aa99d2daced6
lb: fix that lb_add_del_vip and lb_add_del_as api doesn't work correctly

Currently if user want to set ip4 address to the api, it must convert to ip6
format, e.g. user want to ip4 "90.1.2.1" but must convert to "::5A01:0201",
it is not acceptable, this fix solved the issue.

Ticket: FDIO-753
Type: fix

Change-Id: I2ffa5a3d38400ee176cf601421074f71fc395f03
Signed-off-by: Yulong Pei <yulong.pei@intel.com>
src/plugins/lb/CMakeLists.txt
src/plugins/lb/api.c
src/plugins/lb/lb_test.c
src/vnet/CMakeLists.txt