Skip to content

Commit 11d6084

Browse files
authored
feat(interlink): add support for PeerAsn (scaleway#2498)
1 parent 64dde4e commit 11d6084

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

api/interlink/v1beta1/interlink_sdk.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,9 @@ type CreateLinkRequest struct {
711711
// PartnerID: if set, creates a hosted link on a partner's connection. Specify the ID of the chosen partner, who already has a shared connection with available bandwidth.
712712
// Precisely one of ConnectionID, PartnerID must be set.
713713
PartnerID *string `json:"partner_id,omitempty"`
714+
715+
// PeerAsn: for self-hosted links we need the peer AS Number to establish BGP session. If not given, a default one will be assigned.
716+
PeerAsn *uint32 `json:"peer_asn,omitempty"`
714717
}
715718

716719
// CreateRoutingPolicyRequest: create routing policy request.
@@ -1165,6 +1168,9 @@ type UpdateLinkRequest struct {
11651168

11661169
// Tags: list of tags to apply to the link.
11671170
Tags *[]string `json:"tags,omitempty"`
1171+
1172+
// PeerAsn: for self-hosted links, AS Number to establish BGP session.
1173+
PeerAsn *uint32 `json:"peer_asn,omitempty"`
11681174
}
11691175

11701176
// UpdateRoutingPolicyRequest: update routing policy request.

0 commit comments

Comments
 (0)