Skip to content

Commit ca2d716

Browse files
authored
fix(s2s_vpn): change ip to ipnet on customer gateway modification rpc (scaleway#2869)
1 parent da89e63 commit ca2d716

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

api/s2s_vpn/v1alpha1/s2s_vpn_sdk.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -950,10 +950,10 @@ type CreateCustomerGatewayRequest struct {
950950
Tags []string `json:"tags"`
951951

952952
// IPv4Public: public IPv4 address of the customer gateway.
953-
IPv4Public *net.IP `json:"ipv4_public,omitempty"`
953+
IPv4Public *scw.IPNet `json:"ipv4_public,omitempty"`
954954

955955
// IPv6Public: public IPv6 address of the customer gateway.
956-
IPv6Public *net.IP `json:"ipv6_public,omitempty"`
956+
IPv6Public *scw.IPNet `json:"ipv6_public,omitempty"`
957957

958958
// Asn: aS Number of the customer gateway.
959959
Asn uint32 `json:"asn"`
@@ -1479,10 +1479,10 @@ type UpdateCustomerGatewayRequest struct {
14791479
Tags *[]string `json:"tags,omitempty"`
14801480

14811481
// IPv4Public: public IPv4 address of the customer gateway.
1482-
IPv4Public *net.IP `json:"ipv4_public,omitempty"`
1482+
IPv4Public *scw.IPNet `json:"ipv4_public,omitempty"`
14831483

14841484
// IPv6Public: public IPv6 address of the customer gateway.
1485-
IPv6Public *net.IP `json:"ipv6_public,omitempty"`
1485+
IPv6Public *scw.IPNet `json:"ipv6_public,omitempty"`
14861486

14871487
// Asn: aS Number of the customer gateway.
14881488
Asn *uint32 `json:"asn,omitempty"`

0 commit comments

Comments
 (0)