]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Merging: lp:~danwent/quantum/client-lib
authorSalvatore Orlando <salvatore.orlando@eu.citrix.com>
Fri, 12 Aug 2011 11:17:30 +0000 (12:17 +0100)
committerSalvatore Orlando <salvatore.orlando@eu.citrix.com>
Fri, 12 Aug 2011 11:17:30 +0000 (12:17 +0100)
Some minor tweaks to the Quantum Client Library, based on my experience using the library.

1  2 
quantum/client.py

index 85d4057147e9a68cf0276c28239464a4ae312338,7069786162e4725dc12f5b668fe640da7a43635d..517ba6d6675d6950535f24e97b17c37c2138d4f6
@@@ -191,15 -207,17 +210,15 @@@ class Client(object)
      @api_call
      def create_network(self, body=None):
          """
-         Creates a new network on the server
+         Creates a new network
          """
 -        body = self.serialize(body)
          return self.do_request("POST", self.networks_path, body=body)
  
      @api_call
      def update_network(self, network, body=None):
          """
-         Updates a network on the server
+         Updates a network
          """
 -        body = self.serialize(body)
          return self.do_request("PUT", self.network_path % (network), body=body)
  
      @api_call
      @api_call
      def set_port_state(self, network, port, body=None):
          """
-         Sets the state of a port on the server
+         Sets the state of the specified port
          """
 -        body = self.serialize(body)
          return self.do_request("PUT",
              self.port_path % (network, port), body=body)
  
      @api_call
      def attach_resource(self, network, port, body=None):
          """
-         Deletes a port from a network on the server
+         Sets the attachment-id of the specified port
          """
 -        body = self.serialize(body)
          return self.do_request("PUT",
              self.attachment_path % (network, port), body=body)