parameters: (self, P_Prefix, P_stable, R_Preference=0)
docstring: configure border router with a given external route prefix entry
  
          Args:
              P_Prefix: IPv6 prefix for the route
              P_Stable: is true if the external route prefix is stable network data
              R_Preference: a two-bit signed integer indicating Router preference
                            1: high
                            0: medium
                           -1: low
  
          Returns:
              True: successful to configure the border router with a given external route prefix
              False: fail to configure the border router with a given external route prefix
docstring_summary: configure border router with a given external route prefix entry
docstring_tokens: configure border router with a given external route prefix entry
function: def configExternalRouter(self, P_Prefix, P_stable, R_Preference=0):
          """configure border router with a given external route prefix entry
  
          Args:
              P_Prefix: IPv6 prefix for the route
              P_Stable: is true if the external route prefix is stable network data
              R_Preference: a two-bit signed integer indicating Router preference
                            1: high
                            0: medium
                           -1: low
  
          Returns:
              True: successful to configure the border router with a given external route prefix
              False: fail to configure the border router with a given external route prefix
          """
          print('%s call configExternalRouter' % self)
          print(P_Prefix)
          prf = ''
          stable = ''
          prefix = self.__convertIp6PrefixStringToIp6Address(str(P_Prefix))
          if R_Preference == 1:
              prf = 'high'
          elif R_Preference == 0:
              prf = 'med'
          elif R_Preference == -1:
              prf = 'low'
          else:
              pass
  
          if P_stable:
              stable += 's'
              cmd = 'route add %s/64 %s %s' % (prefix, stable, prf)
          else:
              cmd = 'route add %s/64 %s' % (prefix, prf)
          print(cmd)
  
          if self.__executeCommand(cmd)[-1] == 'Done':
              # send server data ntf to leader
              return self.__executeCommand('netdata register')[-1] == 'Done'
function_tokens: def configExternalRouter ( self , P_Prefix , P_stable , R_Preference = 0 ) : print ( '%s call configExternalRouter' % self ) print ( P_Prefix ) prf = '' stable = '' prefix = self . __convertIp6PrefixStringToIp6Address ( str ( P_Prefix ) ) if R_Preference == 1 : prf = 'high' elif R_Preference == 0 : prf = 'med' elif R_Preference == - 1 : prf = 'low' else : pass if P_stable : stable += 's' cmd = 'route add %s/64 %s %s' % ( prefix , stable , prf ) else : cmd = 'route add %s/64 %s' % ( prefix , prf ) print ( cmd ) if self . __executeCommand ( cmd ) [ - 1 ] == 'Done' : # send server data ntf to leader return self . __executeCommand ( 'netdata register' ) [ - 1 ] == 'Done'