Restricting communication between robots

I thought this is supported by setting different ROS_DOMAIN_ID per robot/network: