[scripts] MATN-TC-05: Re-registration to same Multicast Group (#6444)

This commit is contained in:
whd
2021-04-22 22:17:03 -07:00
committed by GitHub
parent b928f148f4
commit c8902e9419
6 changed files with 318 additions and 4 deletions
+9
View File
@@ -2724,6 +2724,15 @@ class LinuxHost():
else:
return super().ping(*args, **kwargs)
def udp_send_host(self, ipaddr, port, data, hop_limit=None):
if hop_limit is None:
if ipaddress.ip_address(ipaddr).is_multicast:
hop_limit = 10
else:
hop_limit = 64
cmd = f'python3 /app/third_party/openthread/repo/tests/scripts/thread-cert/udp_send_host.py {ipaddr} {port} "{data}" {hop_limit}'
self.bash(cmd)
def add_ipmaddr(self, *args, **kwargs):
backbone = kwargs.pop('backbone', False)
if backbone: