[scripts] fix multicast routing test false fails (#6388)

This commit is contained in:
Simon Lin
2021-04-01 08:13:59 -07:00
committed by GitHub
parent 5b5a3f6d9e
commit 51035f564e
@@ -183,25 +183,13 @@ class TestMlr(thread_cert.TestCase):
ping_ma1 = pkts.filter_eth_src(HOST_ETH).filter_ipv6_src_dst(HOST_BGUA, MA1).filter_ping_request().must_next()
with pkts.save_index():
# PBBR1 should forward ping-MA1 to Router1
pkts.filter_wpan_src64(PBBR1).filter_AMPLFMA().filter_ping_request(
identifier=ping_ma1.icmpv6.echo.identifier).must_next()
# Router1 should send ping reply
ping_reply_pkts = pkts.filter_ipv6_src_dst(
ROUTER1_DUA, HOST_BGUA).filter_ping_reply(identifier=ping_ma1.icmpv6.echo.identifier)
ping_reply_pkts.filter_wpan_src64(ROUTER1).must_next()
# PBBR1 should forward ping reply to the Backbone link
ping_reply_pkts.filter_eth_src(PBBR1_ETH).must_next()
pkts.filter_eth_src(PBBR1_ETH).filter_ipv6_src_dst(
ROUTER1_DUA, HOST_BGUA).filter_ping_reply(identifier=ping_ma1.icmpv6.echo.identifier).must_next()
# PBBR2 should forward ping-MA1 to Router2
pkts.filter_wpan_src64(PBBR2).filter_AMPLFMA().filter_ping_request(
identifier=ping_ma1.icmpv6.echo.identifier).must_next()
# Router2 should send ping reply
ping_reply_pkts = pkts.filter_ipv6_src_dst(
ROUTER2_DUA, HOST_BGUA).filter_ping_reply(identifier=ping_ma1.icmpv6.echo.identifier)
ping_reply_pkts.filter_wpan_src64(ROUTER2).must_next()
# PBBR2 should forward ping reply to the Backbone link
ping_reply_pkts.filter_eth_src(PBBR2_ETH).must_next()
pkts.filter_eth_src(PBBR2_ETH).filter_ipv6_src_dst(
ROUTER2_DUA, HOST_BGUA).filter_ping_reply(identifier=ping_ma1.icmpv6.echo.identifier).must_next()
#
# Verify R1 pings MA2 to Host and R2