HTTP_DELETE = "DELETE"
HTTP_PUT = "PUT"
-SERVICECLUSTER_RESOURCE = "service-cluster"
+SERVICECLUSTER_RESOURCE = "edge-cluster"
LSERVICESNODE_RESOURCE = "lservices-node"
LSERVICESNODEPORT_RESOURCE = "lport/%s" % LSERVICESNODE_RESOURCE
SUPPORTED_METADATA_OPTIONS = ['metadata_proxy_shared_secret']
def lsn_for_network_create(cluster, network_id):
lsn_obj = {
- "service_cluster_uuid": cluster.default_service_cluster_uuid,
+ "edge_cluster_uuid": cluster.default_service_cluster_uuid,
"tags": utils.get_tags(n_network_id=network_id)
}
return do_request(HTTP_POST,
def test_lsn_for_network_create(self):
net_id = "foo_network_id"
tags = utils.get_tags(n_network_id=net_id)
- obj = {"service_cluster_uuid": "foo", "tags": tags}
+ obj = {"edge_cluster_uuid": "foo", "tags": tags}
lsnlib.lsn_for_network_create(self.cluster, net_id)
self.mock_request.assert_called_once_with(
"POST", "/ws.v1/lservices-node",