From fbfe20f5c0f590f5c281f5b17b9f6707703d8313 Mon Sep 17 00:00:00 2001 From: Lv Fumei Date: Wed, 6 Jul 2016 13:42:27 +0800 Subject: [PATCH] Add available params in subnets client's comment Some interfaces in subnets client have **kwargs parameter, but no api reference links are given. so this is to add "Available params" in their comments. Change-Id: I770cf5cce2c532b914db74742bc86629db43ae60 --- tempest/lib/services/network/subnets_client.py | 10 ++++++++++ 1 file changed, 10 insertions(+) mode change 100644 => 100755 tempest/lib/services/network/subnets_client.py diff --git a/tempest/lib/services/network/subnets_client.py b/tempest/lib/services/network/subnets_client.py old mode 100644 new mode 100755 index 63ed13e3ca..9de4a3315e --- a/tempest/lib/services/network/subnets_client.py +++ b/tempest/lib/services/network/subnets_client.py @@ -16,11 +16,21 @@ from tempest.lib.services.network import base class SubnetsClient(base.BaseNetworkClient): def create_subnet(self, **kwargs): + """Creates a subnet on a network. + + Available params: see http://developer.openstack.org/ + api-ref-networking-v2.html#createSubnet + """ uri = '/subnets' post_data = {'subnet': kwargs} return self.create_resource(uri, post_data) def update_subnet(self, subnet_id, **kwargs): + """Updates a subnet. + + Available params: see http://developer.openstack.org/ + api-ref-networking-v2.html#updateSubnet + """ uri = '/subnets/%s' % subnet_id post_data = {'subnet': kwargs} return self.update_resource(uri, post_data)