[routing-manager] resend failed RS messages in 4 seconds (#7504)

Current `Routing Manager` implementation will try to send the failed
RS messages in 60 seconds.  RS failures happen often when the infra
interface is re-enabled which is the case of rebooting, and it could
not be acceptable for the border router to take 1 minute to recover
the IPv6 connectivity after reboot.

To resolve this issue, this commit changes the delay to
`kRtrSolicitationInterval` (4 seconds) which is the interval between
two successful RS messages.
This commit is contained in:
Kangping
2022-03-22 14:26:12 -07:00
committed by GitHub
parent 237c91b939
commit bc6ce12f03
2 changed files with 5 additions and 4 deletions
@@ -267,9 +267,9 @@ class SingleBorderRouter(thread_cert.TestCase):
br.enable_ether()
# The routing manager may fail to send RS and will wait for 60 seconds
# The routing manager may fail to send RS and will wait for 4 seconds
# before retrying.
self.simulator.go(80)
self.simulator.go(20)
self.collect_ipaddrs()
logging.info("BR addrs: %r", br.get_addrs())