++doc, use nf3
This commit is contained in:
parent
f347e35e71
commit
442ea1a7da
3 changed files with 27 additions and 18 deletions
|
|
@ -12,11 +12,12 @@ read something
|
|||
cd $P4_PROJECT_DIR && make
|
||||
|
||||
# Step 5
|
||||
cd $P4_PROJECT_DIR/nf_sume_sdnet_ip/SimpleSumeSwitch && ./vivado_sim.bash >LOG 2>&1
|
||||
cd $P4_PROJECT_DIR/nf_sume_sdnet_ip/SimpleSumeSwitch && ./vivado_sim.bash 2>&1 | tee LOG
|
||||
|
||||
expected_line=$(grep ^expected LOG | sed 's/.*= <//')
|
||||
actual_line=$(grep ^actual LOG | sed 's/.*= <//')
|
||||
|
||||
|
||||
if [ "$expected_line" != "$actual_line" ]; then
|
||||
echo packet mismatch
|
||||
exit 1
|
||||
|
|
|
|||
2
netpfga/minip4/testdata/gen_testdata.py
vendored
2
netpfga/minip4/testdata/gen_testdata.py
vendored
|
|
@ -108,7 +108,7 @@ def test_port1():
|
|||
pkt = Ether(dst=MAC2, src=MAC1)
|
||||
pkt = pad_pkt(pkt, 64)
|
||||
applyPkt(pkt, 'nf0', pktCnt)
|
||||
expPkt(pkt, 'nf2')
|
||||
expPkt(pkt, 'nf3')
|
||||
|
||||
# Test that packets are being mirrored
|
||||
def test_mirror():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue