parameters: (self, channel=None, net_name=None)
return_statement: return self.joinNetwork(deviceRole)
docstring: migrate to another Thread Partition 'net_name' (could be None)
              on specified 'channel'. Make sure same Mesh Local IID and DUA
              after migration for DUA-TC-06/06b (DEV-1923)
docstring_summary: migrate to another Thread Partition 'net_name' (could be None)
              on specified 'channel'. Make sure same Mesh Local IID and DUA
              after migration for DUA-TC-06/06b (DEV-1923)
docstring_tokens: migrate to another Thread Partition net_name ( could be None ) on specified channel . Make sure same Mesh Local IID and DUA after migration for DUA - TC - 06 / 06b ( DEV - 1923 )
function: def migrateNetwork(self, channel=None, net_name=None):
          """migrate to another Thread Partition 'net_name' (could be None)
              on specified 'channel'. Make sure same Mesh Local IID and DUA
              after migration for DUA-TC-06/06b (DEV-1923)
          """
          if channel is None:
              raise Exception('channel None')
  
          if channel not in range(11, 27):
              raise Exception('channel %d not in [11, 26] Invalid' % channel)
  
          print('new partition %s on channel %d' % (net_name, channel))
  
          mliid = self.__getMlIid()
          dua = self.getDUA()
          self.reset()
          deviceRole = self.deviceRole
          self.setDefaultValues()
          self.setChannel(channel)
          if net_name is not None:
              self.setNetworkName(net_name)
          self.__setMlIid(mliid)
          self.__setDUA(dua)
          return self.joinNetwork(deviceRole)
function_tokens: def migrateNetwork ( self , channel = None , net_name = None ) : if channel is None : raise Exception ( 'channel None' ) if channel not in range ( 11 , 27 ) : raise Exception ( 'channel %d not in [11, 26] Invalid' % channel ) print ( 'new partition %s on channel %d' % ( net_name , channel ) ) mliid = self . __getMlIid ( ) dua = self . getDUA ( ) self . reset ( ) deviceRole = self . deviceRole self . setDefaultValues ( ) self . setChannel ( channel ) if net_name is not None : self . setNetworkName ( net_name ) self . __setMlIid ( mliid ) self . __setDUA ( dua ) return self . joinNetwork ( deviceRole )