def net

      i = 0
      while i < @datas.count
        i += 1
        new_net = Net.new 
        new_net.subnet  = DHCPParser::Conf.get_subnet(@datas["net#{i}"])
        new_net.netmask = DHCPParser::Conf.get_netmask(@datas["net#{i}"])

        list_option = DHCPParser::Conf.get_list_option(@datas["net#{i}"], true)
        new_net.option  = list_option[0]
        new_net.differ  = list_option[1]

        pool        = DHCPParser::Conf.get_pool(@datas["net#{i}"])
        new_net.pool["range"] = pool["range"]
        new_net.pool["allow"] = pool["allow"]
        new_net.pool["denny"] = pool["denny"]
        # set host
        index = 0 
        while index < pool["hosts"].count
          index += 1
          host_name = pool["hosts"]["host#{index}"]["host"]
          ethernet  = pool["hosts"]["host#{index}"]["hardware_ethernet"]
          address   = pool["hosts"]["host#{index}"]["fixed-address"] 
          host      = Host.new(host_name, ethernet, address)
          new_net.pool["hosts"] << host
        end
        @array_net << new_net
      end
      return @array_net
    end
def net

      i = 0
      while i < @datas.count
        i += 1
        new_net = Net.new 
        new_net.subnet  = DHCPParser::Conf.get_subnet(@datas["net#{i}"])
        new_net.netmask = DHCPParser::Conf.get_netmask(@datas["net#{i}"])

        list_option = DHCPParser::Conf.get_list_option(@datas["net#{i}"], true)
        new_net.option  = list_option[0]
        new_net.differ  = list_option[1]

        pool        = DHCPParser::Conf.get_pool(@datas["net#{i}"])
        new_net.pool["range"] = pool["range"]
        new_net.pool["allow"] = pool["allow"]
        new_net.pool["denny"] = pool["denny"]
        # set host
        index = 0 
        while index < pool["hosts"].count
          index += 1
          host_name = pool["hosts"]["host#{index}"]["host"]
          ethernet  = pool["hosts"]["host#{index}"]["hardware_ethernet"]
          address   = pool["hosts"]["host#{index}"]["fixed-address"] 
          host      = Host.new(host_name, ethernet, address)
          new_net.pool["hosts"] << host
        end
        @array_net << new_net
      end
      return @array_net
    end
Set data in object