networks acceptance tests
diff --git a/rackspace/client.go b/rackspace/client.go
index 86a78a1..f0f8597 100644
--- a/rackspace/client.go
+++ b/rackspace/client.go
@@ -142,3 +142,8 @@
func NewObjectStorageV1(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error) {
return os.NewObjectStorageV1(client, eo)
}
+
+// NewNetworkV2 creates a ServiceClient that may be used with the Rackspace v2 networking package.
+func NewNetworkV2(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error) {
+ return NewComputeV2(client, eo)
+}
diff --git a/rackspace/networking/v2/networks/requests.go b/rackspace/networking/v2/networks/requests.go
index 2327dff..d3c973e 100644
--- a/rackspace/networking/v2/networks/requests.go
+++ b/rackspace/networking/v2/networks/requests.go
@@ -85,7 +85,7 @@
MoreHeaders: c.AuthenticatedHeaders(),
ReqBody: &reqBody,
Results: &res.Body,
- OkCodes: []int{201, 202},
+ OkCodes: []int{200, 201, 202},
})
return res
}