Revision 264a13f7 kamaki/clients/cyclades/__init__.py

b/kamaki/clients/cyclades/__init__.py
44 44

  
45 45
    def create_server(
46 46
            self, name, flavor_id, image_id,
47
            metadata=None, personality=None):
47
            metadata=None, personality=None, networks=None):
48 48
        """Submit request to create a new server
49 49

  
50 50
        :param name: (str)
......
58 58
        :param personality: a list of (file path, file contents) tuples,
59 59
            describing files to be injected into virtual server upon creation
60 60

  
61
        :param networks: (list of dicts) Networks to connect to, list this:
62
            "networks": [
63
                {"network": <network_uuid>},
64
                {"network": <network_uuid>, "fixed_ip": address},
65
                {"port": <port_id>}, ...]
66

  
61 67
        :returns: a dict with the new virtual server details
62 68

  
63 69
        :raises ClientError: wraps request errors

Also available in: Unified diff