lb: fix that lb_add_del_vip and lb_add_del_as api doesn't work correctly 98/28298/1
authorYulong Pei <yulong.pei@intel.com>
Wed, 8 Jan 2020 17:12:43 +0000 (01:12 +0800)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 12 Aug 2020 15:59:46 +0000 (15:59 +0000)
commit3311a17e40500263f9a77de8a91b0572fc68ea4c
tree9aba96d2f6ca966effef896b438f980a1f53a0b5
parent4362672562f5b379361f147cbb7a9b72c3332c30
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>
(cherry picked from commit db43bb6af78c33e47d29889b047cced4b11fe4d7)
src/plugins/lb/CMakeLists.txt
src/plugins/lb/api.c
src/plugins/lb/lb_test.c
src/vnet/CMakeLists.txt