Skip to content

Conversation

@bgm-malbeclabs
Copy link
Contributor

@bgm-malbeclabs bgm-malbeclabs commented Apr 22, 2025

What Changed

This PR adds bgp session status changes to the doubelzerod and is accessible through the cli with doublezero status. The session type is held in memory and changes when the corebgp update handler gets a new message. The handle update conditions are described here The session types are:

  • unknown
  • pending
  • initializing
  • up
  • disconnected

There's also a timestamp that is updated on session type update.

E2E test fixtures will be updated in #220 to allow for dynamic values and should make the tests less brittle. Adding it in a subsequent PR to keep this PR small and the timestamp isn't used yet.

This also fixes a type respose to response in the service controller module.

Evidence of Testing

  • e2e tests pass
  • manual verification of the cluster locally using the e2e container

@bgm-malbeclabs bgm-malbeclabs force-pushed the dz_status_session_info branch from a16802c to 8720a09 Compare April 24, 2025 21:57
@bgm-malbeclabs bgm-malbeclabs force-pushed the dz_status_session_info branch from 8720a09 to 7e0a688 Compare April 25, 2025 03:25
Copy link
Contributor

@juan-malbeclabs juan-malbeclabs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rust code LGTM

@bgm-malbeclabs bgm-malbeclabs force-pushed the dz_status_session_info branch from d8b60ed to 2ce6dc2 Compare April 25, 2025 19:22
@bgm-malbeclabs bgm-malbeclabs force-pushed the dz_status_session_info branch from 2ce6dc2 to dbdc47b Compare April 25, 2025 19:47
@bgm-malbeclabs bgm-malbeclabs merged commit bcdeb67 into main Apr 25, 2025
6 checks passed
@bgm-malbeclabs bgm-malbeclabs deleted the dz_status_session_info branch April 25, 2025 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants