+debug on gen_testdata
This commit is contained in:
parent
9458507ee9
commit
6d212abe4d
|
@ -43,6 +43,7 @@ nf_id_map = {
|
||||||
sss_sdnet_tuples.clear_tuple_files()
|
sss_sdnet_tuples.clear_tuple_files()
|
||||||
|
|
||||||
def applyPkt(pkt, ingress, time):
|
def applyPkt(pkt, ingress, time):
|
||||||
|
print("Applying pkt on {} at {}".format(ingress, time))
|
||||||
pktsApplied.append(pkt)
|
pktsApplied.append(pkt)
|
||||||
sss_sdnet_tuples.sume_tuple_in['src_port'] = nf_port_map[ingress]
|
sss_sdnet_tuples.sume_tuple_in['src_port'] = nf_port_map[ingress]
|
||||||
sss_sdnet_tuples.sume_tuple_expect['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', 'nf1', 'nf2', 'nf3' ]:
|
||||||
# for inport in [ 'nf0' ]:
|
# for inport in [ 'nf0' ]:
|
||||||
# Send on nf0
|
# Send on nf0..nf3
|
||||||
applyPkt(pkt, inport, pktCnt)
|
applyPkt(pkt, inport, pktCnt)
|
||||||
|
|
||||||
# Always receive on nf0
|
# Always receive on nf0
|
||||||
|
|
Loading…
Reference in New Issue