mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 08:32:12 +00:00
Merge pull request #3298 from ak503/mpls_te2
ospfd: unregister mpls-te inter-as only if mpls-te is enabled
This commit is contained in:
commit
3759776ccd
@ -2398,16 +2398,16 @@ DEFUN (no_ospf_mpls_te_inter_as,
|
|||||||
zlog_debug("MPLS-TE: Inter-AS support OFF");
|
zlog_debug("MPLS-TE: Inter-AS support OFF");
|
||||||
|
|
||||||
if ((OspfMplsTE.enabled) && (OspfMplsTE.inter_as != Off)) {
|
if ((OspfMplsTE.enabled) && (OspfMplsTE.inter_as != Off)) {
|
||||||
OspfMplsTE.inter_as = Off;
|
|
||||||
/* Flush all Inter-AS LSA */
|
/* Flush all Inter-AS LSA */
|
||||||
for (ALL_LIST_ELEMENTS(OspfMplsTE.iflist, node, nnode, lp))
|
for (ALL_LIST_ELEMENTS(OspfMplsTE.iflist, node, nnode, lp))
|
||||||
if (IS_INTER_AS(lp->type)
|
if (IS_INTER_AS(lp->type)
|
||||||
&& CHECK_FLAG(lp->flags, LPFLG_LSA_ENGAGED))
|
&& CHECK_FLAG(lp->flags, LPFLG_LSA_ENGAGED))
|
||||||
ospf_mpls_te_lsa_schedule(lp, FLUSH_THIS_LSA);
|
ospf_mpls_te_lsa_schedule(lp, FLUSH_THIS_LSA);
|
||||||
}
|
|
||||||
|
|
||||||
/* Deregister the Callbacks for Inter-AS support */
|
/* Deregister the Callbacks for Inter-AS support */
|
||||||
ospf_mpls_te_unregister();
|
ospf_mpls_te_unregister();
|
||||||
|
OspfMplsTE.inter_as = Off;
|
||||||
|
}
|
||||||
|
|
||||||
return CMD_SUCCESS;
|
return CMD_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user