mirror of
https://github.com/espressif/openthread.git
synced 2026-10-22 07:28:17 +00:00
[thci] use 'br state' to check isBorderRoutingEnabled (#13506)
This commit is contained in:
@@ -3171,8 +3171,7 @@ class OpenThreadTHCI(object):
|
||||
@watched
|
||||
def isBorderRoutingEnabled(self):
|
||||
try:
|
||||
self.__executeCommand('br omrprefix local')
|
||||
return True
|
||||
return self.__executeCommand('br state')[0] in ('running', 'stopped')
|
||||
except CommandError:
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user