[mlr] configure MLR.req response status (#5350)

This commit is contained in:
Simon Lin
2020-08-27 14:13:07 -07:00
committed by GitHub
parent 53e18618ae
commit c3845e72ff
9 changed files with 148 additions and 3 deletions
+7 -2
View File
@@ -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)