Skip to content

Commit

Permalink
Fix iface_loopback_action test (#9398)
Browse files Browse the repository at this point in the history
  • Loading branch information
bingwang-ms authored Aug 10, 2023
1 parent 365f3d6 commit 5b31441
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def generate_and_verify_traffic(duthost, ptfadapter, rif_interface, src_port_ind

ip_dst = ip_dst.split('/')[0]
eth_dst = duthost.facts["router_mac"]
eth_src = ptfadapter.dataplane.get_mac(0, src_port_index)
eth_src = ptfadapter.dataplane.get_mac(0, src_port_index).decode('utf-8')
duthost.shell("sudo ip neigh replace {} lladdr {} dev {}".format(ip_dst, eth_src, rif_interface))
logger.info("Traffic info is: eth_dst- {}, eth_src- {}, ip_src- {}, ip_dst- {}, vlan_vid- {}".format(
eth_dst, eth_src, ip_src, ip_dst, vlan_vid))
Expand Down

0 comments on commit 5b31441

Please sign in to comment.