[thread-cert] update Cert_5_5_05_SplitMergeREED to expect 16 routers (#7719)

Cert_5_5_05_SplitMergeREED.py was intermittently failing to find an
MLE Advertisement that had a Route TLV with 15 entries. However, the
test topology has 16 routers in steady state. Update packet filter to
look for 16 routers.
This commit is contained in:
Jonathan Hui
2022-05-19 09:15:54 -07:00
committed by GitHub
parent ab57ca2f44
commit 5107ee6238
@@ -176,10 +176,10 @@ class Cert_5_5_5_SplitMergeREED(thread_cert.TestCase):
router1_pkts.range(_start_idx).must_next()
router1_pkts.filter_mle_cmd(MLE_PARENT_REQUEST).must_next()
# filter MLE_ADVERTISEMENT with 15 routing table entry:
# 1 byte ID Sequence + 8 bytes ID Mask + 15 bytes Routing Table Entry =
# 24 (Router64 tlv length)
pkts.range(_start_idx).filter_mle_cmd(MLE_ADVERTISEMENT).filter(lambda p: 24 in p.mle.tlv.len).must_next()
# filter MLE_ADVERTISEMENT with 16 routing table entry:
# 1 byte ID Sequence + 8 bytes ID Mask + 16 bytes Routing Table Entry =
# 25 (Router64 tlv length)
pkts.range(_start_idx).filter_mle_cmd(MLE_ADVERTISEMENT).filter(lambda p: 25 in p.mle.tlv.len).must_next()
_end_idx = pkts.index
# Step 2: The DUT MUST NOT attempt to become an active router by sending an Address Solicit Request