How are logical networks assigned to endpoints?