def serialize_node(self, node, role):
        node_attrs = {
            # Yes, uid is really should be a string
            'uid': node.uid,
            'fqdn': objects.Node.get_node_fqdn(node),
            'status': node.status,
            'role': role,
            'vms_conf': node.vms_conf,
            'fail_if_error': role in self.critical_roles,
            # TODO(eli): need to remove, requried for the fake thread only
            'online': node.online,
        }

        net_serializer = self.get_net_provider_serializer(node.cluster)
        node_attrs.update(net_serializer.get_node_attrs(node))
        node_attrs.update(net_serializer.network_ranges(node.group_id))
        node_attrs.update(self.generate_test_vm_image_data(node))

        return node_attrs
shortcut of SwaggerApp.resolve.
dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/orchestrator/deployment_serializers.py/DeploymentMultinodeSerializer.serialize_node--crossover with--dataset/ETHPy150Open mission-liao/pyswagger/pyswagger/core.py/SwaggerApp.s