From e7ef8bb6471df06059bb3b53b329bbd520b188a8 Mon Sep 17 00:00:00 2001 From: Gavin Williams Date: Thu, 6 Oct 2016 16:04:21 +0100 Subject: [PATCH] provider/openstack: gophercloud migration: Ordering tweak in types.go - Now alphabetical :) --- builtin/providers/openstack/types.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/builtin/providers/openstack/types.go b/builtin/providers/openstack/types.go index 9cc3b087a..72defd52a 100644 --- a/builtin/providers/openstack/types.go +++ b/builtin/providers/openstack/types.go @@ -19,18 +19,6 @@ func (opts NetworkCreateOpts) ToNetworkCreateMap() (map[string]interface{}, erro return BuildRequest(opts, "network") } -// SubnetCreateOpts represents the attributes used when creating a new subnet. -type SubnetCreateOpts struct { - subnets.CreateOpts - ValueSpecs map[string]string `json:"value_specs,omitempty"` -} - -// ToSubnetCreateMap casts a CreateOpts struct to a map. -// It overrides subnets.ToSubnetCreateMap to add the ValueSpecs field. -func (opts SubnetCreateOpts) ToSubnetCreateMap() (map[string]interface{}, error) { - return BuildRequest(opts, "subnet") -} - // RouterCreateOpts represents the attributes used when creating a new router. type RouterCreateOpts struct { routers.CreateOpts @@ -42,3 +30,15 @@ type RouterCreateOpts struct { func (opts RouterCreateOpts) ToRouterCreateMap() (map[string]interface{}, error) { return BuildRequest(opts, "router") } + +// SubnetCreateOpts represents the attributes used when creating a new subnet. +type SubnetCreateOpts struct { + subnets.CreateOpts + ValueSpecs map[string]string `json:"value_specs,omitempty"` +} + +// ToSubnetCreateMap casts a CreateOpts struct to a map. +// It overrides subnets.ToSubnetCreateMap to add the ValueSpecs field. +func (opts SubnetCreateOpts) ToSubnetCreateMap() (map[string]interface{}, error) { + return BuildRequest(opts, "subnet") +}