Skip to content

Commit

Permalink
Fix minor issue with remote access profile parcel
Browse files Browse the repository at this point in the history
  • Loading branch information
seconroy committed Aug 6, 2024
1 parent 42ac6da commit 92a8322
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions gen/definitions/profile_parcels/system_remote_access.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down

0 comments on commit 92a8322

Please sign in to comment.