Merge "Add available params in networks client's comment"
This commit is contained in:
commit
e1570f3a5d
10
tempest/lib/services/network/networks_client.py
Normal file → Executable file
10
tempest/lib/services/network/networks_client.py
Normal file → Executable file
@ -16,11 +16,21 @@ from tempest.lib.services.network import base
|
|||||||
class NetworksClient(base.BaseNetworkClient):
|
class NetworksClient(base.BaseNetworkClient):
|
||||||
|
|
||||||
def create_network(self, **kwargs):
|
def create_network(self, **kwargs):
|
||||||
|
"""Creates a network.
|
||||||
|
|
||||||
|
Available params: see http://developer.openstack.org/
|
||||||
|
api-ref-networking-v2.html#createNetwork
|
||||||
|
"""
|
||||||
uri = '/networks'
|
uri = '/networks'
|
||||||
post_data = {'network': kwargs}
|
post_data = {'network': kwargs}
|
||||||
return self.create_resource(uri, post_data)
|
return self.create_resource(uri, post_data)
|
||||||
|
|
||||||
def update_network(self, network_id, **kwargs):
|
def update_network(self, network_id, **kwargs):
|
||||||
|
"""Updates a network.
|
||||||
|
|
||||||
|
Available params: see http://developer.openstack.org/
|
||||||
|
api-ref-networking-v2.html#updateNetwork
|
||||||
|
"""
|
||||||
uri = '/networks/%s' % network_id
|
uri = '/networks/%s' % network_id
|
||||||
post_data = {'network': kwargs}
|
post_data = {'network': kwargs}
|
||||||
return self.update_resource(uri, post_data)
|
return self.update_resource(uri, post_data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user