[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:
Simon Lin
2021-10-27 23:39:22 -07:00
committed by GitHub
parent 01f1489ec8
commit 5282232e27
2 changed files with 4 additions and 3 deletions
-3
View File
@@ -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)
+4
View File
@@ -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()