All the scripts now get the switch's ip from cfg.