Skip to content
This repository was archived by the owner on Jun 27, 2018. It is now read-only.

Commit 59d110b

Browse files
committed
w.i.p.: nit in path query test filter function
1 parent 7a1475b commit 59d110b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pyretic/tests/test_bucket.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,9 +348,9 @@ def filt_path_test_0(l):
348348
return pkt_interface('s2-eth3', l)
349349

350350
def filt_path_test_0_5(l):
351-
return (pkt_srcip(ip2, l) or pkt_dstip(ip2, l) or
352-
(pkt_srcip(ip3, l) and pkt_dstip(ip1, l)) or
353-
(pkt_srcip(ip1, l) and pkt_dstip(ip2, l)))
351+
return (pkt_srcip(ip2, l) or
352+
(pkt_srcip(ip1, l) and not pkt_interface('s1-eth2', l)) or
353+
(pkt_srcip(ip3, l) and not pkt_interface('s3-eth2', l)))
354354

355355
### Interfaces map for packet capture ###
356356
def map_any():

0 commit comments

Comments
 (0)