def METHOD_NAME(self, ptf_config=None):
    """ reinitialize ptf data plane thread.
    In case if test changes PTF host network configuration (like MAC change on interfaces)
    reinit() method has to be called to restart data plane thread.
    Also if test wants to restart PTF data plane specifying non-default PTF configuration
    :param ptf_config: PTF configuration dictionary
    """
    self.kill()
    # Restart ptf_nn_agent to close any TCP connection from the server side
    logging.info("Restarting ptf_nn_agent")
    self.ptfhost.command('supervisorctl reread')
    self.ptfhost.command('supervisorctl update')
    self.ptfhost.command('supervisorctl restart ptf_nn_agent')
    self._init_ptf_dataplane(self.ptf_ip, self.ptf_nn_port, self.device_num, self.ptf_port_set, ptf_config)