[OVN] Remove check for external ports support

The field "ha_chassis_group" was added to the "Logical_Switch_Port"
table in [1], that was released in OVN v20.03.0. Neutron enforces
newer versions of OVN to work properly.

[1]b31c76000b

Related-Bug: #2125553
Signed-off-by: Rodolfo Alonso Hernandez <ralonsoh@redhat.com>
Change-Id: Iff2ebe33d5ca454e06b914313ca124c105c4dedb
This commit is contained in:
Rodolfo Alonso Hernandez
2025-09-26 21:09:07 +00:00
parent 817a443a20
commit 7bc4ecf229
2 changed files with 9 additions and 5 deletions

View File

@@ -1152,6 +1152,7 @@ class TestOVNMechanismDriver(TestOVNMechanismDriverBase):
is_extport_present=False):
port_device_owner = 'compute:nova' if is_compute_port else ''
self.mech_driver._plugin.nova_notifier = mock.Mock()
mock_sync.return_value = mock.Mock(), mock.Mock()
mock_is_ext.return_value = is_extport_present
self.sb_ovn.get_extport_chassis_from_cms_options.return_value = [
mock.Mock()]
@@ -1190,12 +1191,10 @@ class TestOVNMechanismDriver(TestOVNMechanismDriverBase):
ulsp.assert_called_once_with(mock.ANY, mock.ANY)
if is_extport_present:
# Method "sync_ha_chassis_group_network" called twice: when the
# port is created and when the port is set to UP.
calls = [mock.call(
sync_call = mock.call(
mock.ANY, self.nb_ovn, self.sb_ovn, port1['port']['id'],
port1['port']['network_id'], mock.ANY)] * 2
mock_sync.assert_has_calls(calls)
port1['port']['network_id'], mock.ANY)
mock_sync.assert_has_calls([sync_call, sync_call])
else:
mock_sync.assert_not_called()

View File

@@ -0,0 +1,5 @@
---
other:
- |
It is assumed now that OVN supports external ports. This functionality
was added in OVN v20.03.0.