def METHOD_NAME(self, tries = 10):
    sys.stdout.write('Mapping ports')
    for i in range(tries):
        sys.stdout.write('.')
        sys.stdout.flush()
        try:
            CTRexScenario.astf_trex.remove_all_captures()
            CTRexScenario.ports_map = self.astf_trex.METHOD_NAME()
            if self.verify_bidirectional(CTRexScenario.ports_map):
                print('')
                return True
        except Exception as e:
            raise
            print('\nException during mapping: %s' % e)
            return False
        time.sleep(0.5)
    print('')
    return False