Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make optional Azure Peering fields omitempty #84

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions vxc_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,12 +403,12 @@ type PartnerOrderContents struct {
// PartnerOrderAzurePeeringConfig represents the configuration of an Azure peering partner.
type PartnerOrderAzurePeeringConfig struct {
Type string `json:"type"`
PeerASN string `json:"peer_asn"`
PrimarySubnet string `json:"primary_subnet"`
SecondarySubnet string `json:"secondary_subnet"`
PeerASN string `json:"peer_asn,omitempty"`
PrimarySubnet string `json:"primary_subnet,omitempty"`
SecondarySubnet string `json:"secondary_subnet,omitempty"`
Prefixes string `json:"prefixes,omitempty"`
SharedKey string `json:"shared_key,omitempty"`
VLAN int `json:"vlan"`
VLAN int `json:"vlan,omitempty"`
}

// CSPConnection represents the configuration of a CSP connection.
Expand Down