From 137e107e591586b1f4206bbc387f322ddba52ec8 Mon Sep 17 00:00:00 2001 From: ybhalchim Date: Wed, 30 Oct 2024 13:17:14 +0530 Subject: [PATCH 1/2] Fix: Resolve Dhcp Data Source host ID retrieval issue causing null values in HA (#162) --- internal/service/ipam/api_dhcp_host_data_source.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/service/ipam/api_dhcp_host_data_source.go b/internal/service/ipam/api_dhcp_host_data_source.go index eb0135f6..4ed164d3 100644 --- a/internal/service/ipam/api_dhcp_host_data_source.go +++ b/internal/service/ipam/api_dhcp_host_data_source.go @@ -282,6 +282,7 @@ func (m *DhcpHostModel) Flatten(ctx context.Context, from *ipam.Host, diags *dia if m == nil { *m = DhcpHostModel{} } + m.Id = flex.FlattenStringPointer(from.Id) m.Address = flex.FlattenStringPointer(from.Address) m.AnycastAddresses = flex.FlattenFrameworkListString(ctx, from.AnycastAddresses, diags) m.AssociatedServer = FlattenIpamsvcHostAssociatedServer(ctx, from.AssociatedServer, diags) From b64b24fbfcd4cb0163d62da0cbfce9340049b5f3 Mon Sep 17 00:00:00 2001 From: VishrutiBuddhadev Date: Wed, 30 Oct 2024 15:07:15 +0530 Subject: [PATCH 2/2] refactored anycast host example (#163) --- docs/resources/anycast_host.md | 3 +-- examples/resources/bloxone_anycast_host/resource.tf | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/resources/anycast_host.md b/docs/resources/anycast_host.md index 38cb214c..4c179a76 100644 --- a/docs/resources/anycast_host.md +++ b/docs/resources/anycast_host.md @@ -34,7 +34,7 @@ resource "bloxone_anycast_host" "example" { # Adding the anycast config profile and enabling BGP routing protocol anycast_config_refs = [ { - anycast_config_name = bloxone_anycast_config.test_onprem_hosts.name + anycast_config_name = bloxone_anycast_config.example.name routing_protocols = ["BGP", "OSPF"] } ] @@ -42,7 +42,6 @@ resource "bloxone_anycast_host" "example" { # Adding the BGP configuration config_bgp = { asn = "6500" - asn_text = "6500" holddown_secs = 180 neighbors = [ { diff --git a/examples/resources/bloxone_anycast_host/resource.tf b/examples/resources/bloxone_anycast_host/resource.tf index 6f9d2d0e..cb8cd8d8 100644 --- a/examples/resources/bloxone_anycast_host/resource.tf +++ b/examples/resources/bloxone_anycast_host/resource.tf @@ -19,7 +19,7 @@ resource "bloxone_anycast_host" "example" { # Adding the anycast config profile and enabling BGP routing protocol anycast_config_refs = [ { - anycast_config_name = bloxone_anycast_config.test_onprem_hosts.name + anycast_config_name = bloxone_anycast_config.example.name routing_protocols = ["BGP", "OSPF"] } ] @@ -27,7 +27,6 @@ resource "bloxone_anycast_host" "example" { # Adding the BGP configuration config_bgp = { asn = "6500" - asn_text = "6500" holddown_secs = 180 neighbors = [ {