def onSwapRoleAck(self):
        if self.role == base.HOST_ROLE:
            self.role = base.PARTNER_ROLE
            self.view.set_read_only(True)
        else:
            self.role = base.HOST_ROLE
            self.view.set_read_only(False)
            self.viewMonitorThread = ViewMonitorThread(self)
            self.viewMonitorThread.start()
        view_name = self.view.file_name()
        if not view_name or (len(view_name) == 0):
            view_name = self.view.name()
            if not view_name or (len(view_name) == 0):
                view_name = 'untitled'
        self.logger.info('session %s with %s role now changed to %s' % (view_name, self.str(), self.role))
Create nodes with the given names.
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/sub_collab/peer/basic.py/BasicPeer.onSwapRoleAck--crossover with--dataset/ETHPy150Open ClusterHQ/flocker/flocker/provision/_common.py/IProvisioner.create_nodes