diff --git a/gen/definitions/profile_parcels/system_remote_access.yaml b/gen/definitions/profile_parcels/system_remote_access.yaml index 3f71e83e..5142fa67 100644 --- a/gen/definitions/profile_parcels/system_remote_access.yaml +++ b/gen/definitions/profile_parcels/system_remote_access.yaml @@ -126,8 +126,8 @@ attributes: - model_name: antiReplayWindowSize tf_name: ipsec_anti_replay_window_size conditional_attribute: - name: connection_type_ssl - value: false + name: ipsec_enable_anti_replay + value: true type: Bool example: 64 - model_name: ipSecSaLifetime diff --git a/internal/provider/model_sdwan_system_remote_access_profile_parcel.go b/internal/provider/model_sdwan_system_remote_access_profile_parcel.go index 7776969b..656f3a38 100644 --- a/internal/provider/model_sdwan_system_remote_access_profile_parcel.go +++ b/internal/provider/model_sdwan_system_remote_access_profile_parcel.go @@ -362,17 +362,17 @@ func (data SystemRemoteAccess) toBody(ctx context.Context) string { } if !data.IpsecAntiReplayWindowSizeVariable.IsNull() { - if true && data.ConnectionTypeSsl.ValueBool() == false { + if true && data.IpsecEnableAntiReplay.ValueBool() == true { body, _ = sjson.Set(body, path+"antiReplayWindowSize.optionType", "variable") body, _ = sjson.Set(body, path+"antiReplayWindowSize.value", data.IpsecAntiReplayWindowSizeVariable.ValueString()) } } else if data.IpsecAntiReplayWindowSize.IsNull() { - if true && data.ConnectionTypeSsl.ValueBool() == false { + if true && data.IpsecEnableAntiReplay.ValueBool() == true { body, _ = sjson.Set(body, path+"antiReplayWindowSize.optionType", "default") body, _ = sjson.Set(body, path+"antiReplayWindowSize.value", 64) } } else { - if true && data.ConnectionTypeSsl.ValueBool() == false { + if true && data.IpsecEnableAntiReplay.ValueBool() == true { body, _ = sjson.Set(body, path+"antiReplayWindowSize.optionType", "global") body, _ = sjson.Set(body, path+"antiReplayWindowSize.value", data.IpsecAntiReplayWindowSize.ValueInt64()) }