Skip to content

Commit c605fa6

Browse files
authored
feat(s2s_vpn): accept custom private interco IPs on connection creation (scaleway#2761)
1 parent 6d62825 commit c605fa6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

api/s2s_vpn/v1alpha1/s2s_vpn_sdk.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,8 @@ type BgpSession struct {
611611
RoutingPolicyID string `json:"routing_policy_id"`
612612

613613
PrivateIP scw.IPNet `json:"private_ip"`
614+
615+
PeerPrivateIP scw.IPNet `json:"peer_private_ip"`
614616
}
615617

616618
// ConnectionCipher: connection cipher.
@@ -638,6 +640,10 @@ type VpnGatewayPublicConfig struct {
638640
// CreateConnectionRequestBgpConfig: create connection request bgp config.
639641
type CreateConnectionRequestBgpConfig struct {
640642
RoutingPolicyID string `json:"routing_policy_id"`
643+
644+
PrivateIP *scw.IPNet `json:"private_ip"`
645+
646+
PeerPrivateIP *scw.IPNet `json:"peer_private_ip"`
641647
}
642648

643649
// Connection: connection.

0 commit comments

Comments
 (0)