When changing from "ip import-table 10 route-map rdn" to "ip
import-table 10" without a route-map, routes would be deleted
and not reinstalled. This fix resolves that problem.
Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
else {
rmap_name =
zebra_get_import_table_route_map(afi, table_id);
- if (rmap_name)
+ if (rmap_name) {
zebra_del_import_table_route_map(afi, table_id);
+ rmap_name = NULL;
+ }
}
zebra_import_table_used[afi][table_id] = 1;
ZEBRA_TABLE_DISTANCE_DEFAULT;
rmap_name = zebra_get_import_table_route_map(afi, table_id);
- if (rmap_name)
+ if (rmap_name) {
zebra_del_import_table_route_map(afi, table_id);
+ rmap_name = NULL;
+ }
}
for (rn = route_top(table); rn; rn = route_next(rn)) {