Skip to content

Commit

Permalink
Merge pull request #1216 from citrix/ip6tunnelparam
Browse files Browse the repository at this point in the history
Udpated read func to handle the attribute that was not received from …
  • Loading branch information
rohit-myali authored Oct 15, 2024
2 parents 4d08263 + afbe34e commit fe8d646
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions citrixadc/resource_citrixadc_ip6tunnelparam.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (

"fmt"
"log"
"strconv"
)

func resourceCitrixAdcIp6tunnelparam() *schema.Resource {
Expand Down Expand Up @@ -89,8 +88,9 @@ func readIp6tunnelparamFunc(d *schema.ResourceData, meta interface{}) error {
return nil
}
d.Set("dropfrag", data["dropfrag"])
val, _ := strconv.Atoi(data["dropfragcputhreshold"].(string))
d.Set("dropfragcputhreshold", val)
// commenting as this attribute was not recieved from NetScaler
// val, _ := strconv.Atoi(data["dropfragcputhreshold"].(string))
// d.Set("dropfragcputhreshold", val)
d.Set("srcip", data["srcip"])
d.Set("srciproundrobin", data["srciproundrobin"])
d.Set("useclientsourceipv6", data["useclientsourceipv6"])
Expand Down

0 comments on commit fe8d646

Please sign in to comment.