[vxlanorch] Ambiguous return code for removeNextHopTunnel#880
[vxlanorch] Ambiguous return code for removeNextHopTunnel#880lguohan merged 1 commit intosonic-net:masterfrom
Conversation
Change to return false when isTunnelExists is fail
|
Hi @prsunny, I have another question about the return value in |
It always retry. That's why some cases, we intentionally return |
|
Thanks for explaining, @prsunny. I’m wondering if the request is always retried, has it the possibility to cause queue full? If yes, how to process this case. |
|
Potentially a queue full can happen if all the request are failing. I think it would be abnormal to have a que full of requests that's failing. Mostly we observed some requests fails and it keeps retrying but other requests coming will be processed and freed from queue. |
|
retest this please |
* [Vxlan] : adding show vnet/vxlan cmds
What I did
If the tunnel is not existed, it should change to return false when remove next hop for a tunnel
Why I did it
For
VxlanTunnelOrch::removeNextHopTunnelit both checkt tunnel and nexthop existed or not. But in the checking fail case, the first return true and the second return falseHow I verified it
Call r
VxlanTunnelOrch::removeNextHopTunnelfor a non existed tunnel for testing.