Skip to content

Commit

Permalink
Fix vpn interface cellular templating
Browse files Browse the repository at this point in the history
  • Loading branch information
danischm committed Dec 4, 2024
1 parent 0a09664 commit 726920d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.5.3 (unreleased)

- Fix template rendering issue with `sdwan_cisco_vpn_interface_cellular_feature_template` resource, [link](https://github.com/CiscoDevNet/terraform-provider-sdwan/issues/378)

## 0.5.2

- Update documentation categories
Expand Down
4 changes: 4 additions & 0 deletions docs/guides/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ description: |-

# Changelog

## 0.5.3 (unreleased)

- Fix template rendering issue with `sdwan_cisco_vpn_interface_cellular_feature_template` resource, [link](https://github.com/CiscoDevNet/terraform-provider-sdwan/issues/378)

## 0.5.2

- Update documentation categories
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ func (data VPNInterfaceCellular) getModel() string {

// End of section. //template:end getModel

// Section below is generated&owned by "gen/generator.go". //template:begin toBody
func (data VPNInterfaceCellular) toBody(ctx context.Context) string {
body := ""

Expand All @@ -258,6 +257,7 @@ func (data VPNInterfaceCellular) toBody(ctx context.Context) string {

path := "templateDefinition."

body, _ = sjson.Set(body, path+"ip.address", map[string]interface{}{})
if !data.CellularInterfaceNameVariable.IsNull() {
body, _ = sjson.Set(body, path+"if-name."+"vipObjectType", "object")
body, _ = sjson.Set(body, path+"if-name."+"vipType", "variableName")
Expand Down Expand Up @@ -1343,8 +1343,6 @@ func (data VPNInterfaceCellular) toBody(ctx context.Context) string {
return body
}

// End of section. //template:end toBody

// Section below is generated&owned by "gen/generator.go". //template:begin fromBody
func (data *VPNInterfaceCellular) fromBody(ctx context.Context, res gjson.Result) {
if value := res.Get("deviceType"); value.Exists() {
Expand Down
4 changes: 4 additions & 0 deletions templates/guides/changelog.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ description: |-

# Changelog

## 0.5.3 (unreleased)

- Fix template rendering issue with `sdwan_cisco_vpn_interface_cellular_feature_template` resource, [link](https://github.com/CiscoDevNet/terraform-provider-sdwan/issues/378)

## 0.5.2

- Update documentation categories
Expand Down

0 comments on commit 726920d

Please sign in to comment.