Skip to content

Commit

Permalink
Add networkID param to PVMInstance's DeleteNetwork()
Browse files Browse the repository at this point in the history
  • Loading branch information
dharaneeshvrd authored and yussufsh committed Jun 10, 2024
1 parent 2c275e7 commit d835bd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clients/instance/ibm-pi-instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,10 @@ func (f *IBMPIInstanceClient) AddNetwork(id string, body *models.PVMInstanceAddN
}

// Delete a Network from an Instance
func (f *IBMPIInstanceClient) DeleteNetwork(id string, body *models.PVMInstanceRemoveNetwork) error {
func (f *IBMPIInstanceClient) DeleteNetwork(id, networkID string, body *models.PVMInstanceRemoveNetwork) error {
params := p_cloud_p_vm_instances.NewPcloudPvminstancesNetworksDeleteParams().
WithContext(f.ctx).WithTimeout(helpers.PICreateTimeOut).
WithCloudInstanceID(f.cloudInstanceID).WithPvmInstanceID(id).
WithCloudInstanceID(f.cloudInstanceID).WithPvmInstanceID(id).WithNetworkID(networkID).
WithBody(body)
_, err := f.session.Power.PCloudpVMInstances.PcloudPvminstancesNetworksDelete(params, f.session.AuthInfo(f.cloudInstanceID))
if err != nil {
Expand Down

0 comments on commit d835bd6

Please sign in to comment.