mac_mapping should be a dict