Skip to content

Commit 853cc76

Browse files
committed
Add missed condition
1 parent cfd6470 commit 853cc76

5 files changed

+9
-0
lines changed

gen/templates/profile_parcels/model.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,9 @@ func (data *{{camelCase .Name}}) fromBody(ctx context.Context, res gjson.Result)
520520
data.{{toGoName .TfName}} = append(data.{{toGoName .TfName}}, item)
521521
return true
522522
})
523+
{{- if ne .ConditionalAttribute.Name ""}}
524+
data.{{toGoName .ConditionalAttribute.Name}} = {{if eq .ConditionalAttribute.Type "Bool"}}types.BoolValue({{.ConditionalAttribute.Value}}){{else}}types.StringValue("{{.ConditionalAttribute.Value}}"){{end}}
525+
{{- end}}
523526
}
524527
{{- end}}
525528
{{- end}}

internal/provider/model_sdwan_dns_security_policy.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ func (data *DNSSecurity) fromBody(ctx context.Context, res gjson.Result) {
278278
data.TargetVpns = append(data.TargetVpns, item)
279279
return true
280280
})
281+
data.MatchAllVpn = types.BoolValue(false)
281282
}
282283
}
283284

internal/provider/model_sdwan_service_routing_eigrp_feature.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,7 @@ func (data *ServiceRoutingEIGRP) fromBody(ctx context.Context, res gjson.Result)
510510
data.Md5Keys = append(data.Md5Keys, item)
511511
return true
512512
})
513+
data.AuthenticationType = types.StringValue("md5")
513514
}
514515
if value := res.Get(path + "afInterface"); value.Exists() && len(value.Array()) > 0 {
515516
data.Interfaces = make([]ServiceRoutingEIGRPInterfaces, 0)

internal/provider/model_sdwan_transport_management_vpn_interface_ethernet_feature.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,7 @@ func (data *TransportManagementVPNInterfaceEthernet) fromBody(ctx context.Contex
654654
data.Ipv4SecondaryAddresses = append(data.Ipv4SecondaryAddresses, item)
655655
return true
656656
})
657+
data.Ipv4ConfigurationType = types.StringValue("static")
657658
}
658659
data.Ipv4DhcpHelper = types.SetNull(types.StringType)
659660
data.Ipv4DhcpHelperVariable = types.StringNull()

internal/provider/model_sdwan_transport_wan_vpn_interface_ethernet_feature.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2092,6 +2092,7 @@ func (data *TransportWANVPNInterfaceEthernet) fromBody(ctx context.Context, res
20922092
data.Ipv4SecondaryAddresses = append(data.Ipv4SecondaryAddresses, item)
20932093
return true
20942094
})
2095+
data.Ipv4ConfigurationType = types.StringValue("static")
20952096
}
20962097
data.Ipv4DhcpHelper = types.SetNull(types.StringType)
20972098
data.Ipv4DhcpHelperVariable = types.StringNull()
@@ -2129,6 +2130,7 @@ func (data *TransportWANVPNInterfaceEthernet) fromBody(ctx context.Context, res
21292130
data.Ipv6DhcpSecondaryAddress = append(data.Ipv6DhcpSecondaryAddress, item)
21302131
return true
21312132
})
2133+
data.Ipv6ConfigurationType = types.StringValue("dynamic")
21322134
}
21332135
data.Ipv6Address = types.StringNull()
21342136
data.Ipv6AddressVariable = types.StringNull()
@@ -2158,6 +2160,7 @@ func (data *TransportWANVPNInterfaceEthernet) fromBody(ctx context.Context, res
21582160
data.Ipv6SecondaryAddresses = append(data.Ipv6SecondaryAddresses, item)
21592161
return true
21602162
})
2163+
data.Ipv6ConfigurationType = types.StringValue("static")
21612164
}
21622165
data.IperfServer = types.StringNull()
21632166
data.IperfServerVariable = types.StringNull()

0 commit comments

Comments
 (0)