mirror of
https://github.com/espressif/openthread.git
synced 2026-08-22 18:39:50 +00:00
[mlr] configure MLR.req response status (#5350)
This commit is contained in:
@@ -40,7 +40,7 @@ import time
|
||||
import unittest
|
||||
import binascii
|
||||
|
||||
from typing import Union
|
||||
from typing import Union, Dict
|
||||
|
||||
|
||||
class Node:
|
||||
@@ -530,7 +530,7 @@ class Node:
|
||||
self.send_command(cmd)
|
||||
self._expect('Done')
|
||||
|
||||
def multicast_listener_list(self):
|
||||
def multicast_listener_list(self) -> Dict[ipaddress.IPv6Address, int]:
|
||||
cmd = 'bbr mgmt mlr listener'
|
||||
self.send_command(cmd)
|
||||
|
||||
@@ -559,6 +559,11 @@ class Node:
|
||||
self.send_command(cmd)
|
||||
self._expect(r"(Done|Error .*)")
|
||||
|
||||
def set_next_mlr_response(self, status: int):
|
||||
cmd = 'bbr mgmt mlr response {}'.format(status)
|
||||
self.send_command(cmd)
|
||||
self._expect('Done')
|
||||
|
||||
def set_link_quality(self, addr, lqi):
|
||||
cmd = 'macfilter rss add-lqi %s %s' % (addr, lqi)
|
||||
self.send_command(cmd)
|
||||
|
||||
Reference in New Issue
Block a user