From f75e24313bda44a0f5bf9704ed5a78c93187a090 Mon Sep 17 00:00:00 2001 From: Axel Ismirlian Date: Wed, 24 Jul 2024 11:31:09 -0500 Subject: [PATCH] Block gateway network update for stratos --- 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).