Skip to content

Conversation

@edipascale
Copy link
Contributor

@edipascale edipascale commented Sep 16, 2025

@edipascale edipascale force-pushed the ema/externals-as-vpc branch 4 times, most recently from 886e0fb to 97f2f1d Compare September 23, 2025 14:11
@Frostman Frostman requested a review from Copilot September 30, 2025 20:55
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 gateway external peerings to complement existing switch external peerings. The changes enable users to configure external connectivity through gateways in addition to the existing switch-based approach.

  • Adds gateway mode support for external peerings with new gw/gateway option
  • Implements gateway peering logic that creates PeeringSpec entries for VPC-to-external connectivity
  • Updates connectivity testing to check both switch and gateway external reachability
Comments suppressed due to low confidence (1)

pkg/hhfab/testing.go:1

  • The condition len(prefixParts) > 1 should be len(prefixParts) != 2 since splitting by underscore should result in exactly 2 parts for a valid prefix with underscore. The current condition will incorrectly reject valid prefixes.
// Copyright 2024 Hedgehog

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

@edipascale edipascale force-pushed the ema/externals-as-vpc branch 2 times, most recently from bd1e0c4 to b5a6473 Compare October 7, 2025 08:24
@edipascale edipascale marked this pull request as ready for review October 7, 2025 20:59
@edipascale edipascale requested a review from a team as a code owner October 7, 2025 20:59
@edipascale edipascale force-pushed the ema/externals-as-vpc branch 2 times, most recently from 99460f2 to ff0f1ed Compare October 16, 2025 14:04
@edipascale edipascale linked an issue Oct 21, 2025 that may be closed by this pull request
@edipascale edipascale force-pushed the ema/externals-as-vpc branch from ff0f1ed to 901c072 Compare October 21, 2025 08:02
@edipascale edipascale force-pushed the ema/externals-as-vpc branch from 901c072 to 7af5208 Compare November 3, 2025 11:03
@edipascale edipascale requested a review from Frostman November 3, 2025 17:20
@edipascale edipascale force-pushed the ema/externals-as-vpc branch from 7af5208 to cb09227 Compare November 3, 2025 17:20
vpc: {
Expose: []gwapi.PeeringEntryExpose{vpcExpose},
},
ext: {
Copy link
Member

Choose a reason for hiding this comment

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

I think it should have a ext. prefix

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I should have probably tested this again after the changes in the fabric PR 😅 it works fine now. although I don't really like that the user has to create a peering with an ext. prefix to the external name, this will create confusion imho

@edipascale edipascale force-pushed the ema/externals-as-vpc branch from cb09227 to d252995 Compare November 4, 2025 09:04
@edipascale edipascale requested a review from Frostman November 4, 2025 09:07
@edipascale edipascale force-pushed the ema/externals-as-vpc branch from d252995 to 8d54cdf Compare November 5, 2025 11:35
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.

Support gateway peering for BGP externals in hhfab tools

3 participants