++doc, use nf3

This commit is contained in:
Nico Schottelius 2019-06-03 21:56:45 +02:00
commit 442ea1a7da
3 changed files with 27 additions and 18 deletions

View file

@ -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

View file

@ -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():