Skip to content

feat(pci-instances): add fip gateway DTO#22121

Open
Rom123Soleil wants to merge 1 commit intofix/handle-instance-creation-multi-fixesfrom
fix/pci-instances-fip-creation
Open

feat(pci-instances): add fip gateway DTO#22121
Rom123Soleil wants to merge 1 commit intofix/handle-instance-creation-multi-fixesfrom
fix/pci-instances-fip-creation

Conversation

@Rom123Soleil
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings February 6, 2026 08:39
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for a Floating IP (FIP) gateway data transfer object (DTO) to the PCI instances module, enabling the system to track and utilize gateway information beyond just the gateway IP address.

Changes:

  • Introduced a new TNetworkGateway type to represent gateway objects with external gateway status, ID, and name
  • Added hasGateway field to private network data alongside the existing hasGatewayIp field
  • Updated gateway availability logic to check for gateway object presence instead of just gateway IP

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
packages/manager/apps/pci-instances/src/domain/entities/configuration.ts Defines the new TNetworkGateway type and adds optional gateway field to TSubnet
packages/manager/apps/pci-instances/src/adapters/tanstack/configuration/right/dto.type.ts Adds TNetworkGatewayOutDTO type and optional gateway field to TSubnetDTO
packages/manager/apps/pci-instances/src/adapters/tanstack/configuration/right/mapper.ts Maps the gateway field from DTO to entity
packages/manager/apps/pci-instances/src/pages/instances/create/view-models/networksViewModel.ts Adds hasGateway to private network data and refactors gateway availability check to use gateway object instead of gateway IP

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions github-actions bot added universe-public-cloud bug Something isn't working labels Feb 6, 2026
@lolottetheclash lolottetheclash changed the base branch from master to fix/handle-instance-creation-multi-fixes February 6, 2026 09:24
@lolottetheclash lolottetheclash requested a review from a team as a code owner February 6, 2026 09:24
Copy link
Contributor

@lolottetheclash lolottetheclash left a comment

Choose a reason for hiding this comment

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

well done @Rom123Soleil 🥳

@Tsiorifamonjena Tsiorifamonjena force-pushed the fix/pci-instances-fip-creation branch from f3dddf7 to 3d447cd Compare February 6, 2026 18:07
Signed-off-by: Romain Dupont <romain@familledupont.org>
Co-authored-by: tsiorifamonjena <tsiorifamonjena.tianjanahary.ext@corp.ovh.com>
Copilot AI review requested due to automatic review settings February 6, 2026 19:11
@Tsiorifamonjena Tsiorifamonjena force-pushed the fix/pci-instances-fip-creation branch from 3d447cd to 336bc19 Compare February 6, 2026 19:11
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working universe-public-cloud

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants