Skip to content

Conversation

edipascale
Copy link
Contributor

Fix #1111

Copy link

github-actions bot commented Oct 3, 2025

🚀 Temp artifacts published: v0-9558ecbef 🚀

@edipascale edipascale force-pushed the ema/hydration-checks branch from 9558ecb to 80f7990 Compare October 3, 2025 09:08
Copy link

github-actions bot commented Oct 3, 2025

🚀 Temp artifacts published: v0-80f7990a2 🚀

@edipascale edipascale force-pushed the ema/hydration-checks branch from 80f7990 to 6160bca Compare October 3, 2025 09:47
Copy link

github-actions bot commented Oct 3, 2025

🚀 Temp artifacts published: v0-6160bca95 🚀

@edipascale edipascale force-pushed the ema/hydration-checks branch from 6160bca to c438989 Compare October 3, 2025 10:12
Copy link

github-actions bot commented Oct 3, 2025

🚀 Temp artifacts published: v0-c438989ff 🚀

@edipascale edipascale force-pushed the ema/hydration-checks branch from c438989 to 5b20270 Compare October 3, 2025 15:20
Copy link

github-actions bot commented Oct 3, 2025

🚀 Temp artifacts published: v0-5b2027090 🚀

@edipascale edipascale force-pushed the ema/hydration-checks branch from 5b20270 to 747ca04 Compare October 3, 2025 15:45
Copy link

github-actions bot commented Oct 3, 2025

🚀 Temp artifacts published: v0-747ca04c8 🚀

@edipascale
Copy link
Contributor Author

tested this on my vm, unless the CI finds some hidden issue this should be good

@edipascale edipascale marked this pull request as ready for review October 3, 2025 16:06
@edipascale edipascale requested a review from a team as a code owner October 3, 2025 16:06
@Frostman Frostman requested a review from Copilot October 3, 2025 20:46
Copy link

@Copilot 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 implements hydration validation checks as part of fabric CRD validation to ensure proper configuration of network switches and connections. The changes add validation logic to verify IP address uniqueness, subnet containment, and MCLAG peer consistency.

Key changes:

  • Adds comprehensive IP address validation for switches including management, protocol, and VTEP IP uniqueness checks
  • Implements fabric connection IP validation for spine-leaf, mesh, and gateway connections
  • Validates ASN (Autonomous System Number) consistency for spine switches and uniqueness for leaf switches

Reviewed Changes

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

File Description
api/wiring/v1beta1/switch_types.go Adds HydrationValidation method to validate switch IP addresses, ASN assignments, and MCLAG peer configurations
api/wiring/v1beta1/connection_types.go Extends connection validation to check fabric IP address uniqueness and subnet containment across different connection types

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@edipascale edipascale force-pushed the ema/hydration-checks branch from 747ca04 to ce6a217 Compare October 6, 2025 07:58
Copy link

github-actions bot commented Oct 6, 2025

🚀 Temp artifacts published: v0-ce6a21796 🚀

@edipascale edipascale force-pushed the ema/hydration-checks branch from ce6a217 to 27c62f8 Compare October 6, 2025 12:38
Copy link

github-actions bot commented Oct 6, 2025

🚀 Temp artifacts published: v0-27c62f8ef 🚀

@edipascale edipascale marked this pull request as draft October 6, 2025 13:08
@edipascale edipascale force-pushed the ema/hydration-checks branch from 27c62f8 to 709a591 Compare October 6, 2025 16:04
@edipascale edipascale marked this pull request as ready for review October 6, 2025 16:04
Copy link

github-actions bot commented Oct 6, 2025

🚀 Temp artifacts published: v0-709a591a1 🚀

@edipascale edipascale force-pushed the ema/hydration-checks branch from 709a591 to 9f2d14f Compare October 8, 2025 14:19
@edipascale edipascale requested a review from Copilot October 8, 2025 14:23
Copy link

@Copilot 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

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


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@edipascale edipascale force-pushed the ema/hydration-checks branch from 9f2d14f to 5c7b62f Compare October 8, 2025 14:25
Copy link

github-actions bot commented Oct 8, 2025

🚀 Temp artifacts published: v0-5c7b62f54 🚀

// TODO: collect gateways as well for VTEP and protocol IP uniqueness checks
// (cannot be done now as gateway webhook would create a circular dependency)

// FIXME: ASN ranges validation is not possible as they are defined in fabricator
Copy link
Member

Choose a reason for hiding this comment

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

For missing data, we should extend meta.FabricConfig and pass it from the fabricator, could you please take a look into it in a new PR?

@Frostman Frostman merged commit 97f7c4c into master Oct 9, 2025
16 checks passed
@Frostman Frostman deleted the ema/hydration-checks branch October 9, 2025 04:44
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.

Replicate all hydration-level checks to happen in Fabric object validation too

2 participants