'Create a Subnet for a given Network
:param name (optional):  The subnet name.
:param network_id: The ID of the attached network.
:param tenant_id (optional): The ID of the tenant who owns the network.
Only administrative users can specify a tenant ID other than
their own.
:param allocation_pools (optional): The start and end addresses for the
allocation pools.
:param gateway_ip (optional): The gateway IP address.
:param ip_version: The IP version, which is 4 or 6.
:param cidr: The CIDR.
:param id (optional): The ID of the subnet.
:param enable_dhcp (optional): Set to true if DHCP is enabled and false
if DHCP is disabled.
:return: JSON representation of a Subnet'

@rest_utils.ajax(data_required=True)
def post(self, request):

    new_subnet = api.neutron.subnet_create(request, **request.DATA)
    return rest_utils.CreatedResponse(('/api/neutron/subnets/%s' % new_subnet.id), new_subnet.to_dict())
