Add port_ids, device_ids to IP address uniformally