The import-table code when looking up the table to use
for route-import was reversing the order of the table_id
and vrf_id causing us to never ever lookup a table
and we would cause the `ip|ipv6 import-table X` commands
to be just ignored.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
return (-1);
table = zebra_vrf_table_with_table_id(afi, SAFI_UNICAST,
- table_id, VRF_DEFAULT);
+ VRF_DEFAULT, table_id);
if (table == NULL) {
return 0;
} else if (IS_ZEBRA_DEBUG_RIB) {
if ((!rmap_name) || (strcmp(rmap_name, rmap) != 0))
continue;
table = zebra_vrf_table_with_table_id(afi, SAFI_UNICAST,
- i, VRF_DEFAULT);
+ VRF_DEFAULT, i);
if (!table) {
if (IS_ZEBRA_DEBUG_RIB_DETAILED)
zlog_debug("%s: Table id=%d not found",