Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix infinite loop in getVlanRangesByIface
This code gets triggered on handlePortStatusUpdate and would result in the opflex agent getting stuck in an infinite loop because the iterator is not being incremented in the while loop. --------------------------------------------------------------------------- Simple way to repro the issue is to add or del the patch ports on br-fabric example: ovs-vsctl del-port br-fabric qpi2b4b79dd-6e ovs-vsctl add-port br-fabric qpi2b4b79dd-6e -- set interface qpi2b4b79dd-6e type=patch options:peer=qpf2b4b79dd-6e Or ovs-vsctl del-port br-fabric patch-fabric-ex ovs-vsctl add-port br-fabric patch-fabric-ex -- set interface patch-fabric-ex type=patch options:peer=patch-ex-fabric --------------------------------------------------------------------------- Verified we come out of the loop with the fix. Change-Id: Ia330e40942083e9d289e256b951cc803a35e4864 Signed-off-by: Madhu Challa <challa@gmail.com>
- Loading branch information