Skip to content

Commit

Permalink
fix ISIS P2P state after hold timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
GIC-de committed Nov 6, 2024
1 parent 2d862e0 commit 74a18a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/bngblaster/src/isis/isis_p2p_hello.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ isis_p2p_hello_handler_rx(bbl_network_interface_s *interface, isis_pdu_s *pdu)
if(peer_state == ISIS_PEER_STATE_UP) {
adjacency_p2p->state = ISIS_P2P_ADJACENCY_STATE_UP;
} else {
adjacency_p2p->state = ISIS_PEER_STATE_INIT;
adjacency_p2p->state = ISIS_P2P_ADJACENCY_STATE_INIT;
}
for(int i=0; i<ISIS_LEVELS; i++) {
adjacency = interface->isis_adjacency[i];
Expand Down
3 changes: 2 additions & 1 deletion code/bngblaster/src/isis/isis_peer.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ isis_peer_hold_timeout_p2p(timer_s *timer)
return;
}
peer->state = ISIS_PEER_STATE_DOWN;

adjacency_p2p->state = ISIS_P2P_ADJACENCY_STATE_DOWN;

LOG(ISIS, "ISIS P2P hold timeout to %s on interface %s\n",
isis_system_id_to_str(peer->system_id), interface->name);

Expand Down

0 comments on commit 74a18a5

Please sign in to comment.