]> git.proxmox.com Git - mirror_frr.git/commit
tests: Test if BGP session is up additionally for route_server_client setup
authorDonatas Abraitis <donatas.abraitis@gmail.com>
Thu, 2 Dec 2021 15:02:23 +0000 (17:02 +0200)
committerDonatas Abraitis <donatas.abraitis@gmail.com>
Fri, 3 Dec 2021 08:03:07 +0000 (10:03 +0200)
commita4051cb28375a6c2653c7da2618071d8192a69ce
tree721752c89a6803c8887d45356a222ef150cf807e
parent82f7d8cd2c4400f511b945095590a5dd59d59d5e
tests: Test if BGP session is up additionally for route_server_client setup

Lower connect timer to 5 seconds as well.

```
FAILED test_bgp_route_server_client.py::test_bgp_route_server_client - AssertionError: Cannot see BGP GUA next hop from r3 in r1
```

```
2021-12-02 14:41:21,115 INFO: topolog.r1: vtysh command => "show bgp 2001:db8:f::3/128 json"
2021-12-02 14:41:21,115 DEBUG: topolog.r1: LinuxNamespace(r1): cmd_status("['/bin/bash', '-c', 'vtysh  -c "show bgp 2001:db8:f::3/128 json" 2>/dev/null']", kwargs: {'encoding': 'utf-8', 'stdout': -1, 'stderr': -2, 'shell': False, 'stdin': None})
2021-12-02 14:41:21,159 INFO: topolog.r1: vtysh result:
{
}
```

At least can't reproduce a failure locally (before managed to catch it).

Ran >2000 times, no failure.

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
tests/topotests/bgp_route_server_client/r1/bgpd.conf
tests/topotests/bgp_route_server_client/r2/bgpd.conf
tests/topotests/bgp_route_server_client/r3/bgpd.conf
tests/topotests/bgp_route_server_client/test_bgp_route_server_client.py