'Creates a firewall Policy
:param name:
:param description:
:param rules:
:rtype \'dict\':  [
\'protocol\': \'TCP\',
\'port_from\': 80,
\'port_to\': 80,
\'source\': \'0.0.0.0\'
:return: \'dict\' firewall policy'

def ex_create_firewall_policy(self, name, rules, description=None):

    body = {'name': name}
    if (description is not None):
        body['description'] = description
    if (len(rules) == 0):
        raise ValueError('At    least    one    firewall    rule    is    required.')
    else:
        body['rules'] = rules
    response = self.connection.request(action='firewall_policies', data=body, method='POST')
    return response.object
