[scripts] MATN-TC-02: Multicast listener registration and first use (#6409)

This commit is contained in:
whd
2021-04-13 21:14:44 -07:00
committed by GitHub
parent 970fe23dd7
commit 3e833c120f
3 changed files with 308 additions and 5 deletions
+5 -1
View File
@@ -2664,7 +2664,8 @@ class LinuxHost():
cmd = f'python3 /app/third_party/openthread/repo/tests/scripts/thread-cert/mcast6.py {self.ETH_DEV} {ip} &'
self.bash(cmd)
def ping_ether(self, ipaddr, num_responses=1, size=None, timeout=5, ttl=None) -> int:
def ping_ether(self, ipaddr, num_responses=1, size=None, timeout=5, ttl=None, interface=None) -> int:
cmd = f'ping -6 {ipaddr} -I eth0 -c {num_responses} -W {timeout}'
if size is not None:
cmd += f' -s {size}'
@@ -2672,6 +2673,9 @@ class LinuxHost():
if ttl is not None:
cmd += f' -t {ttl}'
if interface is not None:
cmd += f' -I {interface}'
resp_count = 0
try: