Propagate duplicate IF addr add/del error up to API. 62/8662/2
authorJon Loeliger <jdl@netgate.com>
Thu, 28 Sep 2017 18:54:16 +0000 (13:54 -0500)
committerFlorin Coras <florin.coras@gmail.com>
Wed, 4 Oct 2017 18:48:52 +0000 (18:48 +0000)
commitde6c03c0f104114d43a53776839600ce792731de
tree0a447fc26eb98d2ed3bd605be676b73700646098
parent77d7dcba32516b3353dc075ca2753f5532178137
Propagate duplicate IF addr add/del error up to API.

Identify and complain when the same IP prefix is assigned
to two different SW interfaces:

    vpp# set int ip address TenGigabitEthernet6/0/0 1.2.3.4/32
    vpp# set int ip address TenGigabitEthernet6/0/1 1.2.3.4/32
    set interface ip address: Prefix 1.2.3.4/32 already found on
interface TenGigabitEthernet6/0/0

Change-Id: I1aee1b6a7ddd00d3109a53d8e1b6ce97bf45e372
Signed-off-by: Jon Loeliger <jdl@netgate.com>
(cherry picked from commit 35ffa3e8f6b032f6e324234d495f769049d8feea)
src/vnet/api_errno.h
src/vnet/interface_api.c
src/vnet/ip/lookup.c [changed mode: 0755->0644]