Skip to content

Commit

Permalink
Merge pull request #31 from OpenVPN/feature/network-datasource-fixes
Browse files Browse the repository at this point in the history
Added missing route description in network datasource
  • Loading branch information
sahaqaa authored Jul 30, 2024
2 parents 9e603f0 + 0df4b41 commit b680fdc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cloudconnexa/data_source_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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.",
},
},
},
},
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b680fdc

Please sign in to comment.