Fix the missed usage of bgp_static_get_node_info and also
cleanup the function around it that was using it to make
it a bit more readable.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
/* For network route-map updates. */
for (bn = bgp_table_top(bgp->route[afi][safi]); bn;
- bn = bgp_route_next(bn))
- if ((bgp_static = bn->info) != NULL) {
+ bn = bgp_route_next(bn)) {
+ bgp_static = bgp_static_get_node_info(bn);
+ if (bgp_static != NULL) {
if (bgp_static->rmap.name
&& (strcmp(rmap_name, bgp_static->rmap.name)
== 0)) {
+
bgp_static->rmap.map = map;
if (route_update)
}
}
}
+ }
}
/* For redistribute route-map updates. */