Skip to content

Commit

Permalink
[test_ipinip] Strip ip prefix (#3140)
Browse files Browse the repository at this point in the history
What is the motivation for this PR?
Strip the ip prefix in the ip address passed to simple_ip_packet

How did you do it?
Strip the prefix.

Signed-off-by: Longxiang Lyu <[email protected]>
  • Loading branch information
lolyu authored Mar 15, 2021
1 parent 6036969 commit 6335756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/dualtor/test_ipinip.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def build_encapsulated_packet(rand_selected_interface, ptfadapter, rand_selected
"""Build the encapsulated packet sent from T1 to ToR."""
tor = rand_selected_dut
_, server_ips = rand_selected_interface
server_ipv4 = server_ips["server_ipv4"]
server_ipv4 = server_ips["server_ipv4"].split("/")[0]
config_facts = tor.get_running_config_facts()
try:
peer_ipv4_address = [_["address_ipv4"] for _ in config_facts["PEER_SWITCH"].values()][0]
Expand Down

0 comments on commit 6335756

Please sign in to comment.