From bb3bc63880c0f183a70d1cb9ae43c63fc032cbb0 Mon Sep 17 00:00:00 2001 From: michaelfmnk Date: Tue, 30 Jul 2024 13:31:47 +0200 Subject: [PATCH 1/2] Added missing route description in network datasource --- cloudconnexa/data_source_network.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cloudconnexa/data_source_network.go b/cloudconnexa/data_source_network.go index d833e26..9f51371 100644 --- a/cloudconnexa/data_source_network.go +++ b/cloudconnexa/data_source_network.go @@ -62,6 +62,11 @@ func dataSourceNetwork() *schema.Resource { Computed: true, Description: "The value of the route, either an IPV4 address, an IPV6 address, or a DNS hostname.", }, + "description": { + Type: schema.TypeString, + Computed: true, + Description: "The description of the route.", + }, }, }, }, @@ -147,6 +152,7 @@ func getRoutesSlice(networkRoutes *[]cloudconnexa.Route) []interface{} { route["id"] = r.Id route["subnet"] = r.Subnet route["type"] = r.Type + route["description"] = r.Description routes[i] = route } return routes From 0df4b41d80ac73fa55fd49bdfe5a7ed321c1c53c Mon Sep 17 00:00:00 2001 From: michaelfmnk Date: Tue, 30 Jul 2024 13:41:20 +0200 Subject: [PATCH 2/2] added missing network description --- cloudconnexa/data_source_network.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cloudconnexa/data_source_network.go b/cloudconnexa/data_source_network.go index 9f51371..155517e 100644 --- a/cloudconnexa/data_source_network.go +++ b/cloudconnexa/data_source_network.go @@ -23,6 +23,11 @@ func dataSourceNetwork() *schema.Resource { Required: true, Description: "The network name.", }, + "description": { + Type: schema.TypeString, + Computed: true, + Description: "The description of the network.", + }, "egress": { Type: schema.TypeBool, Computed: true,