parameters: (self)
return_statement: return neighbourList
docstring: gets the neighboring devices' extended address to compute the DUT
             extended address automatically
  
          Returns:
              A list including extended address of neighboring routers, parent
              as well as children
docstring_summary: gets the neighboring devices' extended address to compute the DUT
             extended address automatically
docstring_tokens: gets the neighboring devices extended address to compute the DUT extended address automatically
function: def getNeighbouringDevices(self):
          """gets the neighboring devices' extended address to compute the DUT
             extended address automatically
  
          Returns:
              A list including extended address of neighboring routers, parent
              as well as children
          """
          print('%s call getNeighbouringDevices' % self.port)
          neighbourList = []
  
          # get parent info
          parentAddr = self.getParentAddress()
          if parentAddr != 0:
              neighbourList.append(parentAddr)
  
          # get ED/SED children info
          childNeighbours = self.getChildrenInfo()
          if childNeighbours is not None and len(childNeighbours) > 0:
              for entry in childNeighbours:
                  neighbourList.append(entry)
  
          # get neighboring routers info
          routerNeighbours = self.getNeighbouringRouters()
          if routerNeighbours is not None and len(routerNeighbours) > 0:
              for entry in routerNeighbours:
                  neighbourList.append(entry)
  
          print(neighbourList)
          return neighbourList
function_tokens: def getNeighbouringDevices ( self ) : print ( '%s call getNeighbouringDevices' % self . port ) neighbourList = [ ] # get parent info parentAddr = self . getParentAddress ( ) if parentAddr != 0 : neighbourList . append ( parentAddr ) # get ED/SED children info childNeighbours = self . getChildrenInfo ( ) if childNeighbours is not None and len ( childNeighbours ) > 0 : for entry in childNeighbours : neighbourList . append ( entry ) # get neighboring routers info routerNeighbours = self . getNeighbouringRouters ( ) if routerNeighbours is not None and len ( routerNeighbours ) > 0 : for entry in routerNeighbours : neighbourList . append ( entry ) print ( neighbourList ) return neighbourList