Skip to content

Commit 34fac0e

Browse files
committed
Fix pytest for hardware tests
1 parent ce5442d commit 34fac0e

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

test/local/tcp_tester.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def __init__(self, client_vm, client_port, pf_spec, server_ip, server_port, clie
224224
# Virtual-service communication, no tunnel, replace header with IPv6
225225
def get_server_l3_reply(self, pkt):
226226
return (Ether(dst=pkt[Ether].src, src=pkt[Ether].dst, type=0x86DD) /
227-
IPv6(dst=router_ul_ipv6, src=pkt[IPv6].dst, nh=6))
227+
IPv6(dst=pkt[IPv6].src, src=pkt[IPv6].dst, nh=6))
228228

229229
class TCPTesterPublic(_TCPTester):
230230
def __init__(self, client_vm, client_port, nat_ul_ipv6, pf_spec, server_ip, server_port, client_pkt_check=None, server_pkt_check=None):

test/local/test_telemetry.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
HW_IFACE_STATS = (
2828
'rx_broadcast_bytes', 'rx_broadcast_packets', 'tx_broadcast_bytes', 'tx_broadcast_packets',
2929
'rx_multicast_bytes', 'rx_multicast_packets', 'tx_multicast_bytes', 'tx_multicast_packets',
30-
'rx_out_of_buffer',
3130
'rx_phy_bytes', 'rx_phy_crc_errors', 'rx_phy_discard_packets', 'rx_phy_in_range_len_errors', 'rx_phy_packets', 'rx_phy_symbol_errors',
3231
'tx_phy_bytes', 'tx_phy_discard_packets', 'tx_phy_errors', 'tx_phy_packets',
3332
'rx_prio0_buf_discard_packets', 'rx_prio0_cong_discard_packets',
@@ -41,7 +40,7 @@
4140
'rx_unicast_bytes', 'rx_unicast_packets', 'tx_unicast_bytes', 'tx_unicast_packets',
4241
'rx_vport_bytes', 'rx_vport_packets', 'tx_vport_bytes', 'tx_vport_packets',
4342
'rx_wqe_errors',
44-
'tx_pp_clock_queue_errors', 'tx_pp_jitter', 'tx_pp_missed_interrupt_errors', 'tx_pp_rearm_queue_errors', 'tx_pp_sync_lost', 'tx_pp_timestamp_future_errors', 'tx_pp_timestamp_order_errors', 'tx_pp_timestamp_past_errors', 'tx_pp_wander',
43+
'tx_pp_clock_queue_errors', 'tx_pp_missed_interrupt_errors', 'tx_pp_rearm_queue_errors', 'tx_pp_timestamp_future_errors', 'tx_pp_timestamp_order_errors', 'tx_pp_timestamp_past_errors',
4544
)
4645
HW_PF1_IFACE_STATS = (
4746
'rx_q1_bytes', 'rx_q1_errors', 'rx_q1_packets', 'tx_q1_bytes', 'tx_q1_packets',

test/local/test_virtsvc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def reply_udp(pf_name):
2323
udp_used_port = pkt[UDP].sport
2424

2525
reply_pkt = (Ether(dst=pkt[Ether].src, src=pkt[Ether].dst, type=0x86DD) /
26-
IPv6(dst=router_ul_ipv6, src=pkt[IPv6].dst, nh=17) /
26+
IPv6(dst=pkt[IPv6].src, src=pkt[IPv6].dst, nh=17) /
2727
UDP(dport=pkt[UDP].sport, sport=pkt[UDP].dport))
2828
delayed_sendp(reply_pkt, pf_name)
2929

0 commit comments

Comments
 (0)