parameters: (self)
return_statement: return routerInfo
docstring: get neighboring routers information
  
          Returns:
              neighboring routers' extended address
docstring_summary: get neighboring routers information
docstring_tokens: get neighboring routers information
function: def getNeighbouringRouters(self):
          """get neighboring routers information
  
          Returns:
              neighboring routers' extended address
          """
          print('%s call getNeighbouringRouters' % self)
          routerInfo = []
          routerList = self.__executeCommand('router list')[0].split()
          print(routerList)
  
          if 'Done' in routerList:
              print('no neighbouring routers')
              return None
  
          for index in routerList:
              router = []
              cmd = 'router %s' % index
              router = self.__executeCommand(cmd)
  
              for line in router:
                  if 'Done' in line:
                      break
                  # elif 'Rloc' in line:
                  #    rloc16 = line.split()[1]
                  elif 'Ext Addr' in line:
                      eui = line.split()[2]
                      routerInfo.append(int(eui, 16))
                  # elif 'LQI In' in line:
                  #    lqi_in = line.split()[1]
                  # elif 'LQI Out' in line:
                  #    lqi_out = line.split()[1]
                  else:
                      pass
  
          print(routerInfo)
          return routerInfo
function_tokens: def getNeighbouringRouters ( self ) : print ( '%s call getNeighbouringRouters' % self ) routerInfo = [ ] routerList = self . __executeCommand ( 'router list' ) [ 0 ] . split ( ) print ( routerList ) if 'Done' in routerList : print ( 'no neighbouring routers' ) return None for index in routerList : router = [ ] cmd = 'router %s' % index router = self . __executeCommand ( cmd ) for line in router : if 'Done' in line : break # elif 'Rloc' in line: #    rloc16 = line.split()[1] elif 'Ext Addr' in line : eui = line . split ( ) [ 2 ] routerInfo . append ( int ( eui , 16 ) ) # elif 'LQI In' in line: #    lqi_in = line.split()[1] # elif 'LQI Out' in line: #    lqi_out = line.split()[1] else : pass print ( routerInfo ) return routerInfo