mirror of
https://github.com/espressif/openthread.git
synced 2026-08-03 01:17:46 +00:00
[scripts] add MLR Backbone multicast routing test (#5578)
- backbone/test_mlr_multicast_routing.py verifies the basic features of Backbone multicast routing - backbone/test_mlr_multicast_routing_timeout.py verifies that MLR timeout works - backbone/test_mlr_multicast_routing_commissioner_timeout.py verifies that Commissioner MLR timeout works
This commit is contained in:
@@ -1956,11 +1956,14 @@ class LinuxHost():
|
||||
|
||||
assert False, output
|
||||
|
||||
def ping_ether(self, ipaddr, num_responses=1, size=None, timeout=5) -> int:
|
||||
def ping_ether(self, ipaddr, num_responses=1, size=None, timeout=5, ttl=None) -> int:
|
||||
cmd = f'ping -6 {ipaddr} -I eth0 -c {num_responses} -W {timeout}'
|
||||
if size is not None:
|
||||
cmd += f' -s {size}'
|
||||
|
||||
if ttl is not None:
|
||||
cmd += f' -t {ttl}'
|
||||
|
||||
resp_count = 0
|
||||
|
||||
try:
|
||||
@@ -1990,6 +1993,7 @@ class LinuxHost():
|
||||
class OtbrNode(LinuxHost, NodeImpl, OtbrDocker):
|
||||
is_otbr = True
|
||||
is_bbr = True # OTBR is also BBR
|
||||
node_type = 'otbr-docker'
|
||||
|
||||
def __repr__(self):
|
||||
return f'Otbr<{self.nodeid}>'
|
||||
|
||||
Reference in New Issue
Block a user