Skip to content

bgp_speaker test fails when running with vtestbed t0 topology #1717

@arawal1

Description

@arawal1

Description
I am trying to run bgp_speaker test with t0 topology using vtestbed but it fails as no packets are received on expected ports

Steps to reproduce the issue:

  1. Run bgp_speaker test:
    py.test bgp/bgp_speaker.py --testbed=vms-kvm-t0 --inventory=../ansible/veos.vtb --testbed_file=../ansible/vtestbed.csv --host-pattern=all --show-capture stdout --module-path=../ansible/library -vvv

Describe the results you received:
File "ptftests/fib_test.py", line 353, in runTest
self.check_ip_ranges()
File "ptftests/fib_test.py", line 156, in check_ip_ranges
self.check_ip_range(ip_range, next_hop, ipv4)
File "ptftests/fib_test.py", line 171, in check_ip_range
self.check_ip_route(src_port, ip_range.get_first_ip(), exp_port_list, ipv4)
File "ptftests/fib_test.py", line 193, in check_ip_route
res = self.check_ipv4_route(src_port, dst_ip_addr, dst_port_list)
File "ptftests/fib_test.py", line 252, in check_ipv4_route
return verify_packet_any_port(self, masked_exp_pkt, dst_port_list)
File "/usr/lib/python2.7/dist-packages/ptf/testutils.py", line 2538, in verify_packet_any_port
% (ports, device_number, result.format()))
AssertionError: Did not receive expected packet on any of ports [28, 29, 30, 31] for device 0.

The fib_info file bgp_speaker:
has two entries:
bgp_speaker_route.txt
0.0.0.0/0 [28] [29] [30] [31]
10.10.10.0/26 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24]

if I remove the first entry I get key error 1.0.0.0

Describe the results you expected:
test should pass

Additional information you deem important:

**Output of `show version`:**

```
(paste your output here)
```

**Attach debug file `sudo generate_dump`:**

```
(paste your output here)
```

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions