mirror of
https://github.com/espressif/openthread.git
synced 2026-08-24 03:09:52 +00:00
[tests] OTBR get_addrs returns only Thread addresses (#7106)
The intention is to make OTBR (in Docker) behaves same as normal simulation devices.
This commit is contained in:
@@ -3219,9 +3219,6 @@ class OtbrNode(LinuxHost, NodeImpl, OtbrDocker):
|
||||
def __repr__(self):
|
||||
return f'Otbr<{self.nodeid}>'
|
||||
|
||||
def get_addrs(self) -> List[str]:
|
||||
return super().get_addrs() + self.get_ether_addrs()
|
||||
|
||||
def start(self):
|
||||
self._setup_sysctl()
|
||||
self.set_log_level(5)
|
||||
|
||||
@@ -322,6 +322,10 @@ class TestCase(NcpSupportMixin, unittest.TestCase):
|
||||
|
||||
for i, node in self.nodes.items():
|
||||
ipaddrs = node.get_addrs()
|
||||
|
||||
if hasattr(node, 'get_ether_addrs'):
|
||||
ipaddrs += node.get_ether_addrs()
|
||||
|
||||
test_info['ipaddrs'][i] = ipaddrs
|
||||
if not node.is_host:
|
||||
mleid = node.get_mleid()
|
||||
|
||||
Reference in New Issue
Block a user