fib: fix flags updates when adding routes with a udp encap path 07/32507/6
authorArthur de Kerhor <arthurdekerhor@gmail.com>
Tue, 1 Jun 2021 09:42:20 +0000 (11:42 +0200)
committerNeale Ranns <neale@graphiant.com>
Thu, 3 Jun 2021 14:12:54 +0000 (14:12 +0000)
commitc5e3a41bbeedcc7486f43edfbc85b63a95865773
treeb68a6afbbb81e07847d66be345a9684b3dd063d9
parent9cfbd3b7869db3ca5131c6fd0c0f77b787fa4312
fib: fix flags updates when adding routes with a udp encap path

When adding a route via a udp encap instance, FIB_ENTRY_FLAG_IMPORT
should not be set. In particular, fib_route_attached_cross_table should
always return false for such paths.
Modified test_udp_encap to leverage the bug that needed to be fixed.

Type: fix
Signed-off-by: Arthur de Kerhor <arthurdekerhor@gmail.com>
Change-Id: Iaa9489e96d1cff09751f92c62caf7999d924fd7f
src/vnet/fib/fib_entry_src.c
test/test_udp.py