Modifying opts and model structs with stricter types
diff --git a/openstack/networking/v2/networks/results.go b/openstack/networking/v2/networks/results.go
index 1f4b809..78bdff5 100644
--- a/openstack/networking/v2/networks/results.go
+++ b/openstack/networking/v2/networks/results.go
@@ -12,17 +12,26 @@
}
type Network struct {
- Status string `mapstructure:"status" json:"status"`
- Subnets []interface{} `mapstructure:"subnets" json:"subnets"`
- Name string `mapstructure:"name" json:"name"`
- AdminStateUp bool `mapstructure:"admin_state_up" json:"admin_state_up"`
- TenantID string `mapstructure:"tenant_id" json:"tenant_id"`
- Shared bool `mapstructure:"shared" json:"shared"`
- ID string `mapstructure:"id" json:"id"`
- ProviderSegmentationID int `mapstructure:"provider:segmentation_id" json:"provider:segmentation_id"`
- ProviderPhysicalNetwork string `mapstructure:"provider:physical_network" json:"provider:physical_network"`
- ProviderNetworkType string `mapstructure:"provider:network_type" json:"provider:network_type"`
- RouterExternal bool `mapstructure:"router:external" json:"router:external"`
+ // UUID for the network
+ ID string `mapstructure:"id" json:"id"`
+ // Human-readable name for the network. Might not be unique.
+ Name string `mapstructure:"name" json:"name"`
+ // The administrative state of network. If false (down), the network does not forward packets.
+ AdminStateUp bool `mapstructure:"admin_state_up" json:"admin_state_up"`
+ // Indicates whether network is currently operational. Possible values include
+ // `ACTIVE', `DOWN', `BUILD', or `ERROR'. Plug-ins might define additional values.
+ Status string `mapstructure:"status" json:"status"`
+ // Subnets associated with this network.
+ Subnets []string `mapstructure:"subnets" json:"subnets"`
+ // Owner of network. Only admin users can specify a tenant_id other than its own.
+ TenantID string `mapstructure:"tenant_id" json:"tenant_id"`
+ // Specifies whether the network resource can be accessed by any tenant or not.
+ Shared bool `mapstructure:"shared" json:"shared"`
+
+ ProviderSegmentationID int `mapstructure:"provider:segmentation_id" json:"provider:segmentation_id"`
+ ProviderPhysicalNetwork string `mapstructure:"provider:physical_network" json:"provider:physical_network"`
+ ProviderNetworkType string `mapstructure:"provider:network_type" json:"provider:network_type"`
+ RouterExternal bool `mapstructure:"router:external" json:"router:external"`
}
type NetworkCreateResult struct {