Adding ability to list LB algorithms
diff --git a/rackspace/lb/v1/lbs/urls.go b/rackspace/lb/v1/lbs/urls.go
index 1de038c..7b435b3 100644
--- a/rackspace/lb/v1/lbs/urls.go
+++ b/rackspace/lb/v1/lbs/urls.go
@@ -7,8 +7,9 @@
)
const (
- path = "loadbalancers"
- protocolsPath = "protocols"
+ path = "loadbalancers"
+ protocolsPath = "protocols"
+ algorithmsPath = "algorithms"
)
func resourceURL(c *gophercloud.ServiceClient, id int) string {
@@ -22,3 +23,7 @@
func protocolsURL(c *gophercloud.ServiceClient) string {
return c.ServiceURL(path, protocolsPath)
}
+
+func algorithmsURL(c *gophercloud.ServiceClient) string {
+ return c.ServiceURL(path, algorithmsPath)
+}