[thci] update registerMulticast to align with #7253 (#7364)

Enabling registration to multiple mcast addresses on the same command
line in THCI.
This commit is contained in:
Karthick
2022-01-28 08:21:03 -08:00
committed by GitHub
parent 9e17e471ad
commit 9f70bafd67
+4 -2
View File
@@ -3337,14 +3337,16 @@ class OpenThreadTHCI(object):
return True
@API
def registerMulticast(self, sAddr='ff04::1234:777a:1', timeout=MLR_TIMEOUT_MIN):
def registerMulticast(self, listAddr=('ff04::1234:777a:1',), timeout=MLR_TIMEOUT_MIN):
"""subscribe to the given ipv6 address (sAddr) in interface and send MLR.req OTA
Args:
sAddr : str : Multicast address to be subscribed and notified OTA.
"""
self._beforeRegisterMulticast(sAddr, timeout)
for each_sAddr in listAddr:
self._beforeRegisterMulticast(each_sAddr, timeout)
sAddr = ' '.join(listAddr)
cmd = 'ipmaddr add ' + str(sAddr)
try: