mirror of
https://github.com/espressif/openthread.git
synced 2026-07-28 06:37:46 +00:00
[tests] stop otbr-agent service for host nodes (#7152)
HostNode is based on OtbrDocker, which has otbr-agent service started by default. We should disable this service on HostNode otherwise the border router test cases won't have the exact expected topology.
This commit is contained in:
@@ -79,7 +79,6 @@ class PublishMeshCopService(thread_cert.TestCase):
|
||||
br2 = self.nodes[BR2]
|
||||
br2.disable_br()
|
||||
|
||||
host.bash('service otbr-agent stop')
|
||||
host.start(start_radvd=False)
|
||||
self.simulator.go(20)
|
||||
|
||||
|
||||
@@ -3270,6 +3270,7 @@ class HostNode(LinuxHost, OtbrDocker):
|
||||
self.nodeid = nodeid
|
||||
self.name = name or ('Host%d' % nodeid)
|
||||
super().__init__(nodeid, **kwargs)
|
||||
self.bash('service otbr-agent stop')
|
||||
|
||||
def start(self, start_radvd=True, prefix=config.DOMAIN_PREFIX, slaac=False):
|
||||
self._setup_sysctl()
|
||||
|
||||
Reference in New Issue
Block a user