Skip to content

Commit

Permalink
fix: Removing log statement and fixing deep schema type check for dir…
Browse files Browse the repository at this point in the history
…ect ipv4
  • Loading branch information
srushti-patl committed Jul 25, 2024
1 parent 5bec418 commit 559e45f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions equinix/resource_fabric_routing_protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ func routingProtocolPayloadFromType(type_ string, d *schema.ResourceData) fabric
schemaDirectIpv4 := d.Get("direct_ipv4")
if schemaDirectIpv4 != nil {
directIpv4 := routingProtocolDirectIpv4TerraformToGo(schemaDirectIpv4.(*schema.Set).List())
if !reflect.DeepEqual(directIpv4, fabricv4.BGPConnectionIpv6{}) {
if !reflect.DeepEqual(directIpv4, fabricv4.DirectConnectionIpv4{}) {
directRP.SetDirectIpv4(directIpv4)
}
}
Expand Down Expand Up @@ -691,7 +691,6 @@ func routingProtocolDirectIpv6TerraformToGo(routingProtocolDirectIpv6Request []i
directIpv6Map := routingProtocolDirectIpv6Request[0].(map[string]interface{})
equinixIfaceIp := directIpv6Map["equinix_iface_ip"].(string)
if equinixIfaceIp != "" {
log.Print("[DEBUG] Setting empty string to direct IPV6")
rpDirectIpv6.SetEquinixIfaceIp(equinixIfaceIp)
}

Expand Down

0 comments on commit 559e45f

Please sign in to comment.