add helper function for adding/removing devices to interfaces