[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:
whd
2021-11-12 13:06:09 -08:00
committed by GitHub
parent 44c736c147
commit 04a3ebff22
2 changed files with 1 additions and 1 deletions
@@ -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)
+1
View File
@@ -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()