[OVN] update_port should not remove values from external_ids
Prior to this patch, the OVNClient implementation for neutron's
update_port was setting the external_ids of the affected logical
switch port to a hard-coded dictionary. This meant that any key
value pairs that were not listed there would simply get removed.
This would make it impossible for any other users of the
external_id to have a reliable way of storing its data. One of
such users could be the ovn-octavia-provider.
Note: mock module does not exist in stable/victoria and master,
thus the conflict below.
Reviewed: https:/ /review. opendev. org/755082 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=58e2def05f5 e444e900a5dc03b 6ef6b3cb3f5325
Committed: https:/
Submitter: Zuul
Branch: stable/ussuri
commit 58e2def05f5e444 e900a5dc03b6ef6 b3cb3f5325
Author: Flavio Fernandes <email address hidden>
Date: Wed Sep 23 15:28:55 2020 -0400
[OVN] update_port should not remove values from external_ids
Prior to this patch, the OVNClient implementation for neutron's provider.
update_port was setting the external_ids of the affected logical
switch port to a hard-coded dictionary. This meant that any key
value pairs that were not listed there would simply get removed.
This would make it impossible for any other users of the
external_id to have a reliable way of storing its data. One of
such users could be the ovn-octavia-
Note: mock module does not exist in stable/victoria and master,
thus the conflict below.
Conflicts:
neutron/ tests/functiona l/plugins/ ml2/drivers/ ovn/mech_ driver/ ovsdb/test_ ovn_db_ resources. py
Closes-Bug: #1896827 ca2e1dc8331632d 49d4720e7ba 6c43b2f016a3441 85075fa544)
Change-Id: Ie580534e4d91f1
(cherry picked from commit be3669258cb6f8a