[dts] [PATCH V1] tests/TestSuite_short_live:add rule filter ipv6 tag

Tu, Lijuan lijuan.tu at intel.com
Tue Jan 7 08:12:56 CET 2020


applied

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of xizhan4x
> Sent: Tuesday, January 7, 2020 1:43 PM
> To: dts at dpdk.org
> Cc: Zhang, XiX <xix.zhang at intel.com>
> Subject: [dts] [PATCH V1] tests/TestSuite_short_live:add rule filter ipv6 tag
> 
> add rule filter ipv6 tag
> 
> Signed-off-by: xizhan4x <xix.zhang at intel.com>
> ---
>  tests/TestSuite_short_live.py | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/tests/TestSuite_short_live.py b/tests/TestSuite_short_live.py
> index dfccbd8..47a68ee 100644
> --- a/tests/TestSuite_short_live.py
> +++ b/tests/TestSuite_short_live.py
> @@ -102,16 +102,16 @@ class TestShortLiveApp(TestCase):
>          if (txPort == rxPort):
>              count = 2
> 
> -        inst = self.tester.tcpdump_sniff_packets(rxitf, count=count)
> +        filter_list = [{'layer': 'ether', 'config': {'type': 'not IPv6'}}]
> +        inst = self.tester.tcpdump_sniff_packets(rxitf,
> + count=count,filters=filter_list)
> 
>          pktlen = pktSize - 14
>          padding = pktlen - 20
>          self.tester.scapy_append('sendp([Ether(src="%s",
> dst="%s")/IP()/Raw(load="P"*%s)], iface="%s", count=4)' % (smac, dmac,
> padding, txitf))
> 
>          self.tester.scapy_execute()
> -        time.sleep(3)
> 
> -        pkts = self.tester.load_tcpdump_sniff_packets(inst)
> +        pkts = self.tester.load_tcpdump_sniff_packets(inst,timeout=2)
>          out = str(pkts[0].show)
>          self.logger.info('SCAPY Result:\n' + out + '\n\n\n')
>          if received:
> --
> 2.17.2



More information about the dts mailing list