# File lib/fog/network/openstack/requests/update_subnet.rb, line 24
        def update_subnet(subnet_id, options = {})
          response = Excon::Response.new
          if subnet = list_subnets.body['subnets'].find { |_| _['id'] == subnet_id }
            subnet['name']              = options[:name]
            subnet['gateway_ip']        = options[:gateway_ip]
            subnet['dns_nameservers']   = options[:dns_nameservers]   || []
            subnet['host_routes']       = options[:host_routes]       || []
            subnet['allocation_pools']  = options[:allocation_pools]  || []
            subnet['enable_dhcp']       = options[:enable_dhcp]
            response.body = {'subnet' => subnet}
            response.status = 200
            response
          else
            raise Fog::Network::OpenStack::NotFound
          end
        end