Change-Id: Iab2aa5fd92b9e95049f55fce4177e236a482723c
Signed-off-by: Florin Coras <fcoras@cisco.com>
fib_route_path_t * src, u8 is_ip4)
{
fib_route_path_t *e;
fib_route_path_t * src, u8 is_ip4)
{
fib_route_path_t *e;
u32 i = 0;
vec_foreach (e, src)
{
memset (&dst[i], 0, sizeof (*dst));
u32 i = 0;
vec_foreach (e, src)
{
memset (&dst[i], 0, sizeof (*dst));
- dst[i].fib_index = e->frp_fib_index;
+ table = fib_table_get (e->frp_fib_index, e->frp_proto);
+ dst[i].fib_index = table->ft_table_id;
dst[i].nh_sw_if_index = e->frp_sw_if_index;
dst[i].is_ip4 = is_ip4;
if (is_ip4)
dst[i].nh_sw_if_index = e->frp_sw_if_index;
dst[i].is_ip4 = is_ip4;
if (is_ip4)