Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion ansible/roles/test/files/ptftests/py3/IP_decap_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,8 +522,11 @@ def get_src_and_exp_ports(self, dst_ip):

next_hops = [self.fibs[active_dut_index][dst_ip] for active_dut_index in active_dut_indexes]
exp_port_lists = [next_hop.get_next_hop_list() for next_hop in next_hops]
lt2_default_route = False
if self.topo == 'ft2' and len(exp_port_lists) == 1 and len(self.src_ports) == len(exp_port_lists[0]):
lt2_default_route = True
for exp_port_list in exp_port_lists:
if src_port in exp_port_list:
if src_port in exp_port_list and not lt2_default_route:
break
else:
if self.single_fib == "single-fib-single-hop" and exp_port_lists[0]:
Expand Down