Abort on error detection
This commit is contained in:
parent
0f2e7f6049
commit
8def761c32
2 changed files with 22 additions and 3 deletions
15
netpfga/minip4/testdata/gen_testdata.py
vendored
15
netpfga/minip4/testdata/gen_testdata.py
vendored
|
|
@ -100,9 +100,18 @@ lookup_table = {
|
|||
3: 0x00001000
|
||||
}
|
||||
|
||||
def test_port1():
|
||||
pktCnt = 0
|
||||
|
||||
# First ethernet
|
||||
pktCnt += 1
|
||||
pkt = Ether(dst=MAC2, src=MAC1)
|
||||
pkt = pad_pkt(pkt, 64)
|
||||
applyPkt(pkt, 'nf0', pktCnt)
|
||||
expPkt(pkt, 'nf0')
|
||||
|
||||
# Test that packets are being mirrored
|
||||
def test_mirror():
|
||||
|
||||
pktCnt = 0
|
||||
|
||||
# First ethernet
|
||||
|
|
@ -136,5 +145,7 @@ def test_mirror():
|
|||
# pkt = pad_pkt(pkt, 64)
|
||||
# expPkt(pkt, 'nf0')
|
||||
|
||||
test_mirror()
|
||||
#test_mirror()
|
||||
test_port1()
|
||||
|
||||
write_pcap_files()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue