Skip to content

Commit

Permalink
Fix LAG hash seed test
Browse files Browse the repository at this point in the history
Signed-off-by: Yurii Lisovskyi <[email protected]>
  • Loading branch information
yuriilisovskyi committed Oct 19, 2023
1 parent 66f4318 commit 1df0578
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_l2_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,8 @@ def test_l2_lag_hash_seed(npu, dataplane):
# Sending 100 packets to verify the order/sequence of distribution
for i in range(0, max_itrs):
src_mac = src_mac_start + str(i % 99).zfill(2)
ip_src = ip_src_start + str(i % 99).zfill(3)
ip_dst = ip_dst_start + str(i % 99).zfill(3)
ip_src = ip_src_start + str(i % 99)
ip_dst = ip_dst_start + str(i % 99)

pkt = simple_tcp_packet(eth_dst=mac,
eth_src=src_mac,
Expand All @@ -478,7 +478,7 @@ def test_l2_lag_hash_seed(npu, dataplane):
ip_id=109,
ip_ttl=64)

send_packet(dataplane, lag_mbr_num, str(pkt))
send_packet(dataplane, lag_mbr_num, pkt)
rcv_idx = verify_any_packet_any_port(dataplane, [exp_pkt], [0, 1, 2, 3])
count1[rcv_idx] += 1
laglist1.append(rcv_idx)
Expand All @@ -499,8 +499,8 @@ def test_l2_lag_hash_seed(npu, dataplane):
# Sending 100 packets to verify the order/sequence of distribution
for i in range(0, max_itrs):
src_mac = src_mac_start + str(i % 99).zfill(2)
ip_src = ip_src_start + str(i % 99).zfill(3)
ip_dst = ip_dst_start + str(i % 99).zfill(3)
ip_src = ip_src_start + str(i % 99)
ip_dst = ip_dst_start + str(i % 99)

pkt = simple_tcp_packet(eth_dst=mac,
eth_src=src_mac,
Expand All @@ -520,7 +520,7 @@ def test_l2_lag_hash_seed(npu, dataplane):
ip_id=109,
ip_ttl=64)

send_packet(dataplane, lag_mbr_num, str(pkt))
send_packet(dataplane, lag_mbr_num, pkt)
rcv_idx = verify_any_packet_any_port(dataplane, [exp_pkt], [0, 1, 2, 3])
count2[rcv_idx] += 1
laglist2.append(rcv_idx)
Expand Down

0 comments on commit 1df0578

Please sign in to comment.