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/751224 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=1b148c6839d fc0120ba17d6bb2 78f7399c873c5f
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 1b148c6839dfc01 20ba17d6bb278f7 399c873c5f
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'].
Conflicts:
neutron/ tests/unit/ plugins/ ml2/drivers/ openvswitch/ agent/test_ ovs_neutron_ agent.py
Change-Id: If8edd29dd741f1 688ffcac341fd58 173539ba000 b1525e9e415b1fe dbe9526501) 7b19859e5b0633b ec29afc9a7)
Closes-Bug: #1864630
(cherry picked from commit 5600163e9b4fb89
(cherry picked from commit 22df4695049b8ee