Remove incorrect call to delete NHT for a route added via "network" command.

When a route is announced in BGP via "network" command, we also register its
next hop with NHT code to allow of updates when the nexthop changes. When this
route is deleted via "no network" command, we incorrectly make a second call to
unregister the NHT tracking associated with this route. This causes a crash.
Fix that.
This commit is contained in:
Donald Sharp 2015-05-19 18:04:04 -07:00
parent 7898cb4f5e
commit 15f606c9ff

View File

@ -4965,7 +4965,6 @@ bgp_static_unset (struct vty *vty, struct bgp *bgp, const char *ip_str,
bgp_static_withdraw (bgp, &p, afi, safi);
/* Clear configuration. */
bgp_unlink_nexthop(bgp_static);
bgp_static_free (bgp_static);
rn->info = NULL;
bgp_unlock_node (rn);