Skip to content

Conversation

@taspelund
Copy link
Contributor

No description provided.

Signed-off-by: Trey Aspelund <[email protected]>
@taspelund taspelund self-assigned this Nov 26, 2025
@taspelund taspelund added the networking Related to the networking. label Nov 26, 2025
maghemite #533 adds impl PartialEq<rdb_types::Prefix> for oxnet::IpNet,
which caused some preexisting type inferences to no longer be resolved
unambiguously (now there are multiple PartialEq<T> for oxnet::IpNet).
This updates these spots to be explicit about the types being compared.

Signed-off-by: Trey Aspelund <[email protected]>
&self,
opctx: &OpContext,
sel: &params::BgpRouteSelector,
_sel: &params::BgpRouteSelector,
Copy link
Contributor

Choose a reason for hiding this comment

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

If we're no longer querying imported routes by ASN, we should propagate that up through the omicron API function networking_bgp_imported_routes_ipv4 so users of the API don't have to specify an ASN that's no longer used for anything. Then we can remove the sel parameter.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed. However, the change I'm envisioning would be to deprecate the old endpoint (/v1/system/networking/bgp-routes-ipv4) and introduce a new endpoint that will not be specific to BGP or IP version (e.g. /v1/system/networking/routes). I'm not sure exactly what this will look like yet from a Nexus API standpoint, so I put this in as a placeholder for the time being.

@taspelund taspelund marked this pull request as draft December 3, 2025 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

networking Related to the networking.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants