Skip to content

Commit

Permalink
custom_ip_prefix: do not set noInternetAdvertise when provisioning, c…
Browse files Browse the repository at this point in the history
…auses error "CustomIpPrefix resource not support noInternetAdvertise Commission or Decommission"
  • Loading branch information
manicminer committed Apr 12, 2023
1 parent 767ae9e commit d531165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/services/network/custom_ip_prefix_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ func (r CustomIpPrefixResource) Create() sdk.ResourceFunc {
SignedMessage: &model.WANValidationSignedMessage,
AuthorizationMessage: &authorizationMessage,
CommissionedState: network.CommissionedStateProvisioning,
NoInternetAdvertise: &model.InternetAdvertisingDisabled,
},
}

Expand Down Expand Up @@ -451,6 +450,7 @@ func (r CustomIpPrefixResource) updateCommissionedState(ctx context.Context, id
}

for _, steppingState := range path {
// Determine whether to set the noInternetAdvertise flag, which can only be set at the point of transitioning to `Commissioning`
var noInternetAdvertise *bool
if steppingState == network.CommissionedStateCommissioning {
switch desiredState {
Expand Down

0 comments on commit d531165

Please sign in to comment.