Revision c75be81a kamaki/clients/cyclades/__init__.py

b/kamaki/clients/cyclades/__init__.py
80 80
            name, flavor_id, image_id,
81 81
            metadata=metadata, personality=personality, networks=networks)
82 82

  
83
    def set_firewall_profile(self, server_id, profile, port_id):
84
        """Set the firewall profile for the public interface of a server
85
        :param server_id: integer (str or int)
86
        :param profile: (str) ENABLED | DISABLED | PROTECTED
87
        :param port_id: (str) This port must connect to a public network
88
        :returns: (dict) response headers
89
        """
90
        req = {'firewallProfile': {'profile': profile, 'nic': port_id}}
91
        r = self.servers_action_post(server_id, json_data=req, success=202)
92
        return r.headers
93

  
83 94
    def start_server(self, server_id):
84 95
        """Submit a startup request
85 96

  

Also available in: Unified diff