use bcast instead of single calls
This commit is contained in:
parent
3947acfded
commit
896f0b744c
1 changed files with 15 additions and 12 deletions
27
netpfga/minip4/testdata/gen_testdata.py
vendored
27
netpfga/minip4/testdata/gen_testdata.py
vendored
|
@ -123,24 +123,27 @@ def test_all_ports():
|
||||||
|
|
||||||
pktCnt += 1
|
pktCnt += 1
|
||||||
applyPkt(pkt, 'nf1', pktCnt)
|
applyPkt(pkt, 'nf1', pktCnt)
|
||||||
expPkt(pkt, 'nf0')
|
expPkt(pkt, 'bcast')
|
||||||
expPkt(pkt, 'nf1')
|
# expPkt(pkt, 'nf0')
|
||||||
expPkt(pkt, 'nf2')
|
# expPkt(pkt, 'nf1')
|
||||||
expPkt(pkt, 'nf3')
|
# expPkt(pkt, 'nf2')
|
||||||
|
# expPkt(pkt, 'nf3')
|
||||||
|
|
||||||
pktCnt += 1
|
pktCnt += 1
|
||||||
applyPkt(pkt, 'nf2', pktCnt)
|
applyPkt(pkt, 'nf2', pktCnt)
|
||||||
expPkt(pkt, 'nf0')
|
expPkt(pkt, 'bcast')
|
||||||
expPkt(pkt, 'nf1')
|
# expPkt(pkt, 'nf0')
|
||||||
expPkt(pkt, 'nf2')
|
# expPkt(pkt, 'nf1')
|
||||||
expPkt(pkt, 'nf3')
|
# expPkt(pkt, 'nf2')
|
||||||
|
# expPkt(pkt, 'nf3')
|
||||||
|
|
||||||
pktCnt += 1
|
pktCnt += 1
|
||||||
applyPkt(pkt, 'nf3', pktCnt)
|
applyPkt(pkt, 'nf3', pktCnt)
|
||||||
expPkt(pkt, 'nf0')
|
expPkt(pkt, 'bcast')
|
||||||
expPkt(pkt, 'nf1')
|
# expPkt(pkt, 'nf0')
|
||||||
expPkt(pkt, 'nf2')
|
# expPkt(pkt, 'nf1')
|
||||||
expPkt(pkt, 'nf3')
|
# expPkt(pkt, 'nf2')
|
||||||
|
# expPkt(pkt, 'nf3')
|
||||||
|
|
||||||
# Test that packets are being mirrored
|
# Test that packets are being mirrored
|
||||||
def test_mirror():
|
def test_mirror():
|
||||||
|
|
Loading…
Reference in a new issue