+debug on gen_testdata

This commit is contained in:
Nico Schottelius 2019-07-21 12:21:17 +02:00
parent 9458507ee9
commit 6d212abe4d

View file

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