Skip to content

Commit

Permalink
Merge pull request FRRouting#15813 from pguibert6WIND/isis_srv6_backu…
Browse files Browse the repository at this point in the history
…p_endx

isisd: fix renaming backup define for ENDX SID
  • Loading branch information
idryzhov committed Apr 23, 2024
2 parents bb7b0ff + ad874c7 commit 166a82c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions isisd/isis_srv6.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ void isis_area_delete_backup_srv6_endx_sids(struct isis_area *area, int level)
struct listnode *node, *nnode;

for (ALL_LIST_ELEMENTS(area->srv6db.srv6_endx_sids, node, nnode, sra))
if (sra->type == ISIS_SRV6_LAN_BACKUP &&
if (sra->type == ISIS_SRV6_ADJ_BACKUP &&
(sra->adj->level & level))
srv6_endx_sid_del(sra);
}
Expand Down Expand Up @@ -420,7 +420,7 @@ void srv6_endx_sid_add_single(struct isis_adjacency *adj, bool backup,
: SRV6_ENDPOINT_BEHAVIOR_END_X;

sra = XCALLOC(MTYPE_ISIS_SRV6_INFO, sizeof(*sra));
sra->type = backup ? ISIS_SRV6_LAN_BACKUP : ISIS_SRV6_ADJ_NORMAL;
sra->type = backup ? ISIS_SRV6_ADJ_BACKUP : ISIS_SRV6_ADJ_NORMAL;
sra->behavior = behavior;
sra->locator = chunk;
sra->structure.loc_block_len = chunk->block_bits_length;
Expand Down Expand Up @@ -538,7 +538,7 @@ void srv6_endx_sid_del(struct srv6_adjacency *sra)
exit(1);
}

if (sra->type == ISIS_SRV6_LAN_BACKUP && sra->backup_nexthops) {
if (sra->type == ISIS_SRV6_ADJ_BACKUP && sra->backup_nexthops) {
sra->backup_nexthops->del =
(void (*)(void *))isis_nexthop_delete;
list_delete(&sra->backup_nexthops);
Expand Down
2 changes: 1 addition & 1 deletion isisd/isis_srv6.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ struct isis_srv6_locator {
/* SRv6 Adjacency-SID type */
enum srv6_adj_type {
ISIS_SRV6_ADJ_NORMAL = 0,
ISIS_SRV6_LAN_BACKUP,
ISIS_SRV6_ADJ_BACKUP,
};

/* SRv6 Adjacency. */
Expand Down

0 comments on commit 166a82c

Please sign in to comment.