Propagate duplicate IF addr add/del error up to API. 19/8619/2
authorJon Loeliger <jdl@netgate.com>
Thu, 28 Sep 2017 18:54:16 +0000 (13:54 -0500)
committerNeale Ranns <nranns@cisco.com>
Tue, 3 Oct 2017 10:15:53 +0000 (10:15 +0000)
commit35ffa3e8f6b032f6e324234d495f769049d8feea
tree877225cf1f8997501e2dd1efdaf011fdedb7d95f
parente2efd12b8418558cd8e701368287860409e8d265
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>
src/vnet/api_errno.h
src/vnet/interface_api.c
src/vnet/ip/lookup.c [changed mode: 0755->0644]