neutron/neutron/tests/unit/services/trunk
Rodolfo Alonso Hernandez d83e243c6d [OVN] Add missing LSP device_owner info in trunk driver
The ``OVNTrunkHandler`` class updates the port binding profile of the
trunk subports. The methods ``_set_binding_profile`` and
``_unset_binding_profile`` update both the OVN LSP register and the
Neutron DB port register. This patch adds the missing field
"neutron:device_owner" from the LSP external_ids dictionary.

This patch also updates ``OvsdbNbOvnIdl.set_lswitch_port`` API method.
The method now accepts "external_ids_update" kwarg. This dictionary
allows to update (or add) individually each LSP.external_ids
dictionary key, instead of overwritting the whole variable.

NOTE: ``set_lswitch_port`` is not used outside Neutron now so this is
safe to change the API method signature.

Closes-Bug: #2006735
Change-Id: I985f3294b2ca7ab5989022ec1b904c8e29354e07
2023-02-10 15:50:56 +01:00
..
drivers [OVN] Add missing LSP device_owner info in trunk driver 2023-02-10 15:50:56 +01:00
rpc Replace "tenant_id" with "project_id" 2021-10-22 12:35:13 +00:00
seg_types Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
__init__.py Data models for vlan-aware-vms 2016-04-24 19:41:54 -07:00
fakes.py Revisit support for trunk segmentation types 2016-09-02 15:37:09 +00:00
test_plugin.py [Trunk] Update the trunk status with the parent status 2022-09-27 17:06:44 +02:00
test_rules.py Replace "tenant_id" with "project_id" 2021-10-22 12:35:13 +00:00
test_utils.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00