vxlan: crash on configuring vxlan tunnel on l3 mode 21/34721/4
authorSteven Luong <sluong@cisco.com>
Mon, 13 Dec 2021 19:26:30 +0000 (11:26 -0800)
committerDamjan Marion <dmarion@me.com>
Tue, 14 Dec 2021 10:38:51 +0000 (10:38 +0000)
commitb8de7d43e4955bb4025cd0e0e7390279841b6d7d
treed4caedd2b510a0b3d610b105e501588f7c0ef770
parent9b7e8acf792cced80e6775bc5668d9db415cdb46
vxlan: crash on configuring vxlan tunnel on l3 mode

Configure a vxlan tunnel using this CLI and then assign an ip address to
the vxlan tunnel cause VPP to crash immediately
create vxlan tunnel src x.x.x.x dst y.y.y.y vni 1000 decap-next node ethernet-input l3
set interface ip address vxlan_tunnel0 z.z.z.z/24

It looks like when l3 mode is configured, the code calls the wrong function
to register the interface

Type: fix
Fixes: 3e38422ab905d26ab1625c74268e30c94327ea54

Signed-off-by: Steven Luong <sluong@cisco.com>
Change-Id: Ie1a08efc028f37fb528a7dfd7048ff6836bb8ddc
src/vnet/vxlan/vxlan.c
src/vnet/vxlan/vxlan.h