mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-14 13:22:02 +00:00
Merge pull request #518 from dwalton76/zebra-mpls-lsp-uninstall
zebra: zebra_mpls_lsp_uninstall was not being called
This commit is contained in:
commit
51cd5cc35e
@ -1382,6 +1382,11 @@ rib_process_update_fib (struct zebra_vrf *zvrf, struct route_node *rn,
|
|||||||
zlog_debug ("%u:%s: Updating route rn %p, rib %p (type %d)",
|
zlog_debug ("%u:%s: Updating route rn %p, rib %p (type %d)",
|
||||||
zvrf_id (zvrf), buf, rn, new, new->type);
|
zvrf_id (zvrf), buf, rn, new, new->type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* If labeled-unicast route, uninstall transit LSP. */
|
||||||
|
if (zebra_rib_labeled_unicast (old))
|
||||||
|
zebra_mpls_lsp_uninstall (zvrf, rn, old);
|
||||||
|
|
||||||
/* Non-system route should be installed. */
|
/* Non-system route should be installed. */
|
||||||
if (!RIB_SYSTEM_ROUTE (new))
|
if (!RIB_SYSTEM_ROUTE (new))
|
||||||
{
|
{
|
||||||
@ -1403,10 +1408,6 @@ rib_process_update_fib (struct zebra_vrf *zvrf, struct route_node *rn,
|
|||||||
{
|
{
|
||||||
if (RIB_SYSTEM_ROUTE(new))
|
if (RIB_SYSTEM_ROUTE(new))
|
||||||
{
|
{
|
||||||
/* If labeled-unicast route, uninstall transit LSP. */
|
|
||||||
if (zebra_rib_labeled_unicast (old))
|
|
||||||
zebra_mpls_lsp_uninstall (zvrf, rn, old);
|
|
||||||
|
|
||||||
if (!RIB_SYSTEM_ROUTE (old))
|
if (!RIB_SYSTEM_ROUTE (old))
|
||||||
rib_uninstall_kernel (rn, old);
|
rib_uninstall_kernel (rn, old);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user