[github-actions] fix MATN_15_ChangeOfPrimaryBBRTriggersRegistration.py (#6608)

The test case failed because pktverify failed to find an ACK packet
sent to TD. However, TD_RLOC has changed during the test while we were
using the latter RLOC to verify the packet. Therefore it wasn't able
to find the packet.

For this test case, we can verify the existence of that ACK packet
using the source address of its according CON packet.
This commit is contained in:
whd
2021-05-11 12:54:28 -07:00
committed by GitHub
parent 833f8e2cff
commit f97d9c7de5
@@ -181,7 +181,7 @@ class MATN_15_ChangeOfPrimaryBBRTriggersRegistration(thread_cert.TestCase):
# Where the payload contains:
# Status TLV: ST_MLR_SUCCESS
pkts.filter_wpan_src64(vars['BR_2']) \
.filter_ipv6_dst(vars['TD_RLOC']) \
.filter_ipv6_dst(_pkt.ipv6.src) \
.filter_coap_ack('/n/mr') \
.filter(lambda
p: p.coap.mid == _pkt.coap.mid and
@@ -190,7 +190,7 @@ class MATN_15_ChangeOfPrimaryBBRTriggersRegistration(thread_cert.TestCase):
# 5. Router_1 forwards the response to TD.
pkts.filter_wpan_src64(vars['Router_1']) \
.filter_ipv6_2dsts(vars['TD_RLOC'], vars['TD_LLA']) \
.filter_ipv6_dst(_pkt.ipv6.src) \
.filter_coap_ack('/n/mr') \
.filter(lambda
p: p.coap.mid == _pkt.coap.mid and