def rt_available(rt_table):
 try:
  subprocess.check_call([settings.ip, 'route', 'list', 'table', rt_table], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  return True
 except subprocess.CalledProcessError:
  return False

def rt_available ( rt_table ) : try : subprocess . check_call ( [ settings . ip , 'route' , 'list' , 'table' , rt_table ] , stdout = subprocess . PIPE , stderr = subprocess . PIPE ) return True except subprocess . CalledProcessError : return False
check if specified routing table is defined .