mirror of
https://github.com/FRRouting/frr.git
synced 2026-01-11 20:07:27 +00:00
Merge pull request #20363 from Shbinging/fix_delete_sr_local_label_bug
ospfd: fix delete sr-local-label bug
This commit is contained in:
commit
e85d83ff1e
1 changed files with 4 additions and 4 deletions
|
|
@ -583,11 +583,11 @@ static void ospf_ext_link_delete_adj_sid(struct ext_itf *exti)
|
|||
|
||||
/* Release Primary & Backup Labels from Label Manager */
|
||||
if (exti->stype == ADJ_SID) {
|
||||
ospf_sr_local_block_release_label(exti->adj_sid[0].value);
|
||||
ospf_sr_local_block_release_label(exti->adj_sid[1].value);
|
||||
ospf_sr_local_block_release_label(GET_LABEL(ntohl(exti->adj_sid[0].value)));
|
||||
ospf_sr_local_block_release_label(GET_LABEL(ntohl(exti->adj_sid[1].value)));
|
||||
} else {
|
||||
ospf_sr_local_block_release_label(exti->lan_sid[0].value);
|
||||
ospf_sr_local_block_release_label(exti->lan_sid[1].value);
|
||||
ospf_sr_local_block_release_label(GET_LABEL(ntohl(exti->lan_sid[0].value)));
|
||||
ospf_sr_local_block_release_label(GET_LABEL(ntohl(exti->lan_sid[1].value)));
|
||||
}
|
||||
/* And reset corresponding TLV */
|
||||
unset_adjacency_sid(exti);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue