tailcfg: add vendor to DERPRegion

Allows us to easily track which vendor (hosting provider) is hosting the DERP relay nodes in each region.

Updates tailscale/corp#29615

Signed-off-by: Dylan Bargatze <dylan@tailscale.com>
This commit is contained in:
Dylan Bargatze 2025-06-13 17:02:00 -04:00
parent 6a4d92ecef
commit a1ac94aedb
No known key found for this signature in database
3 changed files with 6 additions and 0 deletions

View File

@ -92,6 +92,10 @@ type DERPRegion struct {
// "San Francisco", "Singapore", "Frankfurt", etc.
RegionName string
// RegionVendor is the name of the hosting provider for the region:
// "NetActuate", "Digital Ocean", "Hetzner", etc.
RegionVendor string
// Latitude, Longitude are optional geographical coordinates of the DERP region's city, in degrees.
Latitude float64 `json:",omitempty"`
Longitude float64 `json:",omitempty"`

View File

@ -423,6 +423,7 @@ var _DERPRegionCloneNeedsRegeneration = DERPRegion(struct {
RegionID int
RegionCode string
RegionName string
RegionVendor string
Latitude float64
Longitude float64
Avoid bool

View File

@ -899,6 +899,7 @@ var _DERPRegionViewNeedsRegeneration = DERPRegion(struct {
RegionID int
RegionCode string
RegionName string
RegionVendor string
Latitude float64
Longitude float64
Avoid bool