From 6d212abe4d390a3aa16f0bab191a6741151aa550 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 21 Jul 2019 12:21:17 +0200 Subject: [PATCH] +debug on gen_testdata --- netpfga/minip4/testdata/gen_testdata-port1.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netpfga/minip4/testdata/gen_testdata-port1.py b/netpfga/minip4/testdata/gen_testdata-port1.py index 877ac17..474277c 100755 --- a/netpfga/minip4/testdata/gen_testdata-port1.py +++ b/netpfga/minip4/testdata/gen_testdata-port1.py @@ -43,6 +43,7 @@ nf_id_map = { sss_sdnet_tuples.clear_tuple_files() def applyPkt(pkt, ingress, time): + print("Applying pkt on {} at {}".format(ingress, time)) pktsApplied.append(pkt) sss_sdnet_tuples.sume_tuple_in['src_port'] = nf_port_map[ingress] sss_sdnet_tuples.sume_tuple_expect['src_port'] = nf_port_map[ingress] @@ -108,7 +109,7 @@ def test_port1(): for inport in [ 'nf0', 'nf1', 'nf2', 'nf3' ]: # for inport in [ 'nf0' ]: - # Send on nf0 + # Send on nf0..nf3 applyPkt(pkt, inport, pktCnt) # Always receive on nf0