get mac and switch from config file.

Change-Id: I048057d7d5804478e331ebf92bbe299bb029d7ed