BMP listener sockets are not destroyed when the BMP target is removed via vtysh #18177
Open
2 tasks done
Labels
triage
Needs further investigation
Description
There is an issue when trying to remove a BMP listener via vtysh with
no bmp targets ...
, The listening socket is not destroyed correctly. Here is an example:We start with a configuration that has a BMP listener:
We see the BMP listener is active:
We also see the listener socket:
Now, let's try to remove the BMP
The BMP listener is not listed anymore:
However, the listener socket is still open:
If now, we try to reload the original configuration again, which has the BMP listener:
A new socket is created, and we end up with 2 sockets:
If we repeat these steps again, we end up with a new socket, and the old sockets are never destroyed.
The same happens if we, instead of using
vtysh
, modify thefrr.conf
file and do a frrreload
.One workaround to avoid this issue is to do a
no bmp listener ...
and ano bmp targets...
. Here is an example:We start with the same configuration:
And we see the socket:
If we do this sequence:
Then in this case the socket is destroyed:
Another way to clean the socket is to do a frr
restart
instead ofreload
.Version
How to reproduce
As explained in the description:
vtysh
withno bmp targets ...
,Expected behavior
The BMP listener socket to be destroyed after removing the BMP listener with
no bmp targets ...
.Actual behavior
The BMP listener socket is
not
destroyed after removing the BMP listener withno bmp targets ...
.Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: