diff --git a/cloudconnexa/data_source_network.go b/cloudconnexa/data_source_network.go index d833e26..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, @@ -62,6 +67,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 +157,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