# File lib/fog/profitbricks/requests/compute/create_lan.rb, line 112
        def create_lan(datacenter_id, properties = {}, _entities = {})
          response = Excon::Response.new
          response.status = 202

          if datacenter = data[:datacenters]['items'].find do |attrib|
            attrib['id'] == datacenter_id
          end

            datacenter['properties']['version'] += 1 if datacenter['properties']
            datacenter['version'] += 1 if datacenter['version']

          else
            raise Fog::Errors::NotFound, 'Data center resource could not be found'
          end

          lan = {
            'id' => '10',
            'type'        => 'lan',
            'href'        => "https://api.profitbricks.com/rest/v2/datacenters/#{datacenter_id}/lans/10",
            'metadata'    => {
              'createdDate' => '2015-03-18T19:00:51Z',
              'createdBy'         => 'test@stackpointcloud.com',
              'etag'              => 'faa67fbacb1c0e2e02cf9650657251f1',
              'lastModifiedDate'  => '2015-03-18T19:00:51Z',
              'lastModifiedBy'    => 'test@stackpointcloud.com',
              'state'             => 'AVAILABLE'
            },
            'properties' => {
              'name' => properties[:name],
              'public' => properties[:public]
            },
            'entities' => {
              'nics' => {
                'id' => '10/nics',
                'type'  => 'collection',
                'href'  => "https://api.profitbricks.com/rest/v2/datacenters/#{datacenter_id}/lans/10/nics",
                'items' => []
              }
            },
            'datacenter_id' => datacenter_id
          }

          data[:lans]['items'] << lan

          response.body = lan
          response
        end