Repository navigation
Move some BGP external API types from omicron-common to nexus-types - #9915
Merged
Merged
Conversation
sunshowers
approved these changes
Feb 25, 2026
sunshowers
reviewed
Feb 25, 2026
Contributor
Author
|
84ddfe9 is worth a quick look. It moves a few more types that have not had multiple versions: It also fixes the broken ls-apis check by adding a |
sunshowers
approved these changes
Feb 26, 2026
Moves the latest versions of `BgpConfig`, `BgpImported`, and `BgpExported` to the nexus-types version where they were introduced. Allows us to address some lingering todos about `From` impls in the wrong places on older versions. Part of #9801.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR moves four types.
BgpAnnouncementandBgpAnnounceSethave only ever had one version; these are just straight up moves fromcommontonexus/types/versions/src/initial/networking.rs.BgpPeerStateandBgpPeerStatusare more complicated. I believe the state of them on main, prior to this PR, is:nexus/types/versions/src/initial/networking.rsnexus/types/versions/src/bgp_peer_collision_state/networking.rs(akav2025_12_12_00).common/src/api/external/mod.rs.BgpPeerStatushas a new field (peer_id), butBgpPeerStateis duplicated completely unchanged. Conversions are split betweenFromimpls inside the second version innexus-typesand inline innexus/external-api.After this PR, we should have:
BgpPeerStateis the second version (first defined inv2025_12_12_00).BgpPeerStatusis now innexus/types/versions/src/bgp_unnumbered_peers/networking.rs(akav2026_02_13_01).latest::networking, andFromimpls are colocated as per RFD 619.There should be no OpenAPI changes; we're only moving things around internally.
Part of #9801.