anchor.diff:      error({no_handle_call, ?MODULE}, [Msg, From, State]).
   
   handle_cast(start, State) ->
  -    Config = read_config(),
  -    connect_to_switches(Config),
  -    {noreply, State#?STATE{config = Config}};
  +    Addrs = tap_config:getallconfig(connect_to),
  +    connect_to_switches(Addrs),
  +    {noreply, State};
   handle_cast({connect, IpAddr, Port}, State) ->
       connect_to_switch(IpAddr, Port),
       {noreply, State};
  
positive.code: 
  -define(STATE, tap_loom_state).
  -record(?STATE,{
              config
              }).
  
  -record(switch_config, {
      ip_addr,
      dpid,
      dns_port,
      client_port,
      dns_ips,
      connect_to
  }).
  
  -include("tap_logger.hrl").
  -include_lib("ofs_handler/include/ofs_handler.hrl").
  
negative.code: % local functions
  %------------------------------------------------------------------------------
  
  connect_to_switches({error, _}) ->
      ok;
  connect_to_switches(Addrs) ->
      ?DEBUG("connecting to ~p~n", [Addrs]),
      [connect(IpAddr, Port) || {IpAddr, Port} <- Addrs],
      ok.
  