Description:
After running test_bgp_with_loopback test ends up with an error "BGP instance name and AS number mismatch, BGP instance is already running; AS is 65100". I see that it is a workaround to bgp socket issue:
# FIXME Create a dummy bgp session.
# Workaroud to overcome the bgp socket issue.
# When there are only vrf bgp sessions and
# net.ipv4.tcp_l3mdev_accept=1, bgpd(7.0) does
# not create bgp socket for sessions.
duthost.shell("vtysh -c 'config terminal' -c 'router bgp 65444'")
Is this workaround still needed and actual ?
Steps to reproduce the issue:
1)Deploy t0 topology.
2)Deploy minigrapgh on DUT
3)Run test_bgp_with_loopback
Describe the results you received:
> duthost.shell("vtysh -c 'config terminal' -c 'router bgp 65444'")
E RunAnsibleModuleFail: run module shell failed, Ansible Results =>
E {"changed": true, "cmd": "vtysh -c 'config terminal' -c 'router bgp 65444'", "delta": "0:00:00.622185", "end": "2020-12-08 13:14:57.911876", "failed": true, "msg": "non-zero return code", "rc": 1, "start": "2020-12-08 13:14:57.289691", "stderr": "", "stderr_lines": [], "stdout": "BGP instance name and AS number mismatch\nBGP instance is already running; AS is 65100", "stdout_lines": ["BGP instance name and AS number mismatch", "BGP instance is already running; AS is 65100"]}
ERROR vrf/test_vrf.py::TestVrfLoopbackIntf::test_bgp_with_loopback
When I tried to comment out this line duthost.shell("vtysh -c 'config terminal' -c 'router bgp 65444'"),
test goes on but still fails on verifying bgp connection with peer.
# Verify bgp sessions are established
> assert bgp_info['ipv4Unicast']['peers'][str(ptf_speaker_ip.ip)]['state'] == 'Established', \
"Bgp peer {} should be Established!".format(ptf_speaker_ip.ip)
E KeyError: '10.255.0.1'
FAILED vrf/test_vrf.py::TestVrfLoopbackIntf::test_bgp_with_loopback
Describe the results you expected:
PASSED vrf/test_vrf.py::TestVrfLoopbackIntf::test_bgp_with_loopback
Additional information you deem important:
**Output of `show version`:**
```
SONiC Software Version: SONiC.master.35-dirty-20201112.031542
Distribution: Debian 10.6
Kernel: 4.19.0-9-2-amd64
Build commit: 6c362a08
Build date: Thu Nov 12 11:49:55 UTC 2020
```
**Attach debug file `sudo generate_dump`:**
```
(paste your output here)
```
Description:
After running test_bgp_with_loopback test ends up with an error "BGP instance name and AS number mismatch, BGP instance is already running; AS is 65100". I see that it is a workaround to bgp socket issue:
Is this workaround still needed and actual ?
Steps to reproduce the issue:
1)Deploy t0 topology.
2)Deploy minigrapgh on DUT
3)Run test_bgp_with_loopback
Describe the results you received:
When I tried to comment out this line
duthost.shell("vtysh -c 'config terminal' -c 'router bgp 65444'"),test goes on but still fails on verifying bgp connection with peer.
Describe the results you expected:
Additional information you deem important: