From 4710183925ba7616f1e058ba5af764ccab03da0d Mon Sep 17 00:00:00 2001 From: ismirlia <90468712+ismirlia@users.noreply.github.com> Date: Mon, 29 Jul 2024 15:16:40 -0500 Subject: [PATCH] Block gateway network update for stratos (#429) --- clients/instance/ibm-pi-network.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/clients/instance/ibm-pi-network.go b/clients/instance/ibm-pi-network.go index 1b823234..63eb90e0 100644 --- a/clients/instance/ibm-pi-network.go +++ b/clients/instance/ibm-pi-network.go @@ -78,6 +78,10 @@ func (f *IBMPINetworkClient) Create(body *models.NetworkCreate) (*models.Network // Update a Network func (f *IBMPINetworkClient) Update(id string, body *models.NetworkUpdate) (*models.Network, error) { + // Check for satellite differences in this endpoint + if f.session.IsOnPrem() && body.Gateway != nil { + return nil, fmt.Errorf("gateway parameter is not supported in satellite location, check documentation") + } params := p_cloud_networks.NewPcloudNetworksPutParams(). WithContext(f.ctx).WithTimeout(helpers.PIUpdateTimeOut). WithCloudInstanceID(f.cloudInstanceID).WithNetworkID(id).