Multiple ports are located in ports_re_added. Assume we have port_one
and port_two. It will loop through the ports. Port_one is iterated
first, events ['re_added'] is assigned port_one, events ['removed']
is assigned port_two. In the second loop, events ['re_added'] is set
to port_two instead of adding port_two to list. So after the loop,
only port_two is left in events ['re_added'].
Reviewed: https:/ /review. opendev. org/709687 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=5600163e9b4 fb89b1525e9e415 b1fedbe9526501
Committed: https:/
Submitter: Zuul
Branch: master
commit 5600163e9b4fb89 b1525e9e415b1fe dbe9526501
Author: Nguyen Thanh Cong <email address hidden>
Date: Tue Feb 25 17:25:36 2020 +0700
[OvS] Handle re_added multi ports
Multiple ports are located in ports_re_added. Assume we have port_one
and port_two. It will loop through the ports. Port_one is iterated
first, events ['re_added'] is assigned port_one, events ['removed']
is assigned port_two. In the second loop, events ['re_added'] is set
to port_two instead of adding port_two to list. So after the loop,
only port_two is left in events ['re_added'].
Change-Id: If8edd29dd741f1 688ffcac341fd58 173539ba000
Closes-Bug: #1864630